Commit ecb03b20 authored by 沈良进's avatar 沈良进

添加登录信息

parent 5d08b826
...@@ -327,7 +327,16 @@ export default { ...@@ -327,7 +327,16 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
const { type, unoinid } = res.data.data; const { type, unoinid } = res.data.data;
if (type === 1) { if (type === 1) {
this.CommonJump("/index", {});
window.localStorage.setItem(
"b2bUser",
JSON.stringify(res.data.data)
);
if (this.path) {
this.CommonJump(this.path, {});
} else {
this.CommonJump("/index", {});
}
} else { } else {
this.isLogin = false; this.isLogin = false;
// 绑定邮箱 // 绑定邮箱
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
changeWechat() { changeWechat() {
const { AppID, State, OpenRedirectUri } = this.openInfo; const { AppID, State, OpenRedirectUri } = this.openInfo;
let redirect_uri = OpenRedirectUri; let redirect_uri = OpenRedirectUri;
const url = `https://open.weixin.qq.com/connect/qrconnect?appid=${AppID}&redirect_uri=${redirect_uri}/loginInfo&response_type=code&scope=snsapi_login&state=${State}&wechat_redirect=${redirect_uri}`; const url = `https://open.weixin.qq.com/connect/qrconnect?appid=${AppID}&redirect_uri=${redirect_uri}/#/loginInfo&response_type=code&scope=snsapi_login&state=${State}&wechat_redirect=${redirect_uri}`;
window.location.href = url; window.location.href = url;
}, },
changeEmail() { changeEmail() {
......
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