From 4bc1c36faeec2f90e5acfa836732e49fe0b245e9 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期五, 12 四月 2024 20:47:03 +0800
Subject: [PATCH] 云学习11

---
 pages/bookExhibitionList/index.js |   23 +++++++++++++++++------
 1 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js
index a74e5d3..ee39108 100644
--- a/pages/bookExhibitionList/index.js
+++ b/pages/bookExhibitionList/index.js
@@ -8,6 +8,8 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
+    loading: true,
+    hidden: true,
     totalSize: '',
     start: 0,
     isMore: null,
@@ -318,33 +320,42 @@
       //鍙栨秷
       wx.hideLoading()
       // console.log(this.data.bookExhibitionList, '鏁版嵁');
+
+      this.setData({
+        loading: false,
+        hidden: false,
+      })
     })
 
   },
   //閲嶇偣椤圭洰鎺ュ彛
   keyProjectsGet(newPrice) {
+
+    this.setData({
+      loading: true,
+      hidden: true,
+    })
     // console.log(newPrice, 'newPrice');
     let parms = {
       refCodes: ['bookClassification']
     }
     app.MG.store.getProductTypeField(parms).then(res => {
-
       const checkData = JSON.parse(res[0].config)
-
-
       checkData.option.forEach(item => {
         if (newPrice == item.value) {
-
           this.setData({
             filteredItems: item.child || [] // 濡傛灉瀛樺湪瀛愰」鍒欒祴鍊硷紝鍚﹀垯璧嬪�间负绌烘暟缁�
           });
-
           // console.log(this.data.filteredItems);
-
         }
       })
 
       this.onLoad();
+
+      this.setData({
+        loading: false,
+        hidden: false,
+      })
     })
   },
 

--
Gitblit v1.9.1