|
|
|
@ -214,12 +214,12 @@ class InfosShixun extends Component{
|
|
|
|
|
</style>
|
|
|
|
|
<div className="white-panel edu-back-white pt20 pb20 clearfix ">
|
|
|
|
|
<li className={category ? " font-16 whitepanelyslli" : "active font-16 whitepanelyslli"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeCategory()} className="font-16 w32">全部</a></li>
|
|
|
|
|
onClick={() => this.changeCategory()} className="font-16 w32">全部</a></li>
|
|
|
|
|
<li className={category == "manage" ? "active font-16 whitepanelysllis" : "font-16 whitepanelysllis"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeCategory("manage")}
|
|
|
|
|
onClick={() => this.changeCategory("manage")}
|
|
|
|
|
className={is_current ? "font-16 w66" : "font-16 w80"}>{is_current ? "我" : "TA"}管理的</a></li>
|
|
|
|
|
<li className={category == "study" ? "active font-16 whitepanelysllis" : "font-16 whitepanelysllis"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeCategory("study")}
|
|
|
|
|
onClick={() => this.changeCategory("study")}
|
|
|
|
|
className={is_current ? "font-16 w66" : "font-16 w80"}>{is_current ? "我" : "TA"}学习的</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
<style>
|
|
|
|
@ -242,29 +242,30 @@ class InfosShixun extends Component{
|
|
|
|
|
{
|
|
|
|
|
category && category == "manage" && is_current &&
|
|
|
|
|
<div className="edu-back-white padding10-30 clearfix secondNavs bor-top-greyE">
|
|
|
|
|
<li className={status ? "whitepanelyslliss" : "active whitepanelyslliss"}><a href="javascript:void(0)"
|
|
|
|
|
onClick={() => this.changeStatus()}
|
|
|
|
|
className="w32">全部</a></li>
|
|
|
|
|
<li className={status ? "whitepanelyslliss" : "active whitepanelyslliss"}>
|
|
|
|
|
<a onClick={() => this.changeStatus()} className="w32">全部</a></li>
|
|
|
|
|
<li className={status == "editing" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("editing")} className="w60">编辑中</a></li>
|
|
|
|
|
<li className={status == "applying" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("applying")} className="w60">待审核</a></li>
|
|
|
|
|
onClick={() => this.changeStatus("editing")} className="w60">编辑中</a></li>
|
|
|
|
|
<li className={status == "published" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("published")} className="w60">已发布</a></li>
|
|
|
|
|
onClick={() => this.changeStatus("published")} className="w60">已发布</a></li>
|
|
|
|
|
<li className={status == "applying" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
onClick={() => this.changeStatus("applying")} className="w60">待审核</a></li>
|
|
|
|
|
<li className={status == "publiced" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
onClick={() => this.changeStatus("publiced")} className="w60">已公开</a></li>
|
|
|
|
|
<li className={status == "closed" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("closed")} className="w60">已关闭</a></li>
|
|
|
|
|
onClick={() => this.changeStatus("closed")} className="w60">已关闭</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
category && category == "study" && is_current &&
|
|
|
|
|
<div className="edu-back-white padding10-30 clearfix secondNavs bor-top-greyE">
|
|
|
|
|
<li className={status ? "whitepanelyslliss" : "active whitepanelyslliss"}><a href="javascript:void(0)"
|
|
|
|
|
<li className={status ? "whitepanelyslliss" : "active whitepanelyslliss"}><a
|
|
|
|
|
onClick={() => this.changeStatus()}
|
|
|
|
|
className="w32">全部</a></li>
|
|
|
|
|
<li className={status == "processing" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("processing")} className="w60">未通关</a></li>
|
|
|
|
|
onClick={() => this.changeStatus("processing")} className="w60">未通关</a></li>
|
|
|
|
|
<li className={status == "passed" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("passed")} className="w60">已通关</a></li>
|
|
|
|
|
onClick={() => this.changeStatus("passed")} className="w60">已通关</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div className=" clearfix font-12 " style={{
|
|
|
|
@ -387,12 +388,12 @@ class InfosShixun extends Component{
|
|
|
|
|
:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" className="square-img">
|
|
|
|
|
<a className="square-img">
|
|
|
|
|
<img src={setImagesUrl(`${item.image_url}`)}/>
|
|
|
|
|
</a>
|
|
|
|
|
<div className="square-main">
|
|
|
|
|
<p className="task-hide">
|
|
|
|
|
<a href="javascript:void(0)" className="justify color-grey-name">{item.name}</a>
|
|
|
|
|
<a className="justify color-grey-name">{item.name}</a>
|
|
|
|
|
</p>
|
|
|
|
|
<div className="user-bar mt10">
|
|
|
|
|
<p style={{'width': `${parseFloat(parseInt(item.finished_challenges_count)/parseInt(item.challenges_count)).toFixed(2)*100}%`}}></p>
|
|
|
|
|