From ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 26 六月 2024 15:02:28 +0800 Subject: [PATCH] 小程序,教材,课程 --- packageBookService/pages/bookServices/detail/components/tree/index.js | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index c2f07e2..f1caa20 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -139,6 +139,7 @@ if (token) { const item = e.currentTarget.dataset.item; const parent = e.currentTarget.dataset.parent; + console.log('item', item); const parentProductLinkPath = parent ? parent.productLinkPath : wx.getStorageSync("teachResourcesPath"); @@ -198,7 +199,7 @@ title: "璧勬簮涓嶅彲鐢紝璇疯仈绯荤鐞嗗憳", }); } - } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file || !item.freeFile || !item.protectedFile)) { + } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file && !item.freeFile && !item.protectedFile)) { return wx.showToast({ icon: 'error', title: '鏆傛棤璧勬簮', @@ -221,9 +222,9 @@ } if (item.selectType == "document") { // freeFile - if (item.selectType == "document") { - item.selectType = "pptx"; - } + // if (item.selectType == "document") { + // item.selectType = "pptx"; + // } const fileLink = item.file ? app.config.requestCtx + "/file/api/ApiDownload?md5=" + item.file : app.config.requestCtx + -- Gitblit v1.9.1