提交 99c3764f authored 作者: lihuihui's avatar lihuihui

updata

上级 b1a9a46a
......@@ -95,7 +95,9 @@ export default {
api
.bindWechat(params)
.then(response => {
this.loginSuccess(response)
this.bindVisitor(() => {
this.loginSuccess(response)
})
})
.catch(error => {
error.response && this.$toast(error.response.data.message)
......@@ -123,6 +125,11 @@ export default {
this.$toast(response.msg)
}
},
bindVisitor(call) {
return api.bindVisitor({ user_id: window.localStorage.userId }).then(res => {
call()
})
},
wechatLogin() {
const appId = 'wxc6044475caf2805a'
const wechatRedirectURL =
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论