|
|
|
@ -103,6 +103,8 @@ class InfosCourse extends Component{
|
|
|
|
|
} = this.state;
|
|
|
|
|
let isStudent = this.props.isStudent();
|
|
|
|
|
let is_current=this.props.is_current;
|
|
|
|
|
|
|
|
|
|
console.log(this.props.current_user&&this.props.current_user.user_identity==="学生")
|
|
|
|
|
return(
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
<Spin size="large" spinning={isSpin}>
|
|
|
|
@ -126,7 +128,7 @@ class InfosCourse extends Component{
|
|
|
|
|
<div className="square-list clearfix">
|
|
|
|
|
{
|
|
|
|
|
!isStudent && page == 1 && !category && is_current &&
|
|
|
|
|
<Create href={"/courses/new"} name={"新建课堂"} index="1"></Create>
|
|
|
|
|
this.props.current_user&&this.props.current_user.user_identity==="学生"?"":<Create href={"/courses/new"} name={"新建课堂"} index="1"></Create>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
(!data || data.courses.length==0) && (isStudent || category) && <NoneData></NoneData>
|
|
|
|
|