|
|
@ -212,8 +212,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -222,7 +222,10 @@ class LoginRegisterComponent extends Component {
|
|
|
|
stringdata = "邮箱格式不正确";
|
|
|
|
stringdata = "邮箱格式不正确";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
stringdata = "手机号格式不正确";
|
|
|
|
stringdata = "手机号格式不正确";
|
|
|
|
|
|
|
|
// if (!regph.test(value)) {
|
|
|
|
|
|
|
|
// // 这里先判断是不是手机号然后在判断是不是邮箱然后又判断是不是手机号,如果不是手机号就是账号
|
|
|
|
|
|
|
|
// stringdata=undefined;
|
|
|
|
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (id === 1) {
|
|
|
|
if (id === 1) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -234,8 +237,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
Phonenumberisnotcos: stringdata,
|
|
|
|
Phonenumberisnotcos: stringdata,
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (id === 1) {
|
|
|
|
if (id === 1) {
|
|
|
@ -248,8 +251,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
|
|
|
}
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -548,13 +551,13 @@ class LoginRegisterComponent extends Component {
|
|
|
|
// console.log(activeKey);
|
|
|
|
// console.log(activeKey);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
|
|
<div className="login_register_content" style={ parseInt(tab[0])==0?{height: "346px"} :{height: "462px"}}>
|
|
|
|
<div className="login_register_content" style={ parseInt(tab[0])==0?{height: "346px"} :{height: "490px"}}>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
<Menu mode="horizontal" selectedKeys={tab} onClick={this.changeTab}>
|
|
|
|
<Menu.Item key="0">登录</Menu.Item>
|
|
|
|
<Menu.Item key="0" className="font-18" style={{color:"#05101A"}}> 登录</Menu.Item>
|
|
|
|
<Menu.Item key="1">注册</Menu.Item>
|
|
|
|
<Menu.Item key="1" className="font-18" style={{color:"#05101A"}}>注册</Menu.Item>
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|