|
|
@@ -191,7 +191,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
- uni.showLoading({mask:true})
|
|
|
+ //uni.showLoading({mask:true})
|
|
|
uni.preLogin({
|
|
|
provider: 'univerify',
|
|
|
success:()=>{
|
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
let access_token = res.authResult.access_token
|
|
|
phoneLogin({openid,access_token}).then(subRes=>{
|
|
|
let token = subRes.data.token || ''
|
|
|
- uni.hideLoading()
|
|
|
+ //uni.hideLoading()
|
|
|
if (that.$util.isEmpty(token)) {
|
|
|
that.$msg('请先注册')
|
|
|
return false
|
|
|
@@ -247,7 +247,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
fail(res){
|
|
|
-
|
|
|
// 登录失败
|
|
|
//关闭一键登录弹出窗口
|
|
|
uni.closeAuthView()
|
|
|
@@ -260,7 +259,7 @@ export default {
|
|
|
complete: (res) => {
|
|
|
console.log(res)
|
|
|
uni.closeAuthView()
|
|
|
- uni.hideLoading()
|
|
|
+ //uni.hideLoading()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -291,10 +290,10 @@ export default {
|
|
|
this.$msg('请输入密码')
|
|
|
return false
|
|
|
}
|
|
|
- uni.showLoading({mask:true})
|
|
|
+ //uni.showLoading({mask:true})
|
|
|
//有几个地方涉及登陆,需要统一方法,请搜索关键词 uni_login
|
|
|
appLogin({mobile,password}).then(subRes=>{
|
|
|
- uni.hideLoading()
|
|
|
+ //uni.hideLoading()
|
|
|
if(subRes.code == 1){
|
|
|
if (that.$util.isEmpty(subRes)) {
|
|
|
return false
|