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 |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js
index d957cf7..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',
@@ -253,7 +252,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 +325,7 @@
 
     // 鍏ㄩ��
     checkAll() {
+      wx.showLoading()
       const ids = [];
       let list = [];
       let checked = "";
@@ -357,10 +357,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;
@@ -412,6 +414,7 @@
     },
     // 瀛愰」鍕鹃��
     checkResource(e) {
+      wx.showLoading()
       const citem = e.currentTarget.dataset.item;
       const parent = e.currentTarget.dataset.parent;
       let outermost;

--
Gitblit v1.9.1