From 6ad5de55ca4a607d263400b0eb507c1a845d5804 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 3 Jul 2025 16:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=ACtabbar=E7=A6=81=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom-tab-bar/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index e6169da..daa6af3 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -53,11 +53,18 @@ Component({ */ methods: { switchTab(e) { - // console.log(e); + console.log(e); const data = e.currentTarget.dataset; const url = data.path; + if(url === '/pages/life/life'){ + wx.showToast({ + title: '暂未开放,敬请期待', + icon:'none' + }) + }else{ app.globalData.selected = data.index; wx.switchTab({url}) + } } } })