|
|
|
@ -170,6 +170,7 @@ class NewHeader extends Component {
|
|
|
|
|
submitapplications:false,
|
|
|
|
|
isRender:false,
|
|
|
|
|
isRenders:false,
|
|
|
|
|
showTrial:false,
|
|
|
|
|
user:undefined,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -511,14 +512,19 @@ submittojoinclass=(value)=>{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
trialapplications =()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
isRenders: true,
|
|
|
|
|
})
|
|
|
|
|
// trialapplications =()=>{
|
|
|
|
|
// console.log("点击了")
|
|
|
|
|
// this.setState({
|
|
|
|
|
// isRenders: true,
|
|
|
|
|
// showTrial:true,
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// 关闭
|
|
|
|
|
cancelModulationModels = () => {
|
|
|
|
|
this.setState({isRenders: false})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
const isLogin = true; // 这里不会出现未登录的情况,服务端在服务端路由时发现如果是未登录,则跳转到登录页了。
|
|
|
|
|
const {match ,} = this.props;
|
|
|
|
@ -537,8 +543,8 @@ submittojoinclass=(value)=>{
|
|
|
|
|
submitapplications,
|
|
|
|
|
submitapplicationsvalue,
|
|
|
|
|
user,
|
|
|
|
|
isRenders,
|
|
|
|
|
isRender,
|
|
|
|
|
isRenders,
|
|
|
|
|
}=this.state;
|
|
|
|
|
/*
|
|
|
|
|
用户名称 用户头像url
|
|
|
|
@ -575,14 +581,16 @@ submittojoinclass=(value)=>{
|
|
|
|
|
/>
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
<Trialapplication></Trialapplication>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
isRenders&&isRenders===true?
|
|
|
|
|
<Trialapplication
|
|
|
|
|
{...this.state}
|
|
|
|
|
/>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/* isRenders&&isRenders===true?*/}
|
|
|
|
|
{/* <Trialapplication*/}
|
|
|
|
|
{/* {...this.state}*/}
|
|
|
|
|
{/* Cancel={() => this.cancelModulationModels()}*/}
|
|
|
|
|
{/* />*/}
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
|
|
|
|
|
<div className="educontent clearfix">
|
|
|
|
|
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
|
|
|
|
@ -713,7 +721,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
<li><a href={this.props.Headertop===undefined?"":this.props.Headertop.my_project_url}>我的项目</a></li>
|
|
|
|
|
<li><a href={this.props.Headertop===undefined?"":this.props.Headertop.account_manager_url}>账号管理</a></li>
|
|
|
|
|
{/*<li><a onClick={()=>this.educoderlogin()} >登入测试接口</a></li>*/}
|
|
|
|
|
<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li>
|
|
|
|
|
{/*<li><a onClick={()=>this.trialapplications()} >试用申请</a> </li>*/}
|
|
|
|
|
<li className="bor-top-greyE">
|
|
|
|
|
{/*<a href={this.props.Headertop===undefined?"":this.props.Headertop.logout_url}>退出</a>*/}
|
|
|
|
|
{/*<a onClick={()=>this.educoderlogin()}>退出</a>*/}
|
|
|
|
|