|
|
|
@ -476,10 +476,28 @@ class LoginDialog extends Component {
|
|
|
|
|
if (response.data.status === 402) {
|
|
|
|
|
// window.location.href = response.data.url;
|
|
|
|
|
}else if (response.data.status === -2) {
|
|
|
|
|
if (response.data.message === "登录密码出错已达上限,账号已被锁定, 请10分钟后重新登录或找回密码") {
|
|
|
|
|
const messge = (
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
登录密码出错已达上限,账号已被锁定;
|
|
|
|
|
</p>
|
|
|
|
|
<p className="mt10">
|
|
|
|
|
请10分钟后重新登录或<a href={'/changepassword'} style={{
|
|
|
|
|
textDecoration: "underline",
|
|
|
|
|
color: "#4CACFF",
|
|
|
|
|
}}>找回密码</a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
this.openNotifications(messge);
|
|
|
|
|
} else {
|
|
|
|
|
notification.open({
|
|
|
|
|
message: '提示',
|
|
|
|
|
description: response.data.message,
|
|
|
|
|
duration: 5,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -529,6 +547,17 @@ class LoginDialog extends Component {
|
|
|
|
|
weixinlogin:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
openNotifications = (btn) => {
|
|
|
|
|
// type 1 成功提示绿色 2提醒颜色黄色 3错误提示红色
|
|
|
|
|
notification.open({
|
|
|
|
|
message: "提示",
|
|
|
|
|
description: btn,
|
|
|
|
|
duration: 5,
|
|
|
|
|
onClick: () => {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
openqqlogin=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
qqlogin:true
|
|
|
|
@ -611,6 +640,11 @@ class LoginDialog extends Component {
|
|
|
|
|
ref="loginPassText"
|
|
|
|
|
onInput={this.loginChange}
|
|
|
|
|
onBlur={(e) => this.inputOnBlur(e, 1)}
|
|
|
|
|
onPressEnter={disabled === false ?
|
|
|
|
|
this.loginEDU : () => {
|
|
|
|
|
}
|
|
|
|
|
// console.log(1)
|
|
|
|
|
}
|
|
|
|
|
value={this.state.loginValue}
|
|
|
|
|
name="username"
|
|
|
|
|
placeholder="请输入有效的手机号/邮箱号" ></input>
|
|
|
|
@ -625,6 +659,11 @@ class LoginDialog extends Component {
|
|
|
|
|
onInput={this.passwordChange}
|
|
|
|
|
onKeyDown={this.onKeydowns}
|
|
|
|
|
className="input-100-45 mt5"
|
|
|
|
|
onPressEnter={disabled === false ?
|
|
|
|
|
this.loginEDU : () => {
|
|
|
|
|
}
|
|
|
|
|
// console.log(1)
|
|
|
|
|
}
|
|
|
|
|
placeholder="密码" >
|
|
|
|
|
</input>
|
|
|
|
|
<div style={{height: '25px'}}>
|
|
|
|
@ -662,7 +701,8 @@ class LoginDialog extends Component {
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="fr">
|
|
|
|
|
<a onClick={(url)=>this.getloginurl("/changepassword")} className="mr3 color-grey-9">忘记密码</a><em className="vertical-line"></em>
|
|
|
|
|
<a onClick={(url) => this.getloginurl("/changepassword")}
|
|
|
|
|
className="mr3 color-grey-9">找回密码</a><em className="vertical-line"></em>
|
|
|
|
|
<a onClick={(url)=>this.getloginurl("/register")} className="color-grey-9">注册</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|