Commit be4ef41b by 吴娟华

'授权'

1 parent 0cebc910
......@@ -78,6 +78,7 @@ const getSessionId = (redirectUrl, state) => {
duration: 0
})
sessionStorage.setItem('GL_WX_APPID', params.appId)
console.log(redirectUrl)
window.location.href = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${params.appId}&redirect_uri=${encodeURIComponent(redirectUrl)}&response_type=code&scope=${state}&state=${state}#wechat_redirect`
}
}
......
......@@ -295,7 +295,7 @@ export default {
})
const urlObj = JSON.parse(sessionStorage.getItem('URL_PARAM'))
if(urlObj) {
if(urlObj && urlObj.merchantId) {
equity.getFissionInfo({merchantId: urlObj.merchantId}).then(res => {
let { code, data, message } = res
this.hideLoading()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!