闫增涛
2025-03-28 abbd7d18ea431ee8b6b8e634abf3e8ccb1fbb1b3
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -116,27 +116,14 @@
        parentName: options.parentName,
      })
    }
    const token = wx.getStorageSync(app.config.tokenKey)
    if (!token) {
      loginInfo(app, (data) => {
        if (data) {
          this.resourceDetailsData()
          this.getNoteList()
        } else {
          this.resourceDetailsData()
          this.getNoteList()
        }
      })
    } else {
      this.resourceDetailsData()
      this.getNoteList()
    }
    if (options.formPath == 'jsek_cloudLearning') {
      this.getNoteList()
      this.setData({
        learnStartTime: Date.now(),
      })
      this.getLearnTime()
    }
    this.resourceDetailsData()
    this.getBookInfo(options.bookId)
  },
@@ -339,11 +326,17 @@
  },
  onTakeNotes() {},
  showDialog(e) {
    const token = wx.getStorageSync(app.config.tokenKey);
    if (token) {
    this.setData({
      submitTitle: this.data.titleName,
      dialogKey: true,
      textvalue: ''
    });
    } else {
      loginInfo(app, (data) => {})
    }
  },
  closeDialog() {
@@ -909,6 +902,8 @@
      })
  },
  setPlayerList() {
    const token = wx.getStorageSync(app.config.tokenKey);
    if (!token) return
    let that = this
    if (that.data.progress > 0) {
      let index = that.data.playerList.findIndex((itemData) => itemData.cmsItemId == that.data.activeId)