dev_forum
杨树林 5 years ago
parent 6fbcb58b83
commit dd55ea86c1

@ -33,6 +33,8 @@ class Trialapplication extends Component {
user_phone_binded: props.user_phone_binded, user_phone_binded: props.user_phone_binded,
showTrial: false, showTrial: false,
user: undefined, user: undefined,
borredss:"bor-reds",
borredssz:"bor-reds fl mr5",
} }
//user_phone_binded 判断是否手机号验证 //user_phone_binded 判断是否手机号验证
// console.log("Trialapplication"); // console.log("Trialapplication");
@ -371,7 +373,7 @@ class Trialapplication extends Component {
//执行view //执行view
render() { render() {
let {login, codes, reason, isRenders, user_phone_binded, Phonenumberisnotco, getverificationcodes, Phonenumberisnotcocodes, Phonenumberisnotcoreason, seconds} = this.state; let {login, codes, reason, isRenders, user_phone_binded,borredss,borredssz, Phonenumberisnotco, getverificationcodes, Phonenumberisnotcocodes, Phonenumberisnotcoreason, seconds} = this.state;
// console.log("Trialapplication22222222"); // console.log("Trialapplication22222222");
// console.log(this.props); // console.log(this.props);
@ -600,12 +602,13 @@ class Trialapplication extends Component {
onChange={this.loginInputonChange} onChange={this.loginInputonChange}
onBlur={(e) => this.inputOnBlur(e)} onBlur={(e) => this.inputOnBlur(e)}
style={{"height": "38px",}} style={{"height": "38px",}}
className={Phonenumberisnotco && Phonenumberisnotco !== ""?borredss:""}
name="myiphone" name="myiphone"
></Input> ></Input>
{ {
Phonenumberisnotco && Phonenumberisnotco != "" ? Phonenumberisnotco && Phonenumberisnotco != "" ?
<p className="color-red mt5 mb5" style={{width: " 100%", height: "20px"}}> <p className="color-red mt5 mb5" style={{width: " 100%", height: "20px",textAlign:"left"}}>
<span style={{textAlign:"left"}}>{Phonenumberisnotco}</span> <span >{Phonenumberisnotco}</span>
</p> </p>
: <div style={{height: "20px"}}></div> : <div style={{height: "20px"}}></div>
} }
@ -617,7 +620,9 @@ class Trialapplication extends Component {
user_phone_binded === true ? "" : user_phone_binded === true ? "" :
<div style={{"display": "flex", "justify-content": "center"}}> <div style={{"display": "flex", "justify-content": "center"}}>
<Input className="fl mr5" name="codes" type="text" autoComplete="off" <Input
className={Phonenumberisnotcocodes && Phonenumberisnotcocodes !== ""?borredssz:"fl mr5"}
name="codes" type="text" autoComplete="off"
readonly readonly
onfocus="this.removeAttribute('readonly')" style={{ onfocus="this.removeAttribute('readonly')" style={{
"width": "316px", "width": "316px",
@ -644,7 +649,7 @@ class Trialapplication extends Component {
"height": "38px", "height": "38px",
}} type="primary" }} type="primary"
onClick={() => this.getverificationcode()} onClick={() => this.getverificationcode()}
size={"large"}>验证码</Button> size={"large"}>获取验证码</Button>
: :
<Button className="fl ml5 " style={{ <Button className="fl ml5 " style={{
"background": "#4cacff!important", "background": "#4cacff!important",
@ -661,8 +666,8 @@ class Trialapplication extends Component {
{ {
Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ? Phonenumberisnotcocodes && Phonenumberisnotcocodes != "" ?
<p className="color-red " style={{width: " 100%", height: "20px"}}> <p className="color-red " style={{width: " 100%", height: "20px",textAlign:"left"}}>
<span style={{textAlign:"left"}}>{Phonenumberisnotcocodes}</span> <span >{Phonenumberisnotcocodes}</span>
</p> </p>
: <div style={{height: "20px"}}></div> : <div style={{height: "20px"}}></div>
} }
@ -672,12 +677,13 @@ class Trialapplication extends Component {
}}> }}>
<Input placeholder="请在此输入推荐人信息或申请理由" value={reason} <Input placeholder="请在此输入推荐人信息或申请理由" value={reason}
onChange={this.loginInputonChanges} onChange={this.loginInputonChanges}
className={Phonenumberisnotcoreason && Phonenumberisnotcoreason !== ""?borredss:""}
style={{"height": "38px",}} style={{"height": "38px",}}
name="mynames"></Input> name="mynames"></Input>
{ {
Phonenumberisnotcoreason && Phonenumberisnotcoreason != "" ? Phonenumberisnotcoreason && Phonenumberisnotcoreason !== "" ?
<p className="color-red" style={{width: " 100%", height: "20px"}}> <p className="color-red" style={{width: " 100%", height: "20px",textAlign:"left"}}>
<span style={{textAlign:"left"}}>{Phonenumberisnotcoreason}</span> <span >{Phonenumberisnotcoreason}</span>
</p> </p>
: <div style={{height: "20px"}}></div> : <div style={{height: "20px"}}></div>
} }
@ -689,6 +695,7 @@ class Trialapplication extends Component {
"width": "120px", "width": "120px",
"text-align": "center", "text-align": "center",
"height": "38px", "height": "38px",
marginTop: "10px",
}} }}
size={"large"}>提交申请</Button> size={"large"}>提交申请</Button>

@ -169,8 +169,8 @@ class NewHeader extends Component {
RadioGroupvalue:undefined, RadioGroupvalue:undefined,
submitapplications:false, submitapplications:false,
isRender:false, isRender:false,
isRenders:false, // isRenders:false,
showTrial:false, // showTrial:false,
} }
// console.log("176") // console.log("176")
// console.log(props); // console.log(props);
@ -547,13 +547,13 @@ submittojoinclass=(value)=>{
} }
} }
trialapplications =()=>{ // trialapplications =()=>{
console.log("点击了") // console.log("点击了")
this.setState({ // this.setState({
isRenders: true, // isRenders: true,
showTrial:true, // showTrial:true,
}) // })
} // }
// 关闭 // 关闭
cancelModulationModels = () => { cancelModulationModels = () => {
@ -617,14 +617,15 @@ submittojoinclass=(value)=>{
/> />
{/* :""*/} {/* :""*/}
{/*}*/} {/*}*/}
{
isRenders&&isRenders===true? {/*{*/}
<Trialapplication {/* isRenders&&isRenders===true?*/}
{...this.state} {/* <Trialapplication*/}
Cancel={() => this.cancelModulationModels()} {/* {...this.state}*/}
/> {/* Cancel={() => this.cancelModulationModels()}*/}
:"" {/* />*/}
} {/* :""*/}
{/*}*/}
<Trialapplication {...this.state} Cancel={() => this.cancelModulationModels()} ></Trialapplication> <Trialapplication {...this.state} Cancel={() => this.cancelModulationModels()} ></Trialapplication>
<div className="educontent clearfix"> <div className="educontent clearfix">
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/} {/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
@ -756,7 +757,7 @@ submittojoinclass=(value)=>{
<li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/projects`}>我的项目</Link></li> <li><Link to={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/projects`}>我的项目</Link></li>
<li><a href={`/account/profile`}>账号管理</a></li> <li><a href={`/account/profile`}>账号管理</a></li>
{/*<li><a onClick={()=>this.educoderlogin()} >登入测试接口</a></li>*/} {/*<li><a onClick={()=>this.educoderlogin()} >登入测试接口</a></li>*/}
<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li> {/*<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li>*/}
{/*<li><Link to={`/interest`}>兴趣页</Link></li>*/} {/*<li><Link to={`/interest`}>兴趣页</Link></li>*/}
<li className="bor-top-greyE"> <li className="bor-top-greyE">

Loading…
Cancel
Save