Commit d0587bc2 by 张卓

道可登录报错

parent fd93ffb5
......@@ -77,7 +77,8 @@ export default {
test_isHaveUnion: "",
test_unionId: "",
fromType:'',//来源类型 mini:小程序跳转到当前登录页
scene:''//场景
scene:'',//场景
ossLink: ''//第三方点击进入链接
};
},
onShow() {
......@@ -105,8 +106,8 @@ export default {
})
},
onLoad(options) {
login.getShopUserProtocol().then(res => {
console.log(res,777888999)
if(res.data.code == '200') {
this.content = res.data.data;
}
......@@ -122,6 +123,9 @@ export default {
let params = JSON.parse(options.params);
this.fromType = params.fromType;
}
if(options.ossLink) {
this.ossLink = decodeURIComponent(options.ossLink)
}
this.getshop();
},
methods: {
......@@ -331,9 +335,13 @@ export default {
wx.navigateBack({
delta: 1
});
}else if (this.scene=='sso' || this.backPath.includes('scene=sso')) {
}else if (this.scene=='sso' || this.backPath.includes('scene=sso') || this.ossLink.indexOf('scene=sso')>-1) {
let backPath = this.backPath;
if(this.ossLink) {
backPath += '?'+this.ossLink
}
wx.redirectTo({
url: `../wxArticle/main?link=${this.backPath}`,
url: `../wxArticle/main?link=${encodeURIComponent(backPath)}`,
});
}else{
let parseLink=decodeURIComponent(this.backPath);
......
......@@ -55,7 +55,6 @@ export default {
if(getUrlKey(decodeURIComponent(link), "getMixId") == '1') {//第三方跳转加mixid
link = forUrlAddKey(decodeURIComponent(link),{mixid: this.$store.state.mixid})
}
console.log(wx.getStorageSync("sessionid"),446466777777,getUrlKey(decodeURIComponent(link), "mixid"),this.$store.state.mixid)
if (getUrlKey(decodeURIComponent(link), "scene") == "sso") {
if (!wx.getStorageSync("sessionid")) {
wx.redirectTo({
......@@ -132,6 +131,7 @@ export default {
methods: {
setLink(data) {
this.link = data;
console.log(this.link,89999999)
},
getSsoBcakUrl(link) {
let op = {
......
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