|
|
|
@ -170,6 +170,7 @@ class NewHeader extends Component {
|
|
|
|
|
submitapplications:false,
|
|
|
|
|
isRender:false,
|
|
|
|
|
isRenders:false,
|
|
|
|
|
user_phone_binded:false,
|
|
|
|
|
showTrial:false,
|
|
|
|
|
}
|
|
|
|
|
console.log("176")
|
|
|
|
@ -207,7 +208,29 @@ class NewHeader extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
// console.log("211");
|
|
|
|
|
// console.log(prevProps);
|
|
|
|
|
// console.log(prevProps.user);
|
|
|
|
|
// console.log(this.props.user);
|
|
|
|
|
if(this.props.user !== undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
user_phone_binded :this.props.user.user_phone_binded,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// if(prevProps.user!=this.props.user){
|
|
|
|
|
// console.log("216")
|
|
|
|
|
// console.log(prevProps.user);
|
|
|
|
|
// // if(this.props.current_user!==undefined){
|
|
|
|
|
// // this.setState({
|
|
|
|
|
// // user_phone_binded :this.props.current_user.user_phone_binded,
|
|
|
|
|
// // })
|
|
|
|
|
// // }
|
|
|
|
|
// }else {
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
componentWillReceiveProps(newProps, oldProps) {
|
|
|
|
|
this.setState({
|
|
|
|
|
user:newProps.user
|
|
|
|
@ -567,6 +590,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
user,
|
|
|
|
|
isRender,
|
|
|
|
|
isRenders,
|
|
|
|
|
user_phone_binded,
|
|
|
|
|
}=this.state;
|
|
|
|
|
/*
|
|
|
|
|
用户名称 用户头像url
|
|
|
|
@ -588,7 +612,6 @@ submittojoinclass=(value)=>{
|
|
|
|
|
}else {
|
|
|
|
|
activeIndex = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// join_course_url: "https://www.educoder.net/courses/join_course_multi_role"
|
|
|
|
|
// join_project_url: "https://www.educoder.net/applied_project/applied_project_info"
|
|
|
|
|
// rolearr:["",""],
|
|
|
|
@ -612,7 +635,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
{/* />*/}
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
|
|
|
|
|
<Trialapplication {...this.state} user_phone_binded={user_phone_binded} ></Trialapplication>
|
|
|
|
|
<div className="educontent clearfix">
|
|
|
|
|
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
|
|
|
|
|
<a href="/">
|
|
|
|
|