Commit 1b1720ce by 张卓

兼容道可分享

parent 291aa394
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ 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 第三方需要登录的页面
...@@ -67,7 +68,7 @@ export default { ...@@ -67,7 +68,7 @@ export default {
//判断是否需要带token //判断是否需要带token
if(decodeURIComponent(link).indexOf('setToken={token}') > -1) { if(decodeURIComponent(link).indexOf('setToken={token}') > -1) {
if (wx.getStorageSync("sessionid")) { if (wx.getStorageSync("sessionid")) {
this.setLink(decodeURIComponent(link).replace('setToken={token}','token=' + wx.getStorageSync("sessionid"))); 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&back=${link}`;
wx.navigateTo({ wx.navigateTo({
......
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