|
|
|
@ -48,7 +48,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
readAgreement: false,
|
|
|
|
|
getverificationcodes: true,
|
|
|
|
|
dragOk: false,
|
|
|
|
|
Agreetotheterms: true,
|
|
|
|
|
// Agreetotheterms: true,
|
|
|
|
|
login: "",
|
|
|
|
|
password: "",
|
|
|
|
|
logins: "",
|
|
|
|
@ -86,7 +86,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
readAgreement: false,
|
|
|
|
|
getverificationcodes: true,
|
|
|
|
|
dragOk: false,
|
|
|
|
|
Agreetotheterms: true,
|
|
|
|
|
// Agreetotheterms: true,
|
|
|
|
|
login: "",
|
|
|
|
|
password: "",
|
|
|
|
|
logins: "",
|
|
|
|
@ -293,11 +293,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// -------------------- REGISTER END
|
|
|
|
|
|
|
|
|
|
//是否同意
|
|
|
|
|
onChange = (e) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
Agreetotheterms: e.target.checked,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// onChange = (e) => {
|
|
|
|
|
// this.setState({
|
|
|
|
|
// Agreetotheterms: e.target.checked,
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
//登入接口
|
|
|
|
|
postLogin = () => {
|
|
|
|
@ -446,10 +446,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcosymmm:"密码不能超过16位",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
} else if (this.state.Agreetotheterms === false) {
|
|
|
|
|
this.openNotification(`请同意服务协议条款`,2);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// else if (this.state.Agreetotheterms === false) {
|
|
|
|
|
// this.openNotification(`请同意服务协议条款`,2);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
var url = "/accounts/register.json";
|
|
|
|
|
axios.post(url, {
|
|
|
|
|
login: this.state.logins,
|
|
|
|
@ -1135,14 +1136,14 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
: <div style={{height:"25px"}}></div>
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
<Checkbox onChange={this.onChange}
|
|
|
|
|
checked={Agreetotheterms}
|
|
|
|
|
><span className="font-14 " style={{
|
|
|
|
|
color: '#676767',
|
|
|
|
|
}}>我已阅读并同意
|
|
|
|
|
<span>
|
|
|
|
|
<a href={'/help?index=4'} target="_blank" >《服务协议条款》</a>
|
|
|
|
|
</span></span></Checkbox>
|
|
|
|
|
{/*<Checkbox onChange={this.onChange}*/}
|
|
|
|
|
{/* checked={Agreetotheterms}*/}
|
|
|
|
|
{/*><span className="font-14 " style={{*/}
|
|
|
|
|
{/* color: '#676767',*/}
|
|
|
|
|
{/*}}>我已阅读并同意*/}
|
|
|
|
|
{/* <span>*/}
|
|
|
|
|
{/* <a href={'/help?index=4'} target="_blank" >《服务协议条款》</a>*/}
|
|
|
|
|
{/* </span></span></Checkbox>*/}
|
|
|
|
|
<Button className=" font-16" type="primary" style={{height:"46px", width: "100%",marginTop:"26px"}} onClick={() => this.postregistered()}
|
|
|
|
|
size={"large"}>注册</Button>
|
|
|
|
|
|
|
|
|
|