|
|
|
@ -101,7 +101,6 @@ class InfosCourse extends Component{
|
|
|
|
|
totalCount,
|
|
|
|
|
isSpin
|
|
|
|
|
} = 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==="学生")
|
|
|
|
@ -127,11 +126,11 @@ class InfosCourse extends Component{
|
|
|
|
|
</p>
|
|
|
|
|
<div className="square-list clearfix">
|
|
|
|
|
{
|
|
|
|
|
!isStudent && page == 1 && !category && is_current &&
|
|
|
|
|
this.props.current_user&&this.props.current_user.user_identity==="学生"?"":<Create href={"/courses/new"} name={"新建课堂"} index="1"></Create>
|
|
|
|
|
page == 1 && is_current &&
|
|
|
|
|
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>
|
|
|
|
|
(!data || data.courses.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) && <NoneData></NoneData>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
data && data.courses && data.courses.map((item,key)=>{
|
|
|
|
|