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/bookExhibitionDetails/index.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/pages/bookExhibitionDetails/index.js b/pages/bookExhibitionDetails/index.js
index b4df761..43c1898 100644
--- a/pages/bookExhibitionDetails/index.js
+++ b/pages/bookExhibitionDetails/index.js
@@ -6,6 +6,8 @@
    * 椤甸潰鐨勫垵濮嬫暟鎹�
    */
   data: {
+    loading: true,
+    hidden: true,
     bookName: '',
     bookBeginDate: '',
     bookCreator: '',
@@ -92,6 +94,10 @@
   },
 
   bookExhibitionGet(passId) {
+    this.setData({
+      loading: true,
+      hidden: true,
+    })
     wx.showLoading({
       title: '鍔犺浇涓�...',
     })
@@ -118,10 +124,18 @@
         bookImage: res.datas.icon
       });
       wx.hideLoading()
+      this.setData({
+        loading: false,
+        hidden: false,
+      })
     })
   },
   //涔﹀睍璇︽儏鎺ュ彛
   getBookExhibitionDetails(passId) {
+    this.setData({
+      loading: true,
+      hidden: true,
+    })
     app.MG.store.getProductList({
       path: '*',
       storeInfo: 'jsek_bookFair',
@@ -140,6 +154,10 @@
         bookExhibitionList: res.datas
       })
       console.log(this.data.bookExhibitionList, 'bookExhibitionList');
+      this.setData({
+        loading: false,
+        hidden: false,
+      })
     })
   },
   onBookDetails(event) {

--
Gitblit v1.9.1