From af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 29 七月 2024 15:24:30 +0800 Subject: [PATCH] 图书详情页添加对云学习目录整体购买的判断 --- pages/bookServices/assort/index.js | 41 ++++++++++++++++++++++++++++++++++++++--- 1 files changed, 38 insertions(+), 3 deletions(-) diff --git a/pages/bookServices/assort/index.js b/pages/bookServices/assort/index.js index 888e96e..fd62f84 100644 --- a/pages/bookServices/assort/index.js +++ b/pages/bookServices/assort/index.js @@ -25,6 +25,37 @@ bookList: [], loading: false, listLoding: false, + stairListLoading: false, + rowCol: [{ + width: '50%', + }, + { + width: '100%' + }, + { + width: '80%' + }, + { + width: '100%' + }, { + width: '100%' + }, + { + width: '100%' + }, + { + width: '50%' + }, + { + width: '100%' + }, + { + width: '80%' + }, + { + width: '100%' + }, + ], }, /** @@ -87,6 +118,7 @@ getAssortList() { this.setData({ loading: true, + listLoding: true, }); const query = { path: "*", @@ -134,7 +166,8 @@ // 鑾峰彇涓�绾у垎绫� getStairList(path) { this.setData({ - listLoding: true, + stairListLoading: true, + startList: [] }); const query = { path, @@ -157,14 +190,16 @@ for (let index = 0; index < res.datas.length; index++) { const item = res.datas[index]; item.icon ? - (item.icon = getPublicImage(item.icon, 500)) : + (item.icon = getPublicImage(item.icon, 150)) : (item.icon = item.icon); item.children = await this.getSecondList(item); + } // 涓�绾у垎绫昏祴鍊� this.setData({ startList: res.datas, listLoding: false, + stairListLoading: false, "startCheck.id": res.datas[0].id, "startCheck..code": "", }); @@ -197,7 +232,7 @@ await app.MG.store.getStoreChannelList(query).then((res) => { for (let index = 0; index < res.datas.length; index++) { const element = res.datas[index]; - if (element.icon) element.icon = getPublicImage(element.icon, 500); + if (element.icon) element.icon = getPublicImage(element.icon, 150); } datas = res.datas; }); -- Gitblit v1.9.1