|
@@ -119,7 +119,7 @@ var loginPage = new Vue({
|
|
|
_self.setStorages( _self.userData);
|
|
|
// 登录成功页面跳转
|
|
|
var loginBeforePath = getBaseCookie("loginBeforePath");
|
|
|
- if (loginBeforePath && loginBeforePath!='undefined' && loginBeforePath.indexOf('.html')>0) {
|
|
|
+ if (loginBeforePath && loginBeforePath!=='undefined' && loginBeforePath.indexOf('.html')>0) {
|
|
|
delBaseCookie("loginBeforePath");
|
|
|
window.location.href = loginBeforePath;
|
|
|
} else if (_self.userData.userIdentity*1 === 3) {
|
|
@@ -138,7 +138,7 @@ var loginPage = new Vue({
|
|
|
shopId: response.data.shopId,
|
|
|
token: response.data.token
|
|
|
};
|
|
|
- }else if(response.code == '-2'){
|
|
|
+ }else if(response.code === '-2'){
|
|
|
_self.stautsfalse = true;
|
|
|
_self.text =response.msg;
|
|
|
}else {// 登录失败
|
|
@@ -193,7 +193,7 @@ var loginPage = new Vue({
|
|
|
});
|
|
|
timeClock = setInterval(function(){
|
|
|
_self.maxtime--;
|
|
|
- if (_self.maxtime == 0) {
|
|
|
+ if (_self.maxtime === 0) {
|
|
|
clearInterval(timeClock);
|
|
|
}
|
|
|
},1000);
|
|
@@ -309,7 +309,7 @@ var loginPage = new Vue({
|
|
|
this.qrCodeLogin = false;
|
|
|
},
|
|
|
showPassword(event) {
|
|
|
- var el = event.currentTarget;
|
|
|
+ const el = event.currentTarget;
|
|
|
const pwdEle = $(el).siblings('input');
|
|
|
if(pwdEle.attr('type') === 'password') {
|
|
|
$(el).addClass('on');
|
|
@@ -320,7 +320,7 @@ var loginPage = new Vue({
|
|
|
}
|
|
|
},
|
|
|
blurHandle(event) { // 失去焦点校验
|
|
|
- var el = event.currentTarget;
|
|
|
+ const el = event.currentTarget;
|
|
|
verifyHandle(el);
|
|
|
},
|
|
|
SetSoragesInfo(data){
|