Commit 6ee04525 by liangjianmin

fix(login): 优化手机号绑定提示逻辑

- 修改登录时未绑定手机号的提示信息,增加绑定手机号窗口的说明
- 添加手机号已绑定的成功提示,提升用户体验
parent 5f1a4d51
Showing with 5 additions and 15 deletions
......@@ -402,26 +402,16 @@
Util.setCookie("token", res.data.api_token, 1);
//登录时,识别到账号未绑定手机号,则显示绑定手机号
//登录时,识别到账号未绑定手机号,则显示绑定手机号窗口
if (!res.data.is_bind_mobile) {
this.loginType = 'bind';
this.clearAllErrors();
return;
}
//强制要求微信绑定
if (!res.data.is_bind_wechat) {
this.$http('get', "/api/login/getwxqrcode").then(res => {
if (res.code === 0) {
window.location.href = res.data.wx_login_url;
} else {
this.$message({
message: res.msg,
type: 'warning'
});
}
})
} else {
this.$message({
message: '手机号已绑定账号',
type: 'success'
});
window.location.href = '/';
}
} else if (res.code === 102) {
......
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 sign in to comment