提交 298af303 authored 作者: pengxiaohui's avatar pengxiaohui

修改bug

上级 dcfa3fe8
...@@ -83,6 +83,9 @@ export default { ...@@ -83,6 +83,9 @@ export default {
}, },
isBackFormWxPay () { isBackFormWxPay () {
return window.sessionStorage.getItem('isBackFormWxPay') return window.sessionStorage.getItem('isBackFormWxPay')
},
openId () {
return window.localStorage.getItem('openId')
} }
}, },
beforeMount() { beforeMount() {
...@@ -156,7 +159,7 @@ export default { ...@@ -156,7 +159,7 @@ export default {
getOpenId({ code, identity: 'ezijing' }).then(response => { getOpenId({ code, identity: 'ezijing' }).then(response => {
if (response.code === 0) { if (response.code === 0) {
this.openId = response.openid this.openId = response.openid
window.localStorage.setItem('open_id', this.openId) window.localStorage.setItem('openId', this.openId)
} else { } else {
this.getCode() this.getCode()
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论