fix: 设置调整按钮

This commit is contained in:
zhangds 2024-04-18 09:19:15 +08:00
parent e239a9a896
commit 089573588f
1 changed files with 17 additions and 4 deletions

View File

@ -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";
// 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) {
// 第二步:判断是否是包码 是 -> 走包码回调地址