From bd459420ad636263be458374319c20d3eeb6f61a Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 19 九月 2024 21:09:04 +0800 Subject: [PATCH] detail --- packageBookService/pages/bookServices/detail/components/tree/index.js | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index d957cf7..3dc0d1b 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -233,8 +233,8 @@ // title: '鏆傛湭寮�鍞�', // }) const buyList = learn.filter((citem) => this.properties.buyIds.includes(citem.saleMethod.find((ditem) => ditem.SaleType == 'Normal').Id)) - // 璧勬簮鍜屾湰韬兘鏈喘涔� - if (!buyList.length) { + if (!buyList.length && learn.length) { + // 璧勬簮鍜屾湰韬兘鏈喘涔� 涓� 鐖剁骇鎴栨湰韬湁閿�鍞柟寮� const itemSaleMethod = item.saleMethod && item.saleMethod.length ? item.saleMethod.find(citem => citem.SaleType == 'Normal') : undefined return wx.showToast({ icon: 'error', @@ -253,7 +253,7 @@ ) { url = "/packageDomain/pages/resourceDetails/myAudio/index"; } - if (item.selectType == "picture") { + if (item.selectType == "picture" || item.selectType == 'document') { url = "/packageDomain/pages/resourceDetails/document/index"; } wx.navigateTo({ @@ -326,6 +326,7 @@ // 鍏ㄩ�� checkAll() { + wx.showLoading() const ids = []; let list = []; let checked = ""; @@ -357,10 +358,12 @@ composed: true, }; // 瑙﹀彂浜嬩欢鐨勯�夐」 this.triggerEvent("changeCheckAll", myEventDetail, myEventOption); + wx.hideLoading() }, // 绔犺妭鍕鹃�� checkResourceTitle(e) { + wx.showLoading() const flag = e.detail.checked; // 杩欎釜鏃跺�檆hecked鐨勫�兼槸fals const item = e.currentTarget.dataset.item; @@ -409,9 +412,11 @@ this.setData({ openIds: this.data.openIds, }); + wx.hideLoading() }, // 瀛愰」鍕鹃�� checkResource(e) { + wx.showLoading() const citem = e.currentTarget.dataset.item; const parent = e.currentTarget.dataset.parent; let outermost; @@ -478,6 +483,7 @@ this.triggerEvent("changeListChecked", myEventDetail, myEventOption); } } + wx.hideLoading() }, // 鍔犲叆璐墿杞� async onCloudShoppingCart(e) { -- Gitblit v1.9.1