From e8ec903206cb82e4dbb4687291d5f7788e7ff046 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 06 五月 2024 18:17:47 +0800 Subject: [PATCH] bug修改 --- packageDomain/pages/sampleBookList/index.js | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/packageDomain/pages/sampleBookList/index.js b/packageDomain/pages/sampleBookList/index.js index 1f8093b..66fd827 100644 --- a/packageDomain/pages/sampleBookList/index.js +++ b/packageDomain/pages/sampleBookList/index.js @@ -152,14 +152,17 @@ // 鑾峰彇鐢宠娆℃暟 that.getSelectPaperBookCount() that.getSelectBookCount() - } }) } else { that.setData({ userInfo: JSON.parse(wx.getStorageSync(app.config.userInfoKey)) }) - + const paperBookList = wx.getStorageSync('paperBookList') ? JSON.parse(wx.getStorageSync('paperBookList')).length : 0 + const electronicBookList = wx.getStorageSync('electronicBookList') ? JSON.parse(wx.getStorageSync('electronicBookList')).length : 0 + this.setData({ + num: paperBookList + electronicBookList + }) } }, @@ -540,8 +543,8 @@ this.getBookList(false); this.getSecondList(path); }, - // 浜岀骇鍒嗙被鍒囨崲 - onChangeSecond(e) { + // 浜岀骇鍒嗙被鍒囨崲 + onConfirmSecond(e) { const pathList = []; for (let index = 0; index < e.detail.value.length; index++) { const element = e.detail.value[index]; @@ -556,14 +559,12 @@ pathList: pathList, 'secondList.value': e.detail.value, }); - - }, - // - onConfirmSecond() { this.getBookList(false); }, onResetSecond() { this.setData({ + skeletonLoding: true, + pathList: [], 'secondList.value': [], }); this.getBookList(false); -- Gitblit v1.9.1