|
|
@ -238,8 +238,6 @@ class CompetitionCommon extends Component{
|
|
|
|
if(url===undefined){
|
|
|
|
if(url===undefined){
|
|
|
|
let {data,signupdata}=this.state;
|
|
|
|
let {data,signupdata}=this.state;
|
|
|
|
if(signupdata.enrolled===true){
|
|
|
|
if(signupdata.enrolled===true){
|
|
|
|
this.props.history.replace(`/courses/${data.course_id}`);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
//课堂学生不需要在竞赛报名的
|
|
|
|
//课堂学生不需要在竞赛报名的
|
|
|
|
if (data.member_of_course === true) {
|
|
|
|
if (data.member_of_course === true) {
|
|
|
|
this.props.history.replace(`/courses/${data.course_id}`);
|
|
|
|
this.props.history.replace(`/courses/${data.course_id}`);
|
|
|
@ -256,6 +254,12 @@ class CompetitionCommon extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
if (signupdata.personal === true) {
|
|
|
|
|
|
|
|
this.Personalregistration()
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.props.history.replace(`/competitions/${this.props.match.params.identifier}/enroll`);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
|
|