From 4c0b6775f988e2acfea954f015a1010963ce2d97 Mon Sep 17 00:00:00 2001 From: tcubic <123456> Date: Wed, 3 Aug 2022 19:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Index.vue b/src/components/Index.vue index fee46ae..0deee03 100644 --- a/src/components/Index.vue +++ b/src/components/Index.vue @@ -267,8 +267,11 @@ const activityBtn = (item) => { if (item.id == 3) { console.log("生日专享页面"); - window.location.href = - "https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_8rrkjpiS"; + wx.miniProgram.navigateTo({ + url: "https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_8rrkjpiS", + }); + // window.location.href = + // "https://appstatic.cmschina.com/activity/cmszhyxpt/bees/index.html?id=INT_SMKTC_8rrkjpiS"; } if (item.id == 4) { @@ -284,7 +287,7 @@ const activityBtn = (item) => { if (item.id == 6) { console.log("财富日报"); - wx.miniProgram.reLaunch({ + wx.miniProgram.navigateTo({ url: "/subs/wealthpaper/wealthpaper", }); }