From b471803c1a9e4c1452a98a8b3631bde66641b910 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 25 九月 2024 15:01:50 +0800 Subject: [PATCH] css --- packageBookService/pages/bookServices/detail/components/tree/index.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js index 185b9d2..c5c622c 100644 --- a/packageBookService/pages/bookServices/detail/components/tree/index.js +++ b/packageBookService/pages/bookServices/detail/components/tree/index.js @@ -66,7 +66,6 @@ purchaseList: [] }, ready() {}, - onLoad() {}, observers: { treeList: function (newValue) { @@ -233,8 +232,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', @@ -412,7 +411,6 @@ this.setData({ openIds: this.data.openIds, }); - wx.hideLoading() }, // 瀛愰」鍕鹃�� checkResource(e) { @@ -483,7 +481,6 @@ this.triggerEvent("changeListChecked", myEventDetail, myEventOption); } } - wx.hideLoading() }, // 鍔犲叆璐墿杞� async onCloudShoppingCart(e) { -- Gitblit v1.9.1