|
|
@ -170,7 +170,6 @@ class NewHeader extends Component {
|
|
|
|
submitapplications:false,
|
|
|
|
submitapplications:false,
|
|
|
|
isRender:false,
|
|
|
|
isRender:false,
|
|
|
|
isRenders:false,
|
|
|
|
isRenders:false,
|
|
|
|
user_phone_binded:false,
|
|
|
|
|
|
|
|
showTrial:false,
|
|
|
|
showTrial:false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// console.log("176")
|
|
|
|
// console.log("176")
|
|
|
@ -209,18 +208,18 @@ class NewHeader extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
if(prevProps.user!=this.props.user){
|
|
|
|
// if(prevProps.user!=this.props.user){
|
|
|
|
// console.log("216")
|
|
|
|
// // console.log("216")
|
|
|
|
// console.log(prevProps.user);
|
|
|
|
// // console.log(prevProps.user);
|
|
|
|
// console.log(this.props.user);
|
|
|
|
// // console.log(this.props.user);
|
|
|
|
if(this.props.user !== undefined){
|
|
|
|
// if(this.props.user !== undefined){
|
|
|
|
this.setState({
|
|
|
|
// this.setState({
|
|
|
|
user_phone_binded :this.props.user.user_phone_binded,
|
|
|
|
// user_phone_binded :this.props.user.user_phone_binded,
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentWillReceiveProps(newProps, oldProps) {
|
|
|
|
componentWillReceiveProps(newProps, oldProps) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -581,7 +580,6 @@ submittojoinclass=(value)=>{
|
|
|
|
user,
|
|
|
|
user,
|
|
|
|
isRender,
|
|
|
|
isRender,
|
|
|
|
isRenders,
|
|
|
|
isRenders,
|
|
|
|
user_phone_binded,
|
|
|
|
|
|
|
|
}=this.state;
|
|
|
|
}=this.state;
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
用户名称 用户头像url
|
|
|
|
用户名称 用户头像url
|
|
|
@ -627,7 +625,7 @@ submittojoinclass=(value)=>{
|
|
|
|
{/* />*/}
|
|
|
|
{/* />*/}
|
|
|
|
{/* :""*/}
|
|
|
|
{/* :""*/}
|
|
|
|
{/*}*/}
|
|
|
|
{/*}*/}
|
|
|
|
<Trialapplication {...this.state} user_phone_binded={user_phone_binded} ></Trialapplication>
|
|
|
|
<Trialapplication {...this.state} ></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 %>*/}
|
|
|
|
<a href="/">
|
|
|
|
<a href="/">
|
|
|
|