litian
2024-09-12 bbba5d26e9e26c910ed337dcb65f462752ee6dce
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -30,6 +30,7 @@
    parentProductLinkPath: '',
    productLinkPath: '',
    threeLeveData: [],
    source: "",
    showData: '',
    src: '',
    selectedId: null,
@@ -99,7 +100,8 @@
      cmsId: options.cmsId,
      parentProductLinkPath: options.parentProductLinkPath,
      productLinkPath: options.productLinkPath,
      formPath: options.formPath
      formPath: options.formPath,
      source: options.source,
    })
    if (options.parentName !== "教学资源" && options.parentName !== "云学习") {
@@ -110,11 +112,18 @@
    const token = wx.getStorageSync(app.config.tokenKey)
    if (!token) {
      loginInfo(app, (data) => {
        if (data) {} else {}
        if (data) {
          this.resourceDetailsData()
          this.getNoteList()
        } else {
          this.resourceDetailsData()
          this.getNoteList()
        }
      })
    } else {
      this.resourceDetailsData()
      this.getNoteList()
    }
    this.resourceDetailsData()
    this.getNoteList()
  },
  /**
@@ -213,9 +222,8 @@
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {
  },
  onShareAppMessage() {},
  onShareTimeline() {},
  onTabsChange(event) {},
  onTabsClick(event) {},
@@ -275,9 +283,16 @@
      let titleName = '';
      res.datas.cmsDatas[0].datas.forEach((item, index) => {
        if (item.selectType === "audio" || item.learnSelectType === "audio") {
          this.data.threeLeveData.push(item);
        if (this.data.source == 'qrcode') {
          if (item.id == this.data.activeId) {
            this.data.threeLeveData.push(item);
          }
        } else {
          if (item.selectType === "audio" || item.learnSelectType === "audio") {
            this.data.threeLeveData.push(item);
          }
        }
      });
      this.data.threeLeveData.forEach((items, indexs) => {
        if (this.data.productLinkPath == items.productLinkPath) {
@@ -583,7 +598,6 @@
  },
  // 播放公共代码
  pubulicPlayFun() {
    // debugger
    this.setData({
      speed: 1.0,
    })