|
|
|
@ -649,10 +649,22 @@ submittojoinclass=(value)=>{
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
/>:""}
|
|
|
|
|
<a href="/" className={" fl"}>
|
|
|
|
|
<a href="/" className={"fl mr60 ml25"}>
|
|
|
|
|
<img alt="高校智能化教学与实训平台" className="logoimg" src={getImageUrl("images/educoder/headNavLogo.png?1526520218")}></img>
|
|
|
|
|
</a>
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.educontents{
|
|
|
|
|
margin: 0px auto;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="educontents fl">
|
|
|
|
|
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
|
|
|
|
|
|
|
|
|
|
<div className="head-nav pr">
|
|
|
|
@ -711,65 +723,67 @@ submittojoinclass=(value)=>{
|
|
|
|
|
><a href={this.props.Headertop===undefined?"":this.props.Headertop.auth}>工程认证</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.posi-searchs{
|
|
|
|
|
opacity: 1;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -2px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
right: -241px;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -2px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
z-index:10000;
|
|
|
|
|
right: 185px;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="posi-searchs" >
|
|
|
|
|
<div className="search-all clearfix">
|
|
|
|
|
{/*<!--<a href="javascript:void(0)" className="search-clear fl" onclick="closeSearch();">×</a>-->*/}
|
|
|
|
|
<div className="fl pr search-clear edu-menu-panel" style={{display: 'none'}}>
|
|
|
|
|
<input type="hidden" id="search_type" value="1"></input>
|
|
|
|
|
<span className="searchkey">实训</span>
|
|
|
|
|
<i className="fa fa-angle-down ml5 font-16"></i>
|
|
|
|
|
<ul id="searchkey" className="edu-menu-list edu-txt-center" style={{minWidth: '80px',right: '-10px',top: '50px'}}>
|
|
|
|
|
<li><a>实训</a></li>
|
|
|
|
|
<li><a>课堂</a></li>
|
|
|
|
|
<li><a>用户</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
{/*<input type="text" className="search-input fl" id="search-input" */}
|
|
|
|
|
{/*onKeyDown={this.onKeywordSearchKeyDown} name="search_keyword" placeholder="搜索实训项目"/>*/}
|
|
|
|
|
{/*搜索框*/}
|
|
|
|
|
{showSearchOpentype===true?<div
|
|
|
|
|
className={"HeaderSearch"}
|
|
|
|
|
onBlur={(e)=>this.hideshowSearchOpen(e)} onMouseLeave={()=>this.setevaluatinghides()}>
|
|
|
|
|
<Search
|
|
|
|
|
id={"HeaderSearchs"}
|
|
|
|
|
placeholder="实践课程/翻转课堂/开发社区/交流问答"
|
|
|
|
|
onInput={()=>this.onKeywordSearchKeyDowns()}
|
|
|
|
|
onSearch={(value) => this.onKeywordSearchKeyDown(value)}
|
|
|
|
|
// onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
|
|
style={{ width: 300,height:32}}
|
|
|
|
|
autoFocus={true}
|
|
|
|
|
/>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
{/*<a className="search-icon fl" id="header_keyword_search" onClick={this.onKeywordSearch}>*/}
|
|
|
|
|
{/*/!*<i className="fa fa-search font-16 mt23 color-grey-6"></i>*!/*/}
|
|
|
|
|
{/*<i className="iconfont icon-sousuo color-blue"></i>*/}
|
|
|
|
|
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/* TODO 需要服务端接口提供最近搜索
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="posi-searchs" >
|
|
|
|
|
<div className="search-all clearfix">
|
|
|
|
|
{/*<!--<a href="javascript:void(0)" className="search-clear fl" onclick="closeSearch();">×</a>-->*/}
|
|
|
|
|
<div className="fl pr search-clear edu-menu-panel" style={{display: 'none'}}>
|
|
|
|
|
<input type="hidden" id="search_type" value="1"></input>
|
|
|
|
|
<span className="searchkey">实训</span>
|
|
|
|
|
<i className="fa fa-angle-down ml5 font-16"></i>
|
|
|
|
|
<ul id="searchkey" className="edu-menu-list edu-txt-center" style={{minWidth: '80px',right: '-10px',top: '50px'}}>
|
|
|
|
|
<li><a>实训</a></li>
|
|
|
|
|
<li><a>课堂</a></li>
|
|
|
|
|
<li><a>用户</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
{/*<input type="text" className="search-input fl" id="search-input" */}
|
|
|
|
|
{/*onKeyDown={this.onKeywordSearchKeyDown} name="search_keyword" placeholder="搜索实训项目"/>*/}
|
|
|
|
|
{/*搜索框*/}
|
|
|
|
|
{showSearchOpentype===true?<div
|
|
|
|
|
className={"HeaderSearch"}
|
|
|
|
|
onBlur={(e)=>this.hideshowSearchOpen(e)} onMouseLeave={()=>this.setevaluatinghides()}>
|
|
|
|
|
<Search
|
|
|
|
|
id={"HeaderSearchs"}
|
|
|
|
|
placeholder="实践课程/翻转课堂/开发社区/交流问答"
|
|
|
|
|
onInput={()=>this.onKeywordSearchKeyDowns()}
|
|
|
|
|
onSearch={(value) => this.onKeywordSearchKeyDown(value)}
|
|
|
|
|
// onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
|
|
style={{ width: 300,height:32}}
|
|
|
|
|
autoFocus={true}
|
|
|
|
|
/>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
{/*<a className="search-icon fl" id="header_keyword_search" onClick={this.onKeywordSearch}>*/}
|
|
|
|
|
{/*/!*<i className="fa fa-search font-16 mt23 color-grey-6"></i>*!/*/}
|
|
|
|
|
{/*<i className="iconfont icon-sousuo color-blue"></i>*/}
|
|
|
|
|
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/* TODO 需要服务端接口提供最近搜索
|
|
|
|
|
<div className="search-content none" style="width: 86%;left: 0px;">
|
|
|
|
|
<div className="search-title">最近搜索</div>
|
|
|
|
|
<div><a href="javascript:void(0)" className="search_history">绿盟</a></div>
|
|
|
|
|
<div><a href="javascript:void(0)" className="search_history">qwe</a></div>
|
|
|
|
|
</div>*/}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*<span className="font-15 fr mt17">
|
|
|
|
|
<%= link_to '登录', signin_path, :className => "mr5" %>
|
|
|
|
@ -777,16 +791,16 @@ submittojoinclass=(value)=>{
|
|
|
|
|
<%= link_to '注册', user_join_path, :className => "ml5" %>
|
|
|
|
|
</span>*/}
|
|
|
|
|
{ user===undefined?
|
|
|
|
|
<span className="font-15 fr mt17 ml20">
|
|
|
|
|
<span className="font-15 fr mt17 ml10 mr25">
|
|
|
|
|
<a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a>
|
|
|
|
|
<em className="vertical-line"></em>
|
|
|
|
|
<a href={"/register"} className="mr5 color-white">注册</a>
|
|
|
|
|
</span> :user.login===""?<span className="font-15 fr mt17 ml20">
|
|
|
|
|
</span> :user.login===""?<span className="font-15 fr mt17 ml20 mr25">
|
|
|
|
|
<a onClick={()=>this.educoderlogin()} className="mr5 color-white">登录</a>
|
|
|
|
|
<em className="vertical-line"></em>
|
|
|
|
|
<a href={"/register"} className="mr5 color-white">注册</a>
|
|
|
|
|
</span>:
|
|
|
|
|
<div className="fr edu-menu-panel" style={{height:'60px'}}>
|
|
|
|
|
<div className="fr edu-menu-panel mr25" style={{height:'60px'}}>
|
|
|
|
|
<a href={`/users/${this.props.current_user===undefined?"":this.props.current_user.login}/courses`} className="fl ml15">
|
|
|
|
|
<img alt="头像" className="radius mt13" height="34" id="nh_user_logo" name="avatar_image"
|
|
|
|
|
src={getImageUrl(`images/`+user.image_url)} width="34">
|
|
|
|
@ -814,7 +828,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{/*href="https://www.educoder.net/login"*/}
|
|
|
|
|
<div className="fr head-right ">
|
|
|
|
|
<div className="fr head-right">
|
|
|
|
|
{/*{ loadHeader()}*/}
|
|
|
|
|
{showSearchOpentype===true?"":<a id="search-open" className="fl mr30 headIcon" onClick={(e)=>this.showSearchOpen(e)}>
|
|
|
|
|
{/*"/images/educoder/icon/search.svg"
|
|
|
|
@ -852,7 +866,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
|
|
|
|
|
{/* /courses/join_course_multi_role */}
|
|
|
|
|
{/*<li>*/}
|
|
|
|
|
{/* <a onClick={this.tojoinitem}>加入项目</a>*/}
|
|
|
|
|
<a onClick={this.tojoinitem}>加入项目</a>
|
|
|
|
|
{/*</li>*/}
|
|
|
|
|
<Modal
|
|
|
|
|
keyboard={false}
|
|
|
|
@ -949,7 +963,7 @@ submittojoinclass=(value)=>{
|
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
);
|
|
|
|
|