litian
2024-09-07 ce3a08b28c16f5cce2185167f8a9030ee16898ed
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -94,6 +94,7 @@
      fullName: '', //名称
      userPicture: '' //申请证书用户图片
    },
    userName: '',
    pictureMd5: '',
    publishingUnit: '',
    pubCertificateHide: true,
@@ -154,17 +155,25 @@
   */
  onLoad(options) {
    this.setData({
      bookId: options.id
      bookId: options.id,
      userName: wx.getStorageSync(app.config.tokenKey)
    })
    const token = wx.getStorageSync(app.config.tokenKey)
    if (!token) {
      loginInfo(app, (data) => {
        if (data) {} else {}
        if (data) {
          this.digitalCoursesDetailsGet(options.id)
          this.getPlayerList()
          this.getType()
        } else {}
      })
    }
    this.digitalCoursesDetailsGet(options.id)
    this.getPlayerList()
    this.getType()
    this.setData({
      userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).name
    })
  },
  /**
@@ -512,6 +521,7 @@
      i.children = []
      this.getTreeList(rootList, pathLength + addNum, i.children, i.productLinkPath, addNum)
      if (i.children.length == 0) {
        newArr[0].istry = true
        delete i.children
      }
    }