From 089573588fc00ecda7d13a76e2a8f5c3670bcce3 Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 18 Apr 2024 09:19:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5c8255c..14cea30 100644 --- a/index.html +++ b/index.html @@ -124,8 +124,8 @@ //获取链接携带的参数 // let linkId = getQueryString('id'); // let keyCode = getQueryString('key'); - let linkId = "2559" - let keyCode = "AAACHFBSEJcEj6rb" + let linkId = "2612" + let keyCode = "AAACJLGQWarwBNHG" if (!linkId) {//地址栏无携带id let path = window.location.pathname; let parmas = path.split('/'); @@ -218,10 +218,23 @@ methods: { // 统一跳转逻辑判断 gotoPage(data, type) { - window.location.href = "xw-pages/homepage.html"; - return + + // xw 模块 + if (data.is_voucher_auto) { + let goto_url = "/xw-pages/homepage.html"; + setTimeout(() => { + if (type) { + window.location.replace(goto_url); + } else { + window.location.href = goto_url; + } + }, 300); + return + } + // 微信授权回调地址 let wxauth_url = "https://openapi.1688sup.com/wechat/oauth"; + // 第一步:判断是否是 微信静默授权 是 -> 拼接回调地址 if (data.is_have_webview_voucher) { // 第二步:判断是否是包码 是 -> 走包码回调地址