闫增涛
2025-02-13 7513caed505efa2be0dfb0dafd168dd5af78f92d
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -232,6 +232,8 @@
      })
      if (this.data.learnClassData) {
        this.getResourceDataList(this.data.learnClassData)
      } else {
        this.resourceDetailsData()
      }
    });
  },
@@ -347,7 +349,6 @@
      this.setData({
        isBuy: res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId)
      })
      console.log(0, res.datas.cmsDatas[0].datas);
      res.datas.cmsDatas[0].datas.forEach((item) => {
        if (this.data.source == 'qrcode') {
          if (item.id == this.data.activeId) {
@@ -382,6 +383,8 @@
                  if (new Date().getTime() > new Date(itemSaleMethod.EndDate).getTime()) {
                    this.data.threeLeveData.push(item)
                  }
                  //  没买且只有试读资源
                  if (!item.file && item.freeFile) this.data.threeLeveData.push(item)
                }
              }
            }
@@ -475,7 +478,10 @@
          videoLoading: false,
        })
      } else {
        return ElMessage.error('无法获取视频资源')
        return wx.showToast({
          icon: 'error',
          title: '无法获取视频资源',
        })
      }
    })
  },