From c8c3f384040bad0044dcabf72e162e35b5786afa Mon Sep 17 00:00:00 2001 From: tanghaolin <1723298894@qq.com> Date: 星期二, 08 十一月 2022 17:38:10 +0800 Subject: [PATCH] 修改系统tabbar为自定义tabbar --- mine/index/index.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/mine/index/index.js b/mine/index/index.js index 968e7c4..07b7aed 100644 --- a/mine/index/index.js +++ b/mine/index/index.js @@ -29,6 +29,12 @@ userInfo: userInfo }); } + if (typeof this.getTabBar === 'function' && + this.getTabBar()) { + this.getTabBar().setData({ + selected: 3 + }) + } }, openSetting: function () { wx.openSetting({ -- Gitblit v1.9.3