fix: 设置调整按钮
This commit is contained in:
parent
e239a9a896
commit
089573588f
21
index.html
21
index.html
|
@ -124,8 +124,8 @@
|
||||||
//获取链接携带的参数
|
//获取链接携带的参数
|
||||||
// let linkId = getQueryString('id');
|
// let linkId = getQueryString('id');
|
||||||
// let keyCode = getQueryString('key');
|
// let keyCode = getQueryString('key');
|
||||||
let linkId = "2559"
|
let linkId = "2612"
|
||||||
let keyCode = "AAACHFBSEJcEj6rb"
|
let keyCode = "AAACJLGQWarwBNHG"
|
||||||
if (!linkId) {//地址栏无携带id
|
if (!linkId) {//地址栏无携带id
|
||||||
let path = window.location.pathname;
|
let path = window.location.pathname;
|
||||||
let parmas = path.split('/');
|
let parmas = path.split('/');
|
||||||
|
@ -218,10 +218,23 @@
|
||||||
methods: {
|
methods: {
|
||||||
// 统一跳转逻辑判断
|
// 统一跳转逻辑判断
|
||||||
gotoPage(data, type) {
|
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";
|
let wxauth_url = "https://openapi.1688sup.com/wechat/oauth";
|
||||||
|
|
||||||
// 第一步:判断是否是 微信静默授权 是 -> 拼接回调地址
|
// 第一步:判断是否是 微信静默授权 是 -> 拼接回调地址
|
||||||
if (data.is_have_webview_voucher) {
|
if (data.is_have_webview_voucher) {
|
||||||
// 第二步:判断是否是包码 是 -> 走包码回调地址
|
// 第二步:判断是否是包码 是 -> 走包码回调地址
|
||||||
|
|
Loading…
Reference in New Issue