From aef06b129be7a3a12ac097db8e372b0cb33c6c42 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 02 四月 2024 09:15:19 +0800 Subject: [PATCH] 我的建议,笔记bug修改 --- packageBookService/pages/bookServices/list/index.js | 31 ++++++++++++++----------------- 1 files changed, 14 insertions(+), 17 deletions(-) diff --git a/packageBookService/pages/bookServices/list/index.js b/packageBookService/pages/bookServices/list/index.js index 944f48b..7903f4f 100644 --- a/packageBookService/pages/bookServices/list/index.js +++ b/packageBookService/pages/bookServices/list/index.js @@ -262,6 +262,15 @@ }, }; app.MG.store.getStoreChannelList(query).then((res) => { + if (!res.datas.length) { + this.setData({ + disabledSecondList: true + }) + } else { + this.setData({ + disabledSecondList: false + }) + } for (let index = 0; index < res.datas.length; index++) { const item = res.datas[index]; options.push({ @@ -375,7 +384,6 @@ BaseType: 'DateTime' } } else if (this.data.sortList.value == 'time-desc') { - debugger sort = { PublicationDate: 'Desc', BaseType: 'DateTime' @@ -438,16 +446,6 @@ this.setData({ noData: true, }) - if (!this.data.pathList.length) { - // 鏈�夋嫨浜岀骇鍒嗙被锛屼笖鏃犲浘涔� - this.setData({ - disabledSecondList: true - }) - } else { - this.setData({ - disabledSecondList: false - }) - } } if (this.data.triggered) { this.setData({ @@ -465,6 +463,7 @@ `${this.data.assortCheck.code}\\${e.detail.value}` : this.data.assortCheck.code; console.log(this.data.path); + this.setData({ pathList: [], stairCode: e.detail.value, @@ -472,17 +471,15 @@ path: path, 'stairList.value': e.detail.value, }); - this.getBookList(path); - this.getSecondList(path); + if (e.detail.value == '') { this.setData({ disabledSecondList: true - }) + }); } else { - this.setData({ - disabledSecondList: false - }) + this.getSecondList(path); } + this.getBookList(path); console.log(this.data.disabledSecondList); }, // 浜岀骇鍒嗙被鍒囨崲 -- Gitblit v1.9.1