| | |
| | | }, |
| | | product: { |
| | | value: '*', |
| | | options: [ |
| | | { |
| | | options: [{ |
| | | value: '*', |
| | | label: '总分类', |
| | | }, |
| | |
| | | |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | |
| | | |
| | | console.log(this.data.keynoteDisabled, 'keynoteDisabled'); |
| | | // console.log(this.data.filteredItems, 88888); |
| | | const systInfo = wx.getSystemInfoSync(); |
| | | const menu = wx.getMenuButtonBoundingClientRect(); // 胶囊信息 |
| | |
| | | const newValue = e.detail.value; |
| | | const selectedOption = this.data.product.options.find(option => option.value === newValue); |
| | | const newPrice = selectedOption ? selectedOption.price : null; |
| | | const bookExhibitionListsubsidiary = [] |
| | | this.setData({ |
| | | bookExhibitionListsubsidiary: this.data.bookExhibitionList |
| | | }) |
| | | console.log(bookExhibitionListsubsidiary, 'bookExhibitionListsubsidiary'); |
| | | console.log(newValue, 'newValue'); |
| | | console.log(newPrice, 'newPrice'); |
| | | |
| | | if (newPrice) { |
| | | this.setData({ |
| | | keynoteDisabled: false |
| | | }) |
| | | |
| | | } else { |
| | | } |
| | | if (!newPrice) { |
| | | this.setData({ |
| | | keynoteDisabled: true |
| | | }) |
| | |
| | | this.bookExhibitionGet(newValue) |
| | | this.onLoad() |
| | | } |
| | | |
| | | |
| | | |
| | | }, |
| | | |
| | | // 重点项目 |
| | |
| | | }, |
| | | handleConfirm(event) { |
| | | |
| | | const { value } = event.detail; |
| | | const { |
| | | value |
| | | } = event.detail; |
| | | // 确认操作的处理逻辑 |
| | | |
| | | console.log('确认操作,选中的值为:', value); |
| | |
| | | this.bookExhibitionGet() |
| | | }, |
| | | onSwapRight() { |
| | | // console.log('xxxxxx'); |
| | | // this.data.nameSort = 'Asc' |
| | | |
| | | |
| | | if (!this.data.nameSort) { |
| | | this.setData({ |
| | | nameSort: 'Desc', |