闫增涛
2024-09-19 f7ae9d99b12988cd09975aeee1fbcc90e072303c
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({