Commit 8c7b7bce by 张卓

兼容道可分享进入

parent 1b1720ce
...@@ -115,7 +115,11 @@ export default { ...@@ -115,7 +115,11 @@ export default {
Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化 Object.assign(this.$data, this.$options.data()); //mpvue 的混合周期 使用小程序生命周期数据未初始化
options.scene && (this.scene=options.scene) options.scene && (this.scene=options.scene)
if (options.back) { if (options.back) {
this.backPath = options.back; if(options.isEncode == 1) {
this.backPath = decodeURIComponent(options.back);
}else {
this.backPath = options.back;
}
} }
if (options.params) { if (options.params) {
this.defalutBackParams= serialize(options.params); this.defalutBackParams= serialize(options.params);
...@@ -337,6 +341,7 @@ export default { ...@@ -337,6 +341,7 @@ export default {
}); });
}else if (this.scene=='sso' || this.backPath.includes('scene=sso') || this.ossLink.indexOf('scene=sso')>-1) { }else if (this.scene=='sso' || this.backPath.includes('scene=sso') || this.ossLink.indexOf('scene=sso')>-1) {
let backPath = this.backPath; let backPath = this.backPath;
console.log(decodeURIComponent(backPath),600000)
if(this.ossLink) { if(this.ossLink) {
backPath += '?'+this.ossLink backPath += '?'+this.ossLink
} }
......
...@@ -29,7 +29,6 @@ export default { ...@@ -29,7 +29,6 @@ export default {
}; };
}, },
async onLoad(options) { async onLoad(options) {
console.log(wx.getStorageSync("sessionid"),555555566666,decodeURIComponent('https%3A%2F%2Fdk.taokor.cn%2Fwchat%2F%3FsetToken%3D%7Btoken%7D%23%2FappraisalTwo%3Fpaper%3D%257B%2522classify%2522%253A%2522%25E7%25BB%2584%25E7%25BB%2587%25E4%25B8%258E%25E4%25BA%25BA%2522%2C%2522discountSurplus%2522%253A46%2C%2522appName%2522%253A%2522%25E7%25BB%2584%25E7%25BB%2587%25E8%25B0%2583%25E6%259F%25A5%2522%2C%2522discountPrice2%2522%253A0%2C%2522completed%2522%253A6%2C%2522published%2522%253Afalse%2C%2522appStatus%2522%253Afalse%2C%2522cover%2522%253A%2522http%253A%252F%252Fdaoke-ant.oss-cn-beijing.aliyuncs.com%252Fupload%252Fsh%252Fpaper%252Fsh-paperb8d905cc41924278a68fe1a929266b50.jpg%2522%2C%2522appId2%2522%253A59%2C%2522discountDate%2522%253A%25222021%252F07%252F01-2021%252F08%252F31%2522%2C%2522enable%2522%253Atrue%2C%2522genre%2522%253A%2522%25E8%2587%25AA%25E5%258A%25A9%25E8%25AF%2584%25E4%25BC%25B0%2522%2C%2522name%2522%253A%2522%25E8%2581%258C%25E5%259C%25BA%25E6%2580%25A7%25E6%25A0%25BCPDP%25E6%25B5%258B%25E8%25AF%2595%2522%2C%2522isCollective%2522%253A1%2C%2522bid%2522%253A32%2C%2522aid%2522%253A32%2C%2522desc%2522%253A%2522%25E9%2581%2593%25E5%258F%25AF%25E6%25B5%258B%25E8%25AF%2595%25E7%2594%25A8%2522%2C%2522price2%2522%253A0%2C%2522oldPrice%2522%253A0%2C%2522newPrice%2522%253A0%2C%2522isFree%2522%253Atrue%2C%2522onSale%2522%253Atrue%257D'))
this.link=''; this.link='';
/** /**
* scene=sso 第三方需要登录的页面 * scene=sso 第三方需要登录的页面
...@@ -70,9 +69,9 @@ export default { ...@@ -70,9 +69,9 @@ export default {
if (wx.getStorageSync("sessionid")) { if (wx.getStorageSync("sessionid")) {
this.getSsoBcakUrl(decodeURIComponent(link).replace(/\/\?(.+?)#\//, '/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/')) this.getSsoBcakUrl(decodeURIComponent(link).replace(/\/\?(.+?)#\//, '/?token=${token}&scene=sso&toAppid=qOAhsauSaagQlxYdGbJL#/'))
} else { } else {
let url = `/pages/login/main?scene=sso&back=${link}`; let url = `/pages/login/main?scene=sso&isEncode=1&&back=${link}`;
wx.navigateTo({ wx.navigateTo({
url, url
}); });
} }
}else { }else {
......
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