From 04c7b0163caeae4ab1c5da62e301fa993101cfad Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 31 三月 2025 10:40:45 +0800 Subject: [PATCH] bug修改 --- packageDomain/pages/resourceDetails/document/index.js | 35 +++++++++++++++-------------------- 1 files changed, 15 insertions(+), 20 deletions(-) diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js index 67d6273..dac4ffc 100644 --- a/packageDomain/pages/resourceDetails/document/index.js +++ b/packageDomain/pages/resourceDetails/document/index.js @@ -333,19 +333,14 @@ isBuy: res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId) }) res.datas.cmsDatas[0].datas.forEach((item) => { - // if (this.data.productLinkPath == item.productLinkPath) { - // this.handleTeachData(item) - // this.setData({ - // titleName: item.name, - // selectType: item.selectType, - // learnSelectType: item.learnSelectType - // }) - // } else { - // return wx.showToast({ - // icon: 'none', - // title: '鏆傛棤璧勬簮', - // }) - // } + if (this.data.productLinkPath == item.productLinkPath) { + this.handleTeachData(item) + this.setData({ + titleName: item.name, + selectType: item.selectType, + learnSelectType: item.learnSelectType + }) + } if (this.data.storeInfo == 'jsek_digitalCourses') { if (this.data.isBuy) { if (this.data.productLinkPath == item.productLinkPath) { @@ -415,13 +410,13 @@ learnSelectType: item.learnSelectType, }) } else { - wx.showToast({ - icon: 'none', - title: '璇峰厛杩斿洖璧勬簮鎵�鍦ㄥ浘涔﹁鎯呰喘涔拌棰戣祫婧�', - }) - wx.navigateTo({ - url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=jsek_cloudLearning`, - }); + // wx.showToast({ + // icon: 'none', + // title: '璇峰厛杩斿洖璧勬簮鎵�鍦ㄥ浘涔﹁鎯呰喘涔拌棰戣祫婧�', + // }) + // wx.navigateTo({ + // url: `/packageBookService/pages/bookServices/detail/index?id=${this.data.bookDetail.id}&name=${this.data.bookDetail.name}&tabValue=jsek_cloudLearning`, + // }); } }) }, -- Gitblit v1.9.1