|
|
@@ -282,7 +282,7 @@ |
|
|
|
user.miniProgram = true |
|
|
|
} |
|
|
|
|
|
|
|
if (baseinfo.Description == '学生') { |
|
|
|
// if (baseinfo.Description == '学生') { |
|
|
|
// 验证码验证 |
|
|
|
this.HIDE_LOADING() |
|
|
|
this.resData = { |
|
|
@@ -302,17 +302,23 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
}, 1000); |
|
|
|
|
|
|
|
if (baseinfo.Description == '学生') { |
|
|
|
this.SET_STORAGE("tokenExpireTime", new Date().valueOf()+86400000*30) |
|
|
|
}else{ |
|
|
|
this.SET_STORAGE("tokenExpireTime", new Date().valueOf()+86400000*7) |
|
|
|
} |
|
|
|
|
|
|
|
return |
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
this.SET_GLOBAL('token', token) |
|
|
|
this.SET_GLOBAL('loginUser', user) |
|
|
|
this.SET_STORAGE("logintime", user.logTime); |
|
|
|
this.SET_STORAGE('token', token) |
|
|
|
// this.SET_GLOBAL('token', token) |
|
|
|
// this.SET_GLOBAL('loginUser', user) |
|
|
|
// this.SET_STORAGE("logintime", user.logTime); |
|
|
|
// this.SET_STORAGE('token', token) |
|
|
|
|
|
|
|
this.HIDE_LOADING() |
|
|
|
this.TAB_TO('/pages/home') |
|
|
|
// this.HIDE_LOADING() |
|
|
|
// this.TAB_TO('/pages/home') |
|
|
|
}, |
|
|
|
|
|
|
|
// 验证用户输入 |
|
|
|