From 1fa826006ce5458722eb68bdbd814b08bd6baad3 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期二, 04 六月 2024 18:05:01 +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