闫增涛
2025-03-31 04c7b0163caeae4ab1c5da62e301fa993101cfad
packagePersonal/pages/activateProduct/index.js
@@ -106,7 +106,6 @@
                let parentData = await app.MG.store.getProductBySaleMethod({
                  saleMethodId: i.id
                })
                console.log(parentData, 111)
                if (parentData.storeLinks[0].storeRefCode == 'jsek_digitalCourses') {
                  item.type = '数字课程'
                }
@@ -143,14 +142,25 @@
    })
  },
  goBookDetails(e) {
  async goBookDetails(e) {
    const {
      book
    } = e.currentTarget.dataset;
    console.log(book)
    wx.navigateTo({
      url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}`,
    });
    let type = e.currentTarget.dataset.type
    if (type == '数字课程') {
      wx.navigateTo({
        url: `/pages/digitalCourses/digitalCoursesDetails/index?id=${book.id}`,
      });
    } else if (type == '数字教材') {
      wx.navigateTo({
        url: `/pages/digitalTextbooks/digitalTextbooksDetails/index?id=${book.id}`,
      });
    } else {
      let tabValue = type == '题库' ? 'questionBank' : type == '云学习' ? 'jsek_cloudLearning' : ''
      wx.navigateTo({
        url: `/packageBookService/pages/bookServices/detail/index?id=${book.id}&name=${book.name}&tabValue=${tabValue}`,
      });
    }
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作