|
|
|
@ -110,8 +110,14 @@ |
|
|
|
|
} = this |
|
|
|
|
console.log('autograph,appLogin', autograph, appLogin) |
|
|
|
|
if (autograph && appLogin) { |
|
|
|
|
this.toLogin(appLogin) |
|
|
|
|
return |
|
|
|
|
if(appLogin.unionId){ |
|
|
|
|
this.toLogin(appLogin) |
|
|
|
|
return |
|
|
|
|
}else{ |
|
|
|
|
this.smsLogin(appLogin) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
let data = await this.$api.base.getConfig() |
|
|
|
|
this.base_info = data |
|
|
|
@ -176,11 +182,16 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
async smsLogin(){ |
|
|
|
|
let userInfo = await this.$api.base.smsLogin({ |
|
|
|
|
phone:this.phone, |
|
|
|
|
code:this.code |
|
|
|
|
}) |
|
|
|
|
async smsLogin(item){ |
|
|
|
|
let userInfo; |
|
|
|
|
if(!item){ |
|
|
|
|
userInfo = await this.$api.base.smsLogin({ |
|
|
|
|
phone:this.phone, |
|
|
|
|
code:this.code |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
userInfo = item; |
|
|
|
|
} |
|
|
|
|
console.log(userInfo,"---") |
|
|
|
|
this.$util.showLoading({ |
|
|
|
|
title: "登录中..." |
|
|
|
|