|
|
|
@ -122,7 +122,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
|
|
|
|
|
getrightdata=(id,typeid,module_url,has_url,listkey)=>{
|
|
|
|
|
// if(typeid==="enroll"){
|
|
|
|
|
// this.props.history.replace(`/newcompetitions/${this.props.match.params.identifier}/enroll`);
|
|
|
|
|
// this.props.history.replace(`/competitions/${this.props.match.params.identifier}/enroll`);
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
@ -240,7 +240,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
data===undefined?"":<div className={"educontent clearfix mt20 "}>
|
|
|
|
|
|
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
|
<Breadcrumb.Item><Link to={"/newcompetitions"}>在线竞赛</Link></Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item><Link to={"/competitions"}>在线竞赛</Link></Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item>{data&&data.name}</Breadcrumb.Item>
|
|
|
|
|
</Breadcrumb>
|
|
|
|
|
|
|
|
|
@ -284,7 +284,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
<div className="gutter-box CompetitionsIndexbottomvalue Competitioncolor516">{data.competition_status==="nearly_published"?"--":data&&data.visits_count}</div>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="gutter-row rankbeicenter" span={6}>
|
|
|
|
|
<div className="gutter-box CompetitionsIndexbottomvalue Competitioncolor516" onClick={data.competition_status==="nearly_published"?"":()=>this.gotocourse(`/newcompetitions/${this.props.match.params.identifier}/enroll`)}>{data.competition_status==="nearly_published"?"--":data&&data.member_count}</div>
|
|
|
|
|
<div className="gutter-box CompetitionsIndexbottomvalue Competitioncolor516" onClick={data.competition_status==="nearly_published"?"":()=>this.gotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)}>{data.competition_status==="nearly_published"?"--":data&&data.member_count}</div>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Col>
|
|
|
|
@ -317,7 +317,7 @@ class CompetitionCommon extends Component{
|
|
|
|
|
报名截止
|
|
|
|
|
</Button>:
|
|
|
|
|
data.competition_status==="progressing"?<Button type="primary" block className={"Competitionfontsize22"}>
|
|
|
|
|
{data.mode===2?<a onClick={()=>this.gotocourse()}>立即报名</a>:<a onClick={()=>this.gotocourse(`/newcompetitions/${this.props.match.params.identifier}/enroll`)}>立即报名</a>}
|
|
|
|
|
{data.mode===2?<a onClick={()=>this.gotocourse()}>立即报名</a>:<a onClick={()=>this.gotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)}>立即报名</a>}
|
|
|
|
|
</Button>:""}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className={"mt10 Competitionfontsize16"}>{data&&data.enroll_end_time===null?"":`报名截止时间:${data&&data.enroll_end_time}`}</Col>
|
|
|
|
|