|
|
|
@ -267,7 +267,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if (response.data.status === 0) {
|
|
|
|
|
// this.props.history.replace();
|
|
|
|
|
this.Personalregistration(`/courses/${data.course_id}`)
|
|
|
|
|
window.open(`/courses/${data.course_id}`);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -393,9 +393,9 @@ class CompetitionCommon extends Component{
|
|
|
|
|
<Col className="gutter-row rankbeicenter" span={6}>
|
|
|
|
|
|
|
|
|
|
{data.competition_status === "ended" ?
|
|
|
|
|
<div className="gutter-box CompetitionsIndexbottomvalue Competitioncolor516 cursorpointer"
|
|
|
|
|
<div className={data.mode === 2 ?data.member_of_course==true?"gutter-box CompetitionsIndexbottomvalue Competitioncolor516 cursorpointer":"gutter-box CompetitionsIndexbottomvalue Competitioncolor516":"gutter-box CompetitionsIndexbottomvalue Competitioncolor516 cursorpointer"}
|
|
|
|
|
// 已结束onClick={data.competition_status === "nearly_published" ? "" : () => this.gotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)}
|
|
|
|
|
onClick={ data.mode === 2 ?() => this.newgotocourse(`/courses/${data.course_id}`):() => this.newgotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)}
|
|
|
|
|
onClick={ data.mode === 2 ?data.member_of_course==true?() => this.newgotocourse(`/courses/${data.course_id}`):"":() => this.newgotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)}
|
|
|
|
|
>{data && data.member_count}</div>
|
|
|
|
|
:data.competition_status === "nearly_published" ?
|
|
|
|
|
<div className="gutter-box CompetitionsIndexbottomvalue Competitioncolor516"
|
|
|
|
|