From bc63cd0e8e9c380be145f23f3456235d124a50d9 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 29 三月 2024 14:38:17 +0800 Subject: [PATCH] 播放按钮图片 --- packageBookService/pages/bookServices/list/index.js | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/packageBookService/pages/bookServices/list/index.js b/packageBookService/pages/bookServices/list/index.js index 9731193..5cd1be5 100644 --- a/packageBookService/pages/bookServices/list/index.js +++ b/packageBookService/pages/bookServices/list/index.js @@ -32,7 +32,9 @@ secondList: { value: [], options: [], + disabled: false, }, + disabledSecondList: false, majorProjectList: { value: [], options: [], @@ -49,13 +51,13 @@ size: '50rpx' }, loading: false, - noData: false + noData: false, + showDropdown: false, }, /** * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇 */ onLoad(options) { - console.log(options) const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� @@ -342,10 +344,9 @@ "pageCount.total": res.total, loading: false }); - console.log('鍥句功鍒楄〃', res.datas); if (!res.datas.length) { this.setData({ - noData: true + noData: true, }) } }); @@ -355,6 +356,7 @@ const path = e.detail.value.length ? `${this.data.assortCheck.code}\\${e.detail.value}` : this.data.assortCheck.code; + console.log(this.data.path); this.setData({ pathList: [], stairCode: e.detail.value, @@ -364,6 +366,16 @@ }); this.getBookList(path); this.getSecondList(path); + if (e.detail.value == '') { + this.setData({ + disabledSecondList: true + }) + } else { + this.setData({ + disabledSecondList: false + }) + } + console.log(this.data.disabledSecondList); }, // 浜岀骇鍒嗙被鍒囨崲 onChangeSecond(e) { @@ -462,4 +474,16 @@ }); this.getBookList(this.data.path) }, + openDropdown() { + console.log('灞曞紑鍝�', ); + this.setData({ + showDropdown: true + }) + }, + closeDropdown() { + console.log('鍏抽棴'); + this.setData({ + showDropdown: false + }) + } }); \ No newline at end of file -- Gitblit v1.9.1