| | |
| | | let parentData = await app.MG.store.getProductBySaleMethod({ |
| | | saleMethodId: i.id |
| | | }) |
| | | console.log(parentData, 111) |
| | | if (parentData.storeLinks[0].storeRefCode == 'jsek_digitalCourses') { |
| | | item.type = '数字课程' |
| | | } |
| | |
| | | |
| | | }) |
| | | }, |
| | | 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}`, |
| | | }); |
| | | } |
| | | }, |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |