From feed9016c8227eb47acbc9aa26a91e591faaaf80 Mon Sep 17 00:00:00 2001 From: kuaileWu <1432334894@qq.com> Date: Wed, 4 Jun 2025 11:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=86=85=E9=83=A8?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E5=BE=AE=E4=BF=A1=E6=89=AB=E4=B8=80=E6=89=AB?= =?UTF-8?q?=E5=90=8E=20=E6=97=A0=E6=B3=95=E6=89=AB=E6=8F=8F=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tabbar.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/tabbar.vue b/components/tabbar.vue index c9b2b7e..250c9bc 100644 --- a/components/tabbar.vue +++ b/components/tabbar.vue @@ -85,6 +85,13 @@ // #ifdef MP-WEIXIN uni.scanCode({ success: (res) => { + if(res.path) { + const sceneParam = res.path.split('scene=')[1]; + if (sceneParam && sceneParam.indexOf('dp=') > -1) { + var encodedScene = encodeURIComponent(sceneParam); + res.path = res.path.replace(`scene=${sceneParam}`, `scene=${encodedScene}`); + } + } var url = `/${res.path}`; uni.navigateTo({ url }); },