|
|
|
@ -167,8 +167,30 @@ class DetailTop extends Component{
|
|
|
|
|
<div className="font-28 color-white clearfix">
|
|
|
|
|
<span className="fl lineh-40">
|
|
|
|
|
{detailInfoList.name}
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.tag-orange .tag-name{
|
|
|
|
|
display: block;
|
|
|
|
|
width: auto;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{this.props.courses===undefined?"":
|
|
|
|
|
<span className="tag-orange">
|
|
|
|
|
<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" >
|
|
|
|
@ -202,34 +224,47 @@ class DetailTop extends Component{
|
|
|
|
|
{ detailInfoList.member_count!=0 ? <li><span>学习人数</span><span>{detailInfoList.member_count}</span></li> : ""}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
<div className="fr pr">
|
|
|
|
|
{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>:""}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
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>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
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>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
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>:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
{/*<div className="fr pr">*/}
|
|
|
|
|
{/*{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>:""}*/}
|
|
|
|
|
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/*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>:""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/*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>:""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/*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>:""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="fr pr">
|
|
|
|
|
|
|
|
|
|
<a className={"fl font-18 color-white mt5 kaike mr20"}
|
|
|
|
|
|
|
|
|
|
>开课</a>
|
|
|
|
|
<a className={"fl font-18 color-white mt5 kaike"}
|
|
|
|
|
|
|
|
|
|
>学习统计</a>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|