From 37a205e037614e497b00a076f5bc83520337dbea Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 07 十一月 2024 14:43:01 +0800 Subject: [PATCH] 云学习资源类型 --- packageBookService/pages/bookServices/detail/components/tree/index.js | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index d40cad3..a6e144b 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -176,7 +176,7 @@ const parentName = parent ? parent.name : "鏁欏璧勬簮"; // 璧勬簮璐拱椤甸潰(鍙睍绀烘湭璐拱璧勬簮) 鐐瑰嚮涓嶈烦杞� if (this.properties.isShowCheck) return false; - if (item.selectType == "webpage") { + if (item.selectType == "webpage" || item.learnSelectType == "webpage") { // 缃戦〉绫诲瀷璺宠浆鍒扮綉鍧�澶嶅埗椤碉紝鍥犱负url浼犲弬涓嶈兘浼� 甯﹀弬鏁扮殑缃戠粶鍦板潃锛屾墍浠ユ澶勮鎶婄綉缁滃湴鍧�閲岀殑浼犲弬鎽樺嚭鏉ワ紝鏀惧埌url閲� let urlData = '' const flags = item.jsek_link.indexOf("?") @@ -194,7 +194,7 @@ title: '鏆傛棤璧勬簮', }) } - if (item.selectType == 'zip') { + if (item.selectType == 'zip' || item.learnSelectType == 'zip') { // if (this.properties.applyState == 'Normal') { return wx.showToast({ icon: 'error', @@ -251,7 +251,7 @@ ) { url = "/packageDomain/pages/resourceDetails/myAudio/index"; } - if (item.selectType == "picture" || item.selectType == 'document' || item.selectType == 'pdf') { + if (item.selectType == "picture" || item.selectType == 'document' || item.selectType == 'pdf' || item.learnSelectType == "picture" || item.learnSelectType == 'document' || item.learnSelectType == 'pdf') { url = "/packageDomain/pages/resourceDetails/document/index"; } wx.navigateTo({ -- Gitblit v1.9.1