竞赛调整

dev_auth
杨树明 5 years ago
parent dd8edafcb0
commit 2751e16dc1

@ -102,6 +102,7 @@
white-space: nowrap;
display: inline-block;
margin-right: 15px;
color:#000 !important;
}
.competitionsrelative{

@ -56,7 +56,7 @@
}
.teamsLayoucolor-orange {
color: #ff6800!important;
color: #ff6800 !important;
font-size: 16px;
}
@ -69,7 +69,7 @@
.CompetitionCommonbannerfont{
height:100%;
width: 365px;
width: 365px !important;
line-height: 34px;
}
@ -390,4 +390,10 @@
.textright{
text-align: right;
}
.userranksclass{
text-align: left;
width: 15%;
padding-left: 31px;
}

@ -218,6 +218,19 @@ class CompetitionCommon extends Component{
this.setState({
tabkey:key
})
let url=`/competitions/${this.props.match.params.identifier}/charts.json`;
axios.get(url,{params:{
stage_id:key===0||key===null?undefined:key
}}).then((response) => {
if(response.status===200){
this.setState({
chartdata:response.data
})
}
}).catch((error) => {
console.log(error)
})
}
render() {

@ -264,7 +264,7 @@ class CompetitionContents extends Component{
<Col span={4} order={1}>
<span className={"ranknames"}>您当前排名:{item.rank}</span>
</Col>
<Col className="textleft" span={3} order={2}>
<Col className="userranksclass" span={3} order={2}>
{item.user_name}
</Col>
<Col className="textleft" span={9} order={3}>

Loading…
Cancel
Save