From bd95a6030cdeeb3acea564441d0c71feb6e708e2 Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期一, 25 三月 2024 18:21:03 +0800 Subject: [PATCH] tabBar问题调整 --- pages/cart/index.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pages/cart/index.js b/pages/cart/index.js index 7d37d43..ad14b41 100644 --- a/pages/cart/index.js +++ b/pages/cart/index.js @@ -25,9 +25,13 @@ this.shoppingCartGet(); }, onShow() { + if (typeof this.getTabBar === 'function' && this.getTabBar()) { + this.getTabBar().setData({ + active: 3 + }) + } this.shoppingCartGet(); this.setData({ totalPrice: 0.00, selectedCount: 0, checkAll: false, }) - }, onDelete(e) { const item = e.currentTarget.dataset.item; -- Gitblit v1.9.1