From 26f156cd7821fbebffcfbb178eb090973447df5c Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期五, 19 七月 2024 17:17:39 +0800 Subject: [PATCH] zylq --- packageBookService/pages/bookServices/detail/components/tree/index.js | 29 +++++++++++------------------ 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index 1c287fe..91a386d 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -174,6 +174,7 @@ if ( this.properties.tab == "jsek_cloudLearning" && this.resourceIsBuy(item) + // item.saleMethod.length > 0 ) { return wx.showToast({ icon: "error", @@ -181,16 +182,16 @@ "璇峰厛璐拱璇ヨ祫婧�" : "璇峰厛鐐瑰嚮棰嗗彇鏌ョ湅鎸夐挳", }); } - if ( - item.saleMethod.length == 0 && - item.sysType == "CmsItem" && - this.properties.tab == "jsek_cloudLearning" - ) { - return wx.showToast({ - icon: "error", - title: "鏆傛湭寮�濮嬮攢鍞紝璇疯仈绯荤鐞嗗憳", - }); - } + // if ( + // item.saleMethod.length == 0 && + // item.sysType == "CmsItem" && + // this.properties.tab == "jsek_cloudLearning" + // ) { + // return wx.showToast({ + // icon: "error", + // title: "鏆傛湭寮�濮嬮攢鍞紝璇疯仈绯荤鐞嗗憳", + // }); + // } if (this.properties.tab == "jsek_teachingResources" && (item.file || item.freeFile)) { let file = item.fileMap[item.file] ? item.fileMap[item.file] : item.fileMap[item.freeFile] if (file && file.protectType !== "Public") { @@ -208,11 +209,8 @@ wx.navigateTo({ url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parentProductLinkPath}&parentName=${parentName}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}&formPath=${this.properties.tab}&applyState=${this.properties.applyState}&deadline=${this.properties.deadline}`, }); -<<<<<<< Updated upstream -======= // debugger ->>>>>>> Stashed changes if (item.selectType == "pdf" || item.selectType == "document") { const fileLink = item.file ? item.file : item.freeFile console.log(fileLink); @@ -221,12 +219,7 @@ fileLink + "&fileName=" + item.name + -<<<<<<< Updated upstream - "&fileType=pdf" + - "&bookBuy=true" -======= "&fileType=pdf" + "&bookBuy=true" ->>>>>>> Stashed changes }); } // if (item.selectType == "document") { -- Gitblit v1.9.1