yiming
2024-04-10 fec6538534e2e4547a1513641d5dad50b202e467
云学习
2个文件已修改
24 ■■■■ 已修改文件
packageDomain/pages/resourceDetails/myAudio/index.js 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -44,7 +44,8 @@
    speed: 1.0,
    myAudioPos: '',
    startTime: "", //进入页面当前时间
    pauseTime: 0 //暂停时间
    pauseTime: 0, //暂停时间
    fromPath: ''
  },
  // // 时间格式化
  // format(t) {
@@ -95,10 +96,12 @@
      cmsId: options.cmsId,
      parentName: options.parentName,
      parentProductLinkPath: options.parentProductLinkPath,
      productLinkPath: options.productLinkPath
      productLinkPath: options.productLinkPath,
      fromPath: options.formPath
    })
    this.resourceDetailsData()
    this.getNoteList()
    console.log(options, 'options');
  },
  /**
@@ -261,6 +264,9 @@
          })
          this.data.threeLeveData.forEach((items, index) => { // 修改此处添加index参数
            if (this.data.productLinkPath == items.productLinkPath) {
              if (this.data.fromPath == 'jsek_cloudLearning') {
                这里处理云学习的
              }
              this.setData({
                showData: app.config.requestCtx + '/file/api/ApiDownload?md5=' + items.file,
                titleName: items.name
@@ -749,5 +755,17 @@
      // myAudio.startTime = this.data.myAudioDuration  //开始时间  
      myAudio.playbackRate = this.data.speed; //  播放速率
    }, 200);
  },
  // 云学习处理已购买正式文件
  handleFile() {
    console.log(1111);
  },
  // 云学习试看处理
  handleFreeFile() {
    console.log(2222);
  },
  // 判断资源是否购买
  resourceIsBuy() {
    console.log(333);
  }
})
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -72,7 +72,7 @@
      productLinkPath: options.productLinkPath,
      flag: false
    })
    console.log(options, 'options');
    this.resourceDetailsData()
    this.getNoteList()
  },