Browse Source

微信登录

西昌缴费二期
杨晓琪 2 years ago
parent
commit
2c9d968756
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/weixinLogin.vue

+ 6
- 4
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/weixinLogin.vue View File

@@ -129,8 +129,9 @@ export default {
token: success.baseinfo.token,
date: moment().format('yyyy-MM-dd hh:mm:ss')
};
this.SET_STORAGE("logininfo",logininfo)
this.SET_STORAGE("userinfo",success)
this.SET_STORAGE("token",success.baseinfo.token)
// this.SET_STORAGE("logininfo",logininfo)
// this.SET_STORAGE("userinfo",success)
location.href = "http://" + window.location.host;
}else{
this.ready = true
@@ -175,8 +176,9 @@ export default {
token: success.baseinfo.token,
date: moment().format('yyyy-MM-dd hh:mm:ss')
};
this.SET_STORAGE('logininfo', logininfo);
this.SET_STORAGE('userinfo', success);
this.SET_STORAGE("token",success.baseinfo.token)
// this.SET_STORAGE('logininfo', logininfo);
// this.SET_STORAGE('userinfo', success);
this.username = ""
this.password = ""
if (success.pwd === true) {


Loading…
Cancel
Save