dev_oauth
杨树林 6 years ago
parent ed78456913
commit da0b6771bb

@ -826,7 +826,9 @@ class CoursesIndex extends Component{
}
></Route>
{/*新建金品课堂*/}
<Route path="/courses/newgold"
{/*coursesId 课堂id */}
{/*id 是否是私有或者公有*/}
<Route path="/courses/:coursesId/newgold/:id"
render={
(props) => (<WrappedCoursesNewAppGoldclass {...this.props} {...props} {...this.state} />)
}
@ -838,7 +840,7 @@ class CoursesIndex extends Component{
}
></Route>
{/*修改金品课堂*/}
<Route path="/courses/:coursesId/newgold/settings"
<Route path="/courses/:coursesId/newgold/settings/:id"
render={
(props) => (<WrappedCoursesNewAppGoldclass {...this.props} {...props} {...this.state} />)
}

@ -353,7 +353,19 @@ class CoursesBanner extends Component {
window.location.href = "/courses/" + this.props.match.params.coursesId + "/settings";
};
postsettingstwo=()=>{
window.location.href = " /courses/" + this.props.match.params.coursesId + "/newgold/settings";
var id =1;
try {
if(this.state.coursedata.is_public){
id=1;
}else {
id=0;
}
}catch (e) {
}
window.location.href = " /courses/" + this.props.match.params.coursesId + "/newgold/settings"+id;
};

Loading…
Cancel
Save