From f7ae9d99b12988cd09975aeee1fbcc90e072303c Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 19 九月 2024 20:44:02 +0800 Subject: [PATCH] 云学习查看 --- packageDomain/pages/resourceDetails/myVideo/index.js | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packageDomain/pages/resourceDetails/myVideo/index.js b/packageDomain/pages/resourceDetails/myVideo/index.js index 54d914b..d617ffb 100644 --- a/packageDomain/pages/resourceDetails/myVideo/index.js +++ b/packageDomain/pages/resourceDetails/myVideo/index.js @@ -298,7 +298,6 @@ } } else { if (item.selectType === "video" || item.learnSelectType === "video") { - if (this.data.storeInfo == 'jsek_digitalCourses') { if (item.sysType == 'CmsItem') this.data.threeLeveData.push(item) // if (this.data.isBuy) { @@ -311,10 +310,19 @@ // } // } } else { + // 涔颁簡 if (this.data.buyList.length) { if (this.data.buyList.some(citem => item.productLinkPath.includes(citem.productLinkPath))) this.data.threeLeveData.push(item) } else { - if (!item.saleMethod.length) this.data.threeLeveData.push(item) + + if (!item.saleMethod.length) { + // 娌′拱涓旀棤閿�鍞柟寮� + this.data.threeLeveData.push(item) + } else { + // 娌′拱涓旈攢鍞柟寮忚繃鏈� + const itemSaleMethod = item.saleMethod.find(citem => citem.SaleType == 'Normal') + if (new Date().getTime() > new Date(itemSaleMethod.EndDate).getTime()) this.data.threeLeveData.push(item) + } } } this.setData({ -- Gitblit v1.9.1