litian
2024-06-26 ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -16,6 +16,7 @@
    dialogKey: false,
    style: 'border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;',
    activeId: '',
    storeInfo: '',
    bookId: '',
    bookName: '',
    cmsId: '',
@@ -38,10 +39,10 @@
    startTime: "", //进入页面当前时间
    pauseTime: 0, //暂停时间
    formPath: '',
    loading: true,
    loading: false,
    hidden: true,
    videoError: false,
    videoLoaidng: false
    videoLoading: false
  },
  // 格式化笔记时间
  convertTimestamp(timestamp) {
@@ -69,6 +70,7 @@
      navBarHeight: navBarHeight,
      barHeight: systInfo.statusBarHeight,
      activeId: options.activeId,
      storeInfo: options.storeInfo,
      bookId: options.bookId,
      bookName: options.bookName,
      cmsId: options.cmsId,
@@ -202,9 +204,10 @@
  },
  resourceDetailsData() {
    this.setData({
      videoLoaidng: true
      // videoLoaidng: true
    })
    let query = {
      storeInfo: this.data.storeInfo,
      path: '*',
      queryType: '*',
      productId: this.data.bookId,
@@ -229,7 +232,9 @@
      }
    }
    app.MG.store.getProductDetail(query).then(res => {
      console.log(this.data.productLinkPath, 345)
      res.datas.cmsDatas[0].datas.forEach((item) => {
        console.log(item, 222)
        if (item.selectType === "video" || item.learnSelectType === "video") {
          this.data.threeLeveData.push(item)
          this.setData({
@@ -237,6 +242,7 @@
          })
          this.data.threeLeveData.forEach((items, index) => { // 修改此处添加index参数
            if (this.data.productLinkPath == items.productLinkPath) {
              console.log(items, 5678)
              if (this.data.formPath === "jsek_cloudLearning") {
                let file
                items.protectedFile ? file = items.protectedFile : file = items.freeFile
@@ -270,7 +276,7 @@
    this.setData({
      videoLoaidng: true,
      selectedId: e.currentTarget.dataset.index,
      showData: '',
      // showData: '',
      titleName: item.name
    })
    if (item.selectType == "video" || item.learnSelectType === "video") {