|
|
@@ -31,12 +31,25 @@
|
|
|
uni.removeStorageSync("Authorization-status");
|
|
|
// 获取并解码 q 参数
|
|
|
let qlink = decodeURIComponent(options.q || '');
|
|
|
+ console.log(qlink);
|
|
|
if (qlink) {
|
|
|
- const decodedUrl = decodeURIComponent(qlink); // 先解码
|
|
|
+ let decodedUrl = decodeURIComponent(qlink); // 先解码
|
|
|
// 1. 去掉域名部分,提取路径
|
|
|
const scanCode = decodedUrl.replace('https://e.dnzc.vip/', ''); // 得到 "a7e4a3f2947004f6"
|
|
|
this.scanCode = scanCode;
|
|
|
+
|
|
|
+ uni.redirectTo({
|
|
|
+ url: '/pages/skip?url='+skipUrl
|
|
|
+ })
|
|
|
+
|
|
|
}
|
|
|
+ let decodedUrl = "https://d.dnzc.vip/a00f8b7dc36984c1";
|
|
|
+ if (decodedUrl.indexOf('https://d.dnzc.vip') !== -1){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/common?url=' + encodeURIComponent(decodedUrl)
|
|
|
+ })
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.login(); // 调用登录方法
|
|
|
|
|
|
},
|
|
|
@@ -56,10 +69,10 @@
|
|
|
if (res.data.isWxAuth == 1) {
|
|
|
uni.setStorageSync('Authorization-status', true);
|
|
|
}
|
|
|
- if ((that.scanCode === '' || that.scanCode === undefined) && res.data.roles.length > 1){
|
|
|
- that.getIsNoLogin(res.data.uid);
|
|
|
- return;
|
|
|
- }
|
|
|
+ // if ((that.scanCode === '' || that.scanCode === undefined) && res.data.roles.length > 1){
|
|
|
+ // that.getIsNoLogin(res.data.uid);
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
|
|
|
that.scanCode = res.data.qrCode;
|
|
|
setToken(res.data.sessionId);
|