From c5864be56488bee0c767d4b1cf157db4a0ec33c3 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期二, 26 三月 2024 10:47:38 +0800 Subject: [PATCH] 关于我们bug --- pages/bookExhibitionList/index.js | 59 ++++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 36 insertions(+), 23 deletions(-) diff --git a/pages/bookExhibitionList/index.js b/pages/bookExhibitionList/index.js index c1e3eaa..8569505 100644 --- a/pages/bookExhibitionList/index.js +++ b/pages/bookExhibitionList/index.js @@ -8,6 +8,7 @@ * 椤甸潰鐨勫垵濮嬫暟鎹� */ data: { + keynoteDisabled: true, value: '', keyword: '', nameSort: null, @@ -49,17 +50,15 @@ price: 'jsek_teacherEducation', label: '鏁欏笀鏁欒偛', }, - ], - }, multipleSelect: { value: [], options: [], }, navBarHeight: '', - barHeight: '' - + barHeight: '', + windowHeight: '', }, @@ -68,6 +67,8 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 */ onLoad(options) { + + // console.log(this.data.filteredItems, 88888); const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 @@ -86,18 +87,18 @@ if (this.data.filteredItems = []) { console.log(11111); - singleSelectOptions.push({ - label: '绂佺敤閫夐」', - value: 'disabled', - disabled: true, - }); + // singleSelectOptions.push({ + // label: '鏆傛棤鏁版嵁', + // value: 'disabled', + // disabled: true, + // }); + } else { + console.log(7889); } - // singleSelectOptions.push({ - // label: '绂佺敤閫夐」', - // value: 'disabled', - // disabled: true, - // }); + + + // 鏇存柊鏁版嵁 @@ -143,7 +144,10 @@ onPullDownRefresh() { }, - + onPullDownRefresh() { + this.data.page.size = 16 //鏇存敼鏄剧ず鐨勫�� + this.bookExhibitionGet(); // 璋冪敤鏂规硶鍔犺浇鏇村鏁版嵁 + }, /** * 椤甸潰涓婃媺瑙﹀簳浜嬩欢鐨勫鐞嗗嚱鏁� */ @@ -169,7 +173,7 @@ 'page.size': newSize }); this.bookExhibitionGet(); // 璋冪敤鏂规硶鍔犺浇鏇村鏁版嵁 - console.log(1111); + } @@ -269,6 +273,18 @@ const newValue = e.detail.value; const selectedOption = this.data.product.options.find(option => option.value === newValue); const newPrice = selectedOption ? selectedOption.price : null; + console.log(newValue, 'newValue'); + console.log(newPrice, 'newPrice'); + if (newPrice) { + this.setData({ + keynoteDisabled: false + }) + + } else { + this.setData({ + keynoteDisabled: true + }) + } this.setData({ 'product.value': newValue, 'product.price': newPrice, // 灏嗛�変腑鐨� price 鍊间繚瀛樺湪鏁版嵁涓� @@ -284,10 +300,6 @@ this.bookExhibitionGet(newValue) this.onLoad() console.log('true'); - } else { - // this.bookExhibitionGet(newValue); - // this.keyProjectsGet(newPrice); - console.log('fals'); } }, @@ -297,8 +309,10 @@ this.setData({ 'multipleSelect.value': e.detail.value, }); + }, handleConfirm(event) { + const { value } = event.detail; // 纭鎿嶄綔鐨勫鐞嗛�昏緫 @@ -307,6 +321,7 @@ this.bookExhibitionGet() }, handleReset() { + // 閲嶇疆鎿嶄綔鐨勫鐞嗛�昏緫 this.data.keynoteValue = [] console.log('閲嶇疆鎿嶄綔'); @@ -338,14 +353,12 @@ this.data.nameSort = 'Desc' // console.log('sssssss'); this.bookExhibitionGet() - - }, onBookExhibitionDetails: function (event) { const item = event.currentTarget.dataset.item; console.log(item); wx.navigateTo({ - url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name // 鍋囪璺宠浆鍒拌鎯呴〉闈紝骞朵紶閫掍簡id鍙傛暟 + url: '/pages/bookExhibitionDetails/index?id=' + item.id + '&bookName=' + item.name + '&subtitleName=' + item.subtitleName // 鍋囪璺宠浆鍒拌鎯呴〉闈紝骞朵紶閫掍簡id鍙傛暟 }); }, // 鎼滅储妗� -- Gitblit v1.9.1