Commit cf7ce8b4 authored by Facius's avatar Facius

login页面二次登录bug

parent 55bc8d3e
...@@ -163,7 +163,7 @@ export default { ...@@ -163,7 +163,7 @@ export default {
login.signup(params).then(res => { login.signup(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res) { if (res) {
app.setUserData(res.data, that) login.setUserData(res.data, that)
app.track('signup_login', {mobile: res.data.mobile}); app.track('signup_login', {mobile: res.data.mobile});
app.profileSet(that) app.profileSet(that)
app.profileAppend(that) app.profileAppend(that)
...@@ -174,11 +174,11 @@ export default { ...@@ -174,11 +174,11 @@ export default {
title: '授权失败,请重新授权', title: '授权失败,请重新授权',
icon: 'none' icon: 'none'
}); });
this.setLoginStatus(false) that.setLoginStatus(false)
} }
}).catch(res => { }).catch(res => {
uni.hideLoading() uni.hideLoading()
this.setLoginStatus(false) that.setLoginStatus(false)
}) })
}, },
fail () { fail () {
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
} }
}) })
} else { } else {
this.toLogin(params) that.toLogin(params)
} }
} else { } else {
uni.showModal({ uni.showModal({
......
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