From 1674ff52a2874cfdf59bc876290c0d102265ad32 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 19 九月 2024 15:40:00 +0800
Subject: [PATCH] document文档资源查看修改

---
 packageBookService/pages/bookServices/detail/components/tree/index.js |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/tree/index.js b/packageBookService/pages/bookServices/detail/components/tree/index.js
index d957cf7..185b9d2 100644
--- a/packageBookService/pages/bookServices/detail/components/tree/index.js
+++ b/packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -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