From b6923adb7b6a5fcbe4a2eaa06e1ebe0e044ba0e2 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 28 三月 2024 14:22:42 +0800 Subject: [PATCH] 代码合并 --- pages/bookServices/assort/index.js | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/bookServices/assort/index.js b/pages/bookServices/assort/index.js index e8f86b1..fa4c9de 100644 --- a/pages/bookServices/assort/index.js +++ b/pages/bookServices/assort/index.js @@ -39,6 +39,11 @@ * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鏄剧ず */ onShow() { + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + active: 1 + }) + } }, /** @@ -135,7 +140,7 @@ // 鑾峰彇浜岀骇鍒嗙被 for (let index = 0; index < res.datas.length; index++) { const item = res.datas[index]; - item.icon ? item.icon = getPublicImage(item.icon, 58, 72) : item.icon = item.icon + item.icon ? item.icon = getPublicImage(item.icon, 500) : item.icon = item.icon item.children = await this.getSecondList(item); } console.log(res.datas); @@ -161,6 +166,9 @@ field: 'state' } ], + coverSize: { + width: 500 + }, queryType: '\\', searchList: [], size: '30', @@ -172,7 +180,7 @@ for (let index = 0; index < res.datas.length; index++) { const element = res.datas[index]; if (element.icon) - element.icon = getPublicImage(element.icon, 58, 72) + element.icon = getPublicImage(element.icon, 500) } datas = res.datas; -- Gitblit v1.9.1