Commit 64c4f679 by chenshu

feat:初始化

parent c5711a3d
......@@ -653,7 +653,7 @@ class AddOfflineCourse extends React.Component {
}
whetherVisitorsJoinChange = ()=>{
if(this.props.data.whetherVisitorsJoin==="NO"){
if(this.state.whetherVisitorsJoin === "NO"){
this.setState({ whetherVisitorsJoin: 'YES' });
}else{
this.setState({ whetherVisitorsJoin: 'NO' });
......@@ -842,7 +842,10 @@ class AddOfflineCourse extends React.Component {
<span className="label">观看设置:</span>
<div className="content">
<div>
<Switch checked={whetherVisitorsJoin === "YES"? true : false} onChange={this.whetherVisitorsJoinChange}/>
<Switch
checked={whetherVisitorsJoin === "YES" ? true : false}
onChange={this.whetherVisitorsJoinChange}
/>
</div>
<div>
<div className="desc">
......
......@@ -67,7 +67,8 @@ class OfflineCourseList extends React.Component {
width:321,
fixed: 'left',
render: (val, record) => {
const { coverUrl, courseName, offlinePlace, calendarTime, startTime, endTime } = record;
const { courseMediaVOS, courseName, offlinePlace, calendarTime, startTime, endTime } = record;
const coverUrl = (_.find(courseMediaVOS, data => data.contentType === 'COVER') || {}).mediaUrl;
return (
<div className="record__item">
<img className="course-cover" src={coverUrl || defaultCoverUrl} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment