From 2d3276fce97e33f5c7f04a74632e18ebb01c3a4d Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 15 四月 2024 17:30:16 +0800 Subject: [PATCH] 音频优化1 --- pages/bookExhibitionList/index.js | 46 +++++++++++++++++++++++++++++++--------------- 1 files changed, 31 insertions(+), 15 deletions(-) diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js index 6e7bee3..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, @@ -64,19 +66,19 @@ value: 'timeAsc', options: [{ value: 'nameAsc', - label: '鍚嶇О浠庨珮鍒颁綆', + label: '鍚嶇О姝e簭', }, { value: 'nameDesc', - label: '鍚嶇О浠庝綆鍒伴珮', + label: '鍚嶇О鍊掑簭', }, { value: 'timeAsc', - label: '鍒涘缓鏃堕棿浠庨珮鍒颁綆', + label: '鍑虹増鏃堕棿姝e簭', }, { value: 'timeDesc', - label: '鍒涘缓鏃堕棿浠庡簳鍒伴珮', + label: '鍑虹増鏃堕棿鍊掑簭', }, ], }, @@ -218,7 +220,7 @@ // 'page.start': currentPage, 'page.size': newSize }); - this.bookExhibitionGet(); // 璋冪敤鏂规硶鍔犺浇鏇村鏁版嵁 + // this.bookExhibitionGet(); // 璋冪敤鏂规硶鍔犺浇鏇村鏁版嵁 @@ -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, + }) }) }, @@ -398,9 +409,10 @@ this.setData({ 'multipleSelect.value': e.detail.value, }); - }, handleConfirm(event) { + + const { value @@ -411,11 +423,14 @@ this.data.keynoteValue = value this.bookExhibitionGet() }, - handleReset() { + + + handleReset(e) { // 閲嶇疆鎿嶄綔鐨勫鐞嗛�昏緫 this.data.keynoteValue = [] - console.log('閲嶇疆鎿嶄綔'); + + this.bookExhibitionGet() }, onSwapRight() { @@ -465,5 +480,6 @@ }); console.log(e.detail.value, 'e.detail.value'); this.bookExhibitionGet() - } + }, + }) \ No newline at end of file -- Gitblit v1.9.1