Commit 8638651d by 李嘉林

feat: 登录优先校验协议

parent 98428123
......@@ -467,12 +467,7 @@ export default {
getUserProfile() {
log.info('点击了微信一键登录');
console.log('点击了微信一键登录');
wx.showLoading({
title: '登录中...',
mask: true
})
console.log('登录中...');
if(this.content&&!this.checked&&this.onceFlag) {
if(this.content&&!this.checked) {
wx.hideLoading()
if (this.registerFlag) {
this.showRegisterProtocol();
......@@ -484,6 +479,11 @@ export default {
}
return
}
wx.showLoading({
title: '登录中...',
mask: true
})
console.log('登录中...');
console.log('同意协议...',this.userInfo);
if (this.userInfo) {
if (this.tempData) return this.handleSuccess()
......@@ -507,7 +507,6 @@ export default {
})
},
async initUserInfo() {
this.onceFlag = true;
this.initUser().then(res => {
wx.hideLoading();
//存入openid
......
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