diff --git a/public/images/educoder/courtailsbdpicture.jpg b/public/images/educoder/courtailsbdpicture.jpg new file mode 100644 index 000000000..7998b3137 Binary files /dev/null and b/public/images/educoder/courtailsbdpicture.jpg differ diff --git a/public/react/public/css/edu-all.css b/public/react/public/css/edu-all.css index 3b837aea0..7bda233fe 100644 --- a/public/react/public/css/edu-all.css +++ b/public/react/public/css/edu-all.css @@ -524,7 +524,7 @@ li.li-width15{width: 15%;text-align: left} li.li-width7{width: 7%;text-align: left} /*-----------------------------在线课堂动态----------------------------------*/ -.courseHead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/course-detail.jpg");height: 240px; +.courseHead{width: 100%;margin-bottom:40px;background-size: 100% 100%;background-image: url("/images/educoder/courtailsbdpicture.jpg");height: 240px; justify-content: center;align-items: center;display: -webkit-flex; background-size: cover; background-position: center; @@ -3483,4 +3483,4 @@ a.singlepublishtwo{ .markdown-body { text-align: justify; word-break: break-all; -} \ No newline at end of file +} diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 5f3704a33..0394855dc 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -375,19 +375,19 @@ class CoursesBanner extends Component { } addTeacher = (isTeacher) => { this.setState({ isTeacher }, () => { - this.refs.addTeacherModal.setVisible(true) - }) - + this.refs.addTeacherModal.setVisible(true) + }) + } addStudent = () => { - this.refs.addStudentModal.setVisible(true) + this.refs.addStudentModal.setVisible(true) } addTeacherSuccess = (params) => { trigger('addTeacherSuccess', JSON.stringify(params)) this.updatabanner() } addStudentSuccess = (params) => { - trigger('addStudentSuccess', JSON.stringify(params)) + trigger('addStudentSuccess', JSON.stringify(params)) this.updatabanner() } //退出课堂按钮 @@ -728,7 +728,9 @@ class CoursesBanner extends Component { 0?true:false} placement="topLeft" - title={
{coursedata.teacher_applies_count===undefined?"":coursedata.teacher_applies_count>0?您有{coursedata.teacher_applies_count}条新的加入申请this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/teachers?tab=2")}>待审批:""}
}> + title={
{coursedata.teacher_applies_count===undefined?"":coursedata.teacher_applies_count>0?您有{coursedata.teacher_applies_count}条新的加入申请this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/teachers?tab=2")}>待审批:""}
}> this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/teachers")}> 教师 {coursedata.teacher_count}