Commit 0c9baf4f by 李嘉林

扫码落地页

parent aa72c08c
...@@ -66,24 +66,16 @@ export default { ...@@ -66,24 +66,16 @@ export default {
* scene=sso 第三方需要登录的页面 * scene=sso 第三方需要登录的页面
* login=1 jwt需要登录(临时方案) * login=1 jwt需要登录(临时方案)
*/ */
let link = "";
if (options.scene) { if (options.scene) {
//扫码 //扫码
let data = await this.getParams(options.scene); let data = await this.getParams(options.scene);
if (data.sso) { if (data.sso) {
let link = data.link; link = data.link;
if(getUrlKey(decodeURIComponent(link), "getMixId") == '1') {//第三方跳转加mixid
link = forUrlAddKey(decodeURIComponent(link),{mixid: this.$store.state.mixid})
}
if (!wx.getStorageSync("sessionid")) {
wx.redirectTo({
url: `../login/main?scene=sso&isEncode=1&back=${link}`,
});
} else {
this.getSsoBcakUrl(decodeURIComponent(link).replace(/\/\?(.+?)#\//, '/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'));
}
} }
} else if (options.link) { } else if (options.link) {
let link = options.link; link = options.link;
}
if(getUrlKey(decodeURIComponent(link), "getMixId") == '1') {//第三方跳转加mixid if(getUrlKey(decodeURIComponent(link), "getMixId") == '1') {//第三方跳转加mixid
link = forUrlAddKey(decodeURIComponent(link),{mixid: this.$store.state.mixid}) link = forUrlAddKey(decodeURIComponent(link),{mixid: this.$store.state.mixid})
} }
...@@ -138,7 +130,6 @@ export default { ...@@ -138,7 +130,6 @@ export default {
}); });
} }
} }
}
}, },
onShow() { onShow() {
console.log(this.link,'------------154') console.log(this.link,'------------154')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment