|
|
|
@ -71,8 +71,8 @@ class InfosCourse extends Component{
|
|
|
|
|
page:1,
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|
let{status}=this.state;
|
|
|
|
|
this.getCourses(cate,status,1);
|
|
|
|
|
let {status, sort_by, sort_direction} = this.state;
|
|
|
|
|
this.getCourses(cate, status, 1, sort_by, sort_direction);
|
|
|
|
|
}
|
|
|
|
|
//切换状态
|
|
|
|
|
changeStatus=(status)=>{
|
|
|
|
@ -81,8 +81,8 @@ class InfosCourse extends Component{
|
|
|
|
|
page:1,
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|
let{category}=this.state;
|
|
|
|
|
this.getCourses(category,status,1);
|
|
|
|
|
let {category, sort_by, sort_direction} = this.state;
|
|
|
|
|
this.getCourses(category, status, 1, sort_by, sort_direction);
|
|
|
|
|
}
|
|
|
|
|
//切换页数
|
|
|
|
|
changePage=(page)=>{
|
|
|
|
@ -90,8 +90,8 @@ class InfosCourse extends Component{
|
|
|
|
|
page,
|
|
|
|
|
isSpin:true
|
|
|
|
|
})
|
|
|
|
|
let{category,status}=this.state;
|
|
|
|
|
this.getCourses(category,status,page);
|
|
|
|
|
let {category, status, sort_by, sort_direction} = this.state;
|
|
|
|
|
this.getCourses(category, status, page, sort_by, sort_direction);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 进入课堂
|
|
|
|
@ -147,32 +147,87 @@ class InfosCourse extends Component{
|
|
|
|
|
|
|
|
|
|
</Menu>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
console.log("InfosCourse");
|
|
|
|
|
console.log(status);
|
|
|
|
|
return(
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.whitepanelyslli {
|
|
|
|
|
width: 32px !important;
|
|
|
|
|
height: 48px !important;
|
|
|
|
|
line-height: 46px !important;
|
|
|
|
|
}
|
|
|
|
|
.whitepanelyslliss {
|
|
|
|
|
width: 32px !important;
|
|
|
|
|
height: 48px !important;
|
|
|
|
|
line-height: 46px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.whitepanelysllis {
|
|
|
|
|
width: 66px !important;
|
|
|
|
|
height: 48px !important;
|
|
|
|
|
line-height: 46px !important;
|
|
|
|
|
margin-left: 40px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.whitepanelysllisyt {
|
|
|
|
|
width: 60px !important;
|
|
|
|
|
height: 48px !important;
|
|
|
|
|
line-height: 46px !important;
|
|
|
|
|
margin-left: 40px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.white-panel li.active {
|
|
|
|
|
border-radius: 24px;
|
|
|
|
|
border: 0px solid #4CACFF;
|
|
|
|
|
color: #4CACFF;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="white-panel edu-back-white pt20 pb20 clearfix ">
|
|
|
|
|
<li className={category ? "" : "active"}><a href="javascript:void(0)" onClick={()=>this.changeCategory()}>全部</a></li>
|
|
|
|
|
<li className={category=="manage" ? "active" : ""}><a href="javascript:void(0)" onClick={()=>this.changeCategory("manage")}>{is_current ? "我":"TA"}管理的</a></li>
|
|
|
|
|
<li className={category=="study" ? "active" : ""}><a href="javascript:void(0)" onClick={()=>this.changeCategory("study")}>{is_current ? "我":"TA"}学习的</a></li>
|
|
|
|
|
<li className={category ? " font-16 whitepanelyslli" : "active font-16 whitepanelyslli"}><a
|
|
|
|
|
href="javascript:void(0)" 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")}
|
|
|
|
|
className="font-16 w66">{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")}
|
|
|
|
|
className="font-16 w66">{is_current ? "我" : "TA"}学习的</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
` .secondNavs li {
|
|
|
|
|
color: #676767;
|
|
|
|
|
/* margin: 0px 20px; */
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
.secondNavs li a:hover{
|
|
|
|
|
color: #4CACFF
|
|
|
|
|
}
|
|
|
|
|
.secondNavs li.active a{
|
|
|
|
|
color: #4CACFF
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{
|
|
|
|
|
is_current &&
|
|
|
|
|
<div className="edu-back-white padding20-30 clearfix secondNav bor-top-greyE">
|
|
|
|
|
<li className={status ? "" : "active"}><a href="javascript:void(0)" onClick={()=>this.changeStatus()}>全部</a></li>
|
|
|
|
|
<li className={status=="processing" ? "active" : ""}><a href="javascript:void(0)" onClick={()=>this.changeStatus("processing")}>正在进行</a></li>
|
|
|
|
|
<li className={status=="end" ? "active" : ""}><a href="javascript:void(0)" onClick={()=>this.changeStatus("end")}>已结束</a></li>
|
|
|
|
|
<div className="edu-back-white padding20-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 == "processing" ? "active whitepanelysllis" : "whitepanelysllis"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("processing")} className="w66">正在进行</a></li>
|
|
|
|
|
<li className={status == "end" ? "active whitepanelysllisyt" : "whitepanelysllisyt"}><a
|
|
|
|
|
href="javascript:void(0)" onClick={() => this.changeStatus("end")} className="w66">已结束</a></li>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<p className="pl25 pr25 clearfix font-12 " style={{
|
|
|
|
|