From 960c49a8b3ac11dff27cad71137f986f90f00923 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 26 四月 2024 19:16:32 +0800 Subject: [PATCH] 样书申请、详情页资源显示bug修改 --- packageDomain/pages/sampleBookList/index.js | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packageDomain/pages/sampleBookList/index.js b/packageDomain/pages/sampleBookList/index.js index 1f8093b..2eafd72 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,10 +559,6 @@ pathList: pathList, 'secondList.value': e.detail.value, }); - - }, - // - onConfirmSecond() { this.getBookList(false); }, onResetSecond() { -- Gitblit v1.9.1