|
|
|
@ -137,7 +137,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
username:personal===undefined||personal===null?item.record_user_name:personal===true?item.record_user_name:item.team_name,
|
|
|
|
|
school:item.school_name,
|
|
|
|
|
spendtime:item.spend_time,
|
|
|
|
|
score:item.score,
|
|
|
|
|
score:item.score<50?"< 50 分":item.score,
|
|
|
|
|
user_login:item.user_login
|
|
|
|
|
}
|
|
|
|
|
datas.push(list)
|
|
|
|
@ -148,6 +148,16 @@ class CompetitionContents extends Component{
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.ant-tabs-nav .ant-tabs-tab{
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{chart_rules === undefined ? "" :
|
|
|
|
|
<Tabs onChange={(e) => this.props.Competitioncallback(e)} activeKey={this.props.tabkey}
|
|
|
|
|
tabBarExtraContent={data && data.permission.editable === true ? this.props.Competitionedittype === false ? this.props.has_url === false ? operations : "" : "" : ""}>
|
|
|
|
@ -205,7 +215,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score<50?"< 50 分":item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
</Card>
|
|
|
|
@ -241,7 +251,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottoms"}>{item.score}分</div>
|
|
|
|
|
<div className={"rankfontbottoms"}>{item.score<50?"< 50 分":item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
@ -277,7 +287,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
{this.props&&this.props.mode===1?<div className={"rankfontmid"}>{item.spend_time}</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score<50?"< 50 分":item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
@ -298,6 +308,18 @@ class CompetitionContents extends Component{
|
|
|
|
|
.ant-col-9 {
|
|
|
|
|
width: 35.5%;
|
|
|
|
|
}
|
|
|
|
|
.col13{
|
|
|
|
|
width:13%;
|
|
|
|
|
text-align:left;
|
|
|
|
|
}
|
|
|
|
|
.col24{
|
|
|
|
|
width: 24%;
|
|
|
|
|
text-align: left;
|
|
|
|
|
padding-left: 16px;
|
|
|
|
|
}
|
|
|
|
|
.col15{
|
|
|
|
|
width: 15%;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -306,10 +328,10 @@ class CompetitionContents extends Component{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<Row type="flex" key={key}>
|
|
|
|
|
<Col span={4} order={1}>
|
|
|
|
|
<Col span={4} order={1} className={"col13"}>
|
|
|
|
|
<span className={"ranknames"}>您当前排名:{item.rank}</span>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="userranksclass" span={3} order={2}>
|
|
|
|
|
<Col className="userranksclass" span={3} order={2} className={"col24"}>
|
|
|
|
|
{personal===undefined||personal===null?item.record_user_name:personal===true?item.user_name:item.team_name}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="textleft" span={9} order={3}>
|
|
|
|
@ -318,8 +340,8 @@ class CompetitionContents extends Component{
|
|
|
|
|
<Col span={3} order={4}>
|
|
|
|
|
{this.props&&this.props.mode===1?item.cost_time:""}
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="textright" span={3} order={5}>
|
|
|
|
|
<span className={"ranknameslast"}>{item.score}</span>
|
|
|
|
|
<Col className="textright" span={3} order={5} className={"col15"}>
|
|
|
|
|
<span className={"ranknameslast"}>{item.score<50?"< 50 分":item.score}</span>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
)
|
|
|
|
|