fengxiang
2018-02-08 bde1723df23bd3c3ee4a76cdc6951b1140f6f525
src/app/routes/passport/login/login.component.ts
@@ -86,7 +86,7 @@
                           name: this.userName.value,
                           time: +new Date
                       });
                       this.validateError = true;
                       this.validateError = {};
                       this.router.navigate(['/']);
                   }
                },
@@ -100,8 +100,11 @@
                            console.log(xmlHttpRequest.response);                           
                            const response = JSON.parse(xmlHttpRequest.response);                                                  
                            if(response.status == 401&&response.errorCode==10){                                
                                 this.validateError = true;
                                 this.validateError["password_incorrect"]=true;
                                 this.loading = false;
                            } else if(response.status == 401&&response.errorCode==12) {
                                this.validateError["account_expired"]=true;
                                this.loading = false;
                            }
                        }
                    }
@@ -109,7 +112,7 @@
           );
    }
    public validateError:boolean;
    public validateError:{[s:string]:boolean} = {};
    // region: social
    open(type: string, openType: SocialOpenType = 'href') {