From 8ff9b0d45ac250607afa258cf095c9ac7624f96b Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 09 九月 2024 20:14:59 +0800 Subject: [PATCH] bg --- packageBookService/pages/bookServices/detail/components/tree/index.js | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index 91a386d..332d2d4 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -96,6 +96,7 @@ }, // 鑺傜偣灞曞紑 handleChange(e) { + console.log(e.detail.value); this.setData({ openIds: e.detail.value, }); @@ -145,7 +146,18 @@ wx.getStorageSync("teachResourcesPath"); const parentName = parent ? parent.name : "鏁欏璧勬簮"; let url; - if (item.selectType == 'zip') { + if (item.selectType == "webpage") { + // 缃戦〉绫诲瀷璺宠浆鍒扮綉鍧�澶嶅埗椤碉紝鍥犱负url浼犲弬涓嶈兘浼� 甯﹀弬鏁扮殑缃戠粶鍦板潃锛屾墍浠ユ澶勮鎶婄綉缁滃湴鍧�閲岀殑浼犲弬鎽樺嚭鏉ワ紝鏀惧埌url閲� + let urlData = '' + const flags = item.jsek_link.indexOf("?") + if (flags > -1) { + urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length) + } + url = '/packageBookService/pages/bookServices/linkPage/index' + return wx.navigateTo({ + url: urlData ? url + `?path=${item.jsek_link.slice(0,flags)}` + '&' + urlData : url + `?path=${item.jsek_link}` + }) + } else if (item.selectType == 'zip') { if (this.properties.applyState == 'Normal') { return wx.showToast({ icon: 'error', @@ -168,7 +180,7 @@ item.learnSelectType == "audio" ) { url = "/packageDomain/pages/resourceDetails/myAudio/index"; - } else if (item.selectType == "picture" || item.selectType == "zip") { + } else if (item.selectType == "picture") { url = "/packageDomain/pages/resourceDetails/document/index"; } if ( @@ -262,11 +274,11 @@ // }, // }); // } - if (item.selectType == "webpage") { - this.setData({ - webpageSrc: item.jsek_link, - }); - } + // if (item.selectType == "webpage") { + // this.setData({ + // webpageSrc: item.jsek_link, + // }); + // } } }, -- Gitblit v1.9.1