|
|
|
@ -14,12 +14,12 @@ import './common.css'
|
|
|
|
|
import './commontwo.css'
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
const loginInputsyl = {
|
|
|
|
|
"width":"434px",
|
|
|
|
|
"height": "462px",
|
|
|
|
|
"-webkit-box-shadow": "3px 10px 21px 0px rgba(76,76,76,0.15)",
|
|
|
|
|
"box-shadow": "3px 10px 21px 0px rgba(76,76,76,0.15)",
|
|
|
|
|
"border-radius": "6px",
|
|
|
|
|
"background": "#fff"
|
|
|
|
|
"width":"434px",
|
|
|
|
|
"height": "462px",
|
|
|
|
|
"-webkit-box-shadow": "3px 10px 21px 0px rgba(76,76,76,0.15)",
|
|
|
|
|
"box-shadow": "3px 10px 21px 0px rgba(76,76,76,0.15)",
|
|
|
|
|
"border-radius": "6px",
|
|
|
|
|
"background": "#fff"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//父组件EducoderLogin.js
|
|
|
|
@ -66,6 +66,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
pciphone:true,
|
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
|
registered:undefined,
|
|
|
|
|
Phonenumberisnotcodmms:undefined,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -103,6 +104,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
pciphone:true,
|
|
|
|
|
MyEduCoderModals:false,
|
|
|
|
|
registered:undefined,
|
|
|
|
|
Phonenumberisnotcodmms:undefined,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -162,7 +164,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
StudyMakeMoney = () => { // 调用父组件方法
|
|
|
|
|
this.props.Setshowbool(3);
|
|
|
|
|
|
|
|
|
|
// this.props.Setlogins(3);
|
|
|
|
|
this.setState({
|
|
|
|
|
login: "",
|
|
|
|
@ -170,7 +172,12 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
logins: "",
|
|
|
|
|
passwords: "",
|
|
|
|
|
codes: "",
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
try {
|
|
|
|
|
this.props.Setshowbool(3);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onTabChange = (activeKey) => {
|
|
|
|
|
console.log("onTabChange");
|
|
|
|
@ -294,6 +301,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
|
|
|
|
|
//登入接口
|
|
|
|
|
postLogin = () => {
|
|
|
|
|
|
|
|
|
|
if (this.state.login === undefined || this.state.login == "") {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco:"账号不能为空",
|
|
|
|
@ -310,24 +318,25 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
login: this.state.login,
|
|
|
|
|
password: this.state.password,
|
|
|
|
|
}).then((response) => {
|
|
|
|
|
debugger
|
|
|
|
|
if (response === undefined) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(response.data.status === -2){
|
|
|
|
|
if("该手机号尚未注册" || "该邮箱尚未注册"){
|
|
|
|
|
if(response.data.message==="该手机号尚未注册" || response.data.message==="该邮箱尚未注册"){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco:response.data.message,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else if("错误的账号或密码"){
|
|
|
|
|
else if(response.data.message==="错误的账号或密码"){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco:response.data.message,
|
|
|
|
|
Phonenumberisnotcodmms:response.data.message,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else if("违反平台使用规范,账号已被锁定"){
|
|
|
|
|
else if(response.data.message==="违反平台使用规范,账号已被锁定"){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco:response.data.message,
|
|
|
|
|
})
|
|
|
|
@ -666,12 +675,14 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco: undefined,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
Phonenumberisnotcodmms:undefined,
|
|
|
|
|
login: stirngt,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
login: stirngt,
|
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
|
Phonenumberisnotcodmms:undefined,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -750,6 +761,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
password: stirngt,
|
|
|
|
|
Phonenumberisnotcodmm:undefined,
|
|
|
|
|
Phonenumberisnotcodmms:undefined,
|
|
|
|
|
})
|
|
|
|
|
// this.setState({
|
|
|
|
|
// password: e.target.value
|
|
|
|
@ -868,6 +880,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// 注册
|
|
|
|
|
readAgreement,
|
|
|
|
|
pciphone,
|
|
|
|
|
Phonenumberisnotcodmms,
|
|
|
|
|
} = this.state
|
|
|
|
|
// height: 346px;
|
|
|
|
|
if (this.state.seconds === 0) {
|
|
|
|
@ -960,7 +973,14 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
<p className="color-red mt5 mb5" style={{width: " 100%", height: "20px"}}>
|
|
|
|
|
<span className="fl" style={{textAlign:"left",width: " 100%"}}>{Phonenumberisnotcodmm}</span>
|
|
|
|
|
</p>
|
|
|
|
|
: <div style={{height:"25px"}}></div>
|
|
|
|
|
: (Phonenumberisnotcodmms=== undefined?<div style={{height:"25px"}}></div>:"")
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
Phonenumberisnotcodmms && Phonenumberisnotcodmms != "" ?
|
|
|
|
|
<p className="color-red mt5 mb5" style={{width: " 100%", height: "20px"}}>
|
|
|
|
|
<span className="fl" style={{textAlign:"left",width: " 100%"}}>{Phonenumberisnotcodmms}</span>
|
|
|
|
|
</p>
|
|
|
|
|
: ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div className="left_right font-12 " style={{color: '#676767'}}>
|
|
|
|
|