From 46b1a99c27482b3798aff89e7fda3554f9ae3801 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 17 四月 2024 09:19:41 +0800 Subject: [PATCH] 云学习购买页显示优化 --- 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