diff --git a/public/react/src/modules/courses/ListPageIndex.js b/public/react/src/modules/courses/ListPageIndex.js index a487cddcb..0a0ff0daf 100644 --- a/public/react/src/modules/courses/ListPageIndex.js +++ b/public/react/src/modules/courses/ListPageIndex.js @@ -91,6 +91,7 @@ class ListPageIndex extends Component{ this.state={ yslGuideone:undefined, yslElearning:false, + isexcellent:false } } comyslElearning(bool){ @@ -163,6 +164,11 @@ class ListPageIndex extends Component{ }); } } + ispostexcellenttype=(excellent)=>{ + this.setState({ + isexcellent:excellent + }) + } render() { let {yslGuideone} =this.state; // console.log("98"); @@ -175,7 +181,7 @@ class ListPageIndex extends Component{
{/*头部banner*/} - + this.ispostexcellenttype(excellent)}> {/*下面是指引哦*/} {/*{yslGuideone!==undefined?*/} {/*(*/} diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 97a00068a..503c73a10 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -136,6 +136,7 @@ class CoursesBanner extends Component { coursedata: data, excellent:data.excellent, }) + this.props.ispostexcellenttype(data.excellent) }else{ this.onloadupdatabanner() } diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index 8a223ce91..646573163 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -697,7 +697,27 @@ class studentsList extends Component{ const isStudentPage = pageType == TYPE_STUDENTS this.isStudentPage = isStudentPage const isGroupChildPage = pageType == TYPE_COURSE_GOURP_CHILD - + let studentlist=buildColumns(this,isParent); + if(this.props.isexcellent===true){ + studentlist.some((item,key)=> { + if (item.title === "手机号") { + studentlist.splice(key, 1) + return true + } + } + ) + } + + if(this.props.isexcellent===true){ + studentlist.some((item,key)=> { + if (item.title === "邮箱") { + studentlist.splice(key, 1) + return true + } + } + ) + } + return(
{students && !!students.length && -
+
}