闫增涛
2025-02-14 093bb57203ae158aa371125d584e2bff372a344e
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -224,12 +224,15 @@
      },
      fields: {},
    };
    if (this.data.storeInfo) query['storeInfo'] = this.data.storeInfo
    app.MG.store.getProductDetail(query).then(async (res) => {
      this.setData({
        bookDetail: res.datas,
        buyIdList: res.datas.purchasedSaleMethodIdList,
        learnClassData: res.datas.cmsDatas[0].datas.length > 0 ? res.datas.cmsDatas[0].datas.find(item => item.refCode == "jsek_cloudLearning") : null
      })
      try {
        this.setData({
          bookDetail: res.datas,
          buyIdList: res.datas.purchasedSaleMethodIdList,
          learnClassData: res.datas.cmsDatas[0].datas.length > 0 ? res.datas.cmsDatas[0].datas.find(item => item.refCode == "jsek_cloudLearning") : null
        })
      } catch (error) {}
      if (this.data.learnClassData) {
        this.getResourceDataList(this.data.learnClassData)
      } else {
@@ -491,9 +494,11 @@
      currentTime,
      duration
    } = e.detail
    this.setData({
      progress: ((currentTime / duration) * 100).toFixed(2)
    })
    console.log('进度', e);
  },
  //获取视频学习
  getPlayerList() {