Commit 1b04b30b authored by linwenqing's avatar linwenqing

fix:弱网授权手机号修复

parent 1bf2a333
...@@ -77,10 +77,7 @@ export default { ...@@ -77,10 +77,7 @@ export default {
}, },
async getCode() { async getCode() {
this.isClickGetPhone = true this.isClickGetPhone = true
uni.showLoading({ this.inGetAuth()
title: '授权中..',
mask: true
});
login.appLogin().then(res => { login.appLogin().then(res => {
this.code = res.code this.code = res.code
}) })
...@@ -100,7 +97,6 @@ export default { ...@@ -100,7 +97,6 @@ export default {
mask: true mask: true
}); });
if (getApp().globalData.logout) { if (getApp().globalData.logout) {
console.log('隐藏loading 5')
uni.hideLoading() uni.hideLoading()
that.setLoginStatus() that.setLoginStatus()
} else { } else {
...@@ -239,7 +235,6 @@ export default { ...@@ -239,7 +235,6 @@ export default {
app.getBaseInfo(this) app.getBaseInfo(this)
this.goBackPage() this.goBackPage()
} else { } else {
console.log('隐藏loading 3-2')
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
title: '授权失败,请重新授权', title: '授权失败,请重新授权',
...@@ -248,7 +243,6 @@ export default { ...@@ -248,7 +243,6 @@ export default {
this.setLoginStatus(false) this.setLoginStatus(false)
} }
}).catch(res => { }).catch(res => {
console.log('隐藏loading 4')
uni.hideLoading() uni.hideLoading()
this.setLoginStatus(false) this.setLoginStatus(false)
}) })
......
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