zhongshujie
昨天 c0ff00c32bca4077b140d0d69b2863851ae31273
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -55,7 +55,7 @@
    buyIdList: [],
    buyList: [],
    learnClassData: null,
    isLearnDataBuy: false,
    isLearnDataBuy: true,
    bookDetail: null,
    learnStartTime: 0,
    learnTimeList: [],
@@ -228,6 +228,7 @@
        })
      } catch (error) {}
      if (this.data.learnClassData) {
        debugger
        this.getResourceDataList(this.data.learnClassData)
      } else {
        this.resourceDetailsData()
@@ -447,8 +448,9 @@
              })
              this.aliVod(file, this.data.showData)
            } else {
              let file = items.file ? items.file : items.freeFile
              this.setData({
                showData: items.file ? app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file : app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.freeFile,
                showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + file,
                titleName: items.name,
                selectedId: index
              })
@@ -457,12 +459,18 @@
          }
        });
      } else {
        wx.showToast({
          icon: 'none',
          title: '请先返回资源所在图书详情购买视频资源',
        })
        wx.navigateTo({
          url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`,
        wx.showModal({
          title: '温馨提示',
          content: '请先返回资源所在图书详情购买视频资源',
          confirmText: '确定',
          showCancel: false, // 关闭取消按钮
          success: function (res) {
            if (res.confirm) {
              wx.navigateTo({
                url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=${this.data.formPath}`,
              });
            }
          }
        });
      }
      this.setData({