|
|
|
@ -290,61 +290,61 @@ class DetailTop extends Component{
|
|
|
|
|
detailInfoList &&
|
|
|
|
|
<div className={this.props.courses===undefined||this.props.courses.length===0?"subhead_content":"subhead_content pt100"}>
|
|
|
|
|
<div className="font-28 color-white clearfix">
|
|
|
|
|
<Tooltip placement="bottom" title={detailInfoList.name.length>27?detailInfoList.name:""}>
|
|
|
|
|
<span className="fl lineh-40 bannername780">
|
|
|
|
|
{detailInfoList.name}
|
|
|
|
|
</span>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
{/*<Tooltip placement="bottom" title={detailInfoList.name.length>27?detailInfoList.name:""}>*/}
|
|
|
|
|
|
|
|
|
|
{/*</Tooltip>*/}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.pathoranges .tag-name{
|
|
|
|
|
display: block;
|
|
|
|
|
width: auto;
|
|
|
|
|
.pathoranges{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 64px;
|
|
|
|
|
background-color: #FF6800;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
padding: 0px 4px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
float: left;
|
|
|
|
|
height: 28px;
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: 5px;
|
|
|
|
|
left: 15px;
|
|
|
|
|
}
|
|
|
|
|
.pathoranges div{
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -6px;
|
|
|
|
|
}
|
|
|
|
|
.xxtjbtn{
|
|
|
|
|
|
|
|
|
|
width: 103px;
|
|
|
|
|
height: 38px;
|
|
|
|
|
background: rgba(255,255,255,1);
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 1px solid rgba(255,255,255,1);
|
|
|
|
|
color: #970084 !important;
|
|
|
|
|
font-size: 15px !important;
|
|
|
|
|
line-height: 37px !important;
|
|
|
|
|
}
|
|
|
|
|
.kkbths{
|
|
|
|
|
width:103px;
|
|
|
|
|
height:38px;
|
|
|
|
|
border-radius:4px;
|
|
|
|
|
border:1px solid rgba(255,255,255,1);
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.excellent === false ? "" :
|
|
|
|
|
<span className="pathoranges">
|
|
|
|
|
<span className="tag-name mt6 ml10">开放课程</span>
|
|
|
|
|
</span>}
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?
|
|
|
|
|
<Tooltip placement="bottom" title={"编辑"}>
|
|
|
|
|
<Link to={"/paths/"+this.props.match.params.pathId+"/edit"} className="ml10 ring-green fl mt10" >
|
|
|
|
|
<img src={getImageUrl("images/educoder/icon/edit.svg")} className="fl mt3 ml2" />
|
|
|
|
|
</Link>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?this.props.courses===undefined?
|
|
|
|
|
<Link to={"/paths/"+this.props.match.params.pathId+"/statistics"} className="user_default_btn edu-greenback-btn fr font-18"
|
|
|
|
|
>
|
|
|
|
|
学习统计
|
|
|
|
|
</Link>:"":""
|
|
|
|
|
}
|
|
|
|
|
<span className="fl lineh-40">
|
|
|
|
|
{detailInfoList.name}
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.excellent === false ? "" :
|
|
|
|
|
<span className="pathoranges">
|
|
|
|
|
<div>开放课程</div>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
{ detailInfoList.allow_send === true?this.props.courses===undefined?
|
|
|
|
|
<SendPanel {...this.props} {...this.state}></SendPanel>:"":""
|
|
|
|
|
}
|
|
|
|
|
<div className="fr pr">
|
|
|
|
|
{this.props.courses===undefined?"":detailInfoList.is_creator===true?<a className={"fl font-18 color-white mt5 kaike mr20"} onClick={()=>this.OpenCoursefun()}>开课</a>:""}
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?this.props.courses===undefined?"":<Link to={"/paths/"+this.props.match.params.pathId+"/statistics"} className="fl font-18 color-white mt5 kaike">
|
|
|
|
|
学习统计
|
|
|
|
|
</Link>:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="clearfix mt20">
|
|
|
|
|
{
|
|
|
|
@ -359,27 +359,49 @@ class DetailTop extends Component{
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
<div className="fr pr">
|
|
|
|
|
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?
|
|
|
|
|
<Link to={"/paths/"+this.props.match.params.pathId+"/edit"} className="fl font-18 color-white kaike mr20 kkbths" >
|
|
|
|
|
编辑
|
|
|
|
|
</Link>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_delete===true?<a
|
|
|
|
|
className={detailInfoList.publish_status===-1?"fl font-18 color-white mt5 mr20":"fl font-18 color-white mt5"}
|
|
|
|
|
style={{opacity: '0.6'}} onClick={this.allow_deletepath}
|
|
|
|
|
>删除课程</a>:""}
|
|
|
|
|
className={"fl font-18 color-white kaike mr20 kkbths"}
|
|
|
|
|
onClick={this.allow_deletepath}
|
|
|
|
|
>删除</a>:""}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
detailInfoList.publish_status===0&&detailInfoList.allow_add_member===true?
|
|
|
|
|
<a className="user_default_btn user_bluebg_btn font-18 fl ml40 userbluebgfont" onClick={this.applyissuePath}>申请发布</a>:""
|
|
|
|
|
<a className="fl font-18 color-white kaike mr20 kkbths" onClick={this.applyissuePath}>申请发布</a>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
detailInfoList.publish_status===1 && detailInfoList.allow_statistics===true?
|
|
|
|
|
<a className="user_default_btn user_grey_btn font-18 fl pointer ml40" onClick={this.cancelissuePath}>撤销申请</a>:""
|
|
|
|
|
<a className="fl font-18 color-white kaike mr20 kkbths" onClick={this.cancelissuePath}>撤销申请</a>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
detailInfoList.publish_status===2 && detailInfoList.allow_statistics===true?
|
|
|
|
|
<a className="user_default_btn user_grey_btn font-18 fl pointer ml40" onClick={this.reovkissuePath}>撤销发布</a>:""
|
|
|
|
|
<a className="fl font-18 color-white kaike mr20 kkbths" onClick={this.reovkissuePath}>撤销发布</a>:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.courses===undefined?"":detailInfoList.is_creator===true?<a className={"fl font-18 color-white kaike mr20 kkbths"} onClick={()=>this.OpenCoursefun()}>开课</a>:""}
|
|
|
|
|
|
|
|
|
|
{ detailInfoList.allow_send === true?this.props.courses===undefined?
|
|
|
|
|
<SendPanel {...this.props} {...this.state}></SendPanel>:"":""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{detailInfoList===undefined?"":detailInfoList.allow_statistics===true?
|
|
|
|
|
<Link to={"/paths/"+this.props.match.params.pathId+"/statistics"} className="user_default_btn fr font-18 xxtjbtn">
|
|
|
|
|
学习统计
|
|
|
|
|
</Link>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|