Commit 23aaaec8 by liangjianmin

css

parent bfd044f2
Showing with 14 additions and 3 deletions
......@@ -160,10 +160,21 @@
loadingInstance.close();
if (res.err_code === 0) {
Util.setCookie("token", res.data.api_token, 1);
if (this.$route.query.referer) {
window.location.href = "/#" + this.$route.query.referer
//强制要求微信绑定
if (!res.data.is_bind_wechat) {
this.$http('get', "/api/login/getwxqrcode").then(res => {
if (res.err_code === 0) {
window.location.href = res.data.wx_login_url;
} else {
Message(res.err_msg);
}
})
} else {
window.location.href = '/';
if (this.$route.query.referer) {
window.location.href = "/#" + this.$route.query.referer
} else {
window.location.href = '/';
}
}
} else if (res.err_code === 102) {
this.errror_text = res.err_msg;
......
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