|
|
@ -18,87 +18,69 @@ class CompetitionContents extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
componentDidMount(){
|
|
|
|
window.document.title = '竞赛';
|
|
|
|
window.document.title = '竞赛';
|
|
|
|
|
|
|
|
this.gettitledata()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
gettitledata=()=>{
|
|
|
|
|
|
|
|
let url=`/competitions/${this.props.match.params.identifier}/chart_rules.json`;
|
|
|
|
|
|
|
|
axios.get(url)
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
console.log(error)
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const operations = <Icon type="form" />;
|
|
|
|
const operations = <Button className={"fr"} type="primary" ghost>编辑</Button>;
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Name',
|
|
|
|
title: 'usersum',
|
|
|
|
dataIndex: 'name',
|
|
|
|
dataIndex: 'usersum',
|
|
|
|
key: 'name',
|
|
|
|
key: 'name',
|
|
|
|
render: text => <a>{text}</a>,
|
|
|
|
render: text => <a className={"color-blue"}>{text}</a>,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Age',
|
|
|
|
title: 'userimg',
|
|
|
|
dataIndex: 'age',
|
|
|
|
dataIndex: 'userimg',
|
|
|
|
key: 'age',
|
|
|
|
key: 'userimg',
|
|
|
|
|
|
|
|
render: text => <img className={"Competitionuserimg"} src={getImageUrl("images/avatars/User/60969?t=1569488691")}/>,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Address',
|
|
|
|
title: 'username',
|
|
|
|
dataIndex: 'address',
|
|
|
|
dataIndex: 'username',
|
|
|
|
key: 'address',
|
|
|
|
key: 'username',
|
|
|
|
|
|
|
|
render: text => <a>{text}</a>,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Tags',
|
|
|
|
title: 'school',
|
|
|
|
key: 'tags',
|
|
|
|
dataIndex: 'school',
|
|
|
|
dataIndex: 'tags',
|
|
|
|
key: 'school',
|
|
|
|
render: tags => (
|
|
|
|
render: text => <a>{text}</a>,
|
|
|
|
<span>
|
|
|
|
|
|
|
|
123123
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Action',
|
|
|
|
title: 'spendtime',
|
|
|
|
key: 'action',
|
|
|
|
dataIndex: 'spendtime',
|
|
|
|
render: (text, record) => (
|
|
|
|
key: 'spendtime',
|
|
|
|
<span>
|
|
|
|
render: text => <a>{text}</a>,
|
|
|
|
<a>Invite {record.name}</a>
|
|
|
|
|
|
|
|
<a>Delete</a>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: 'Values',
|
|
|
|
title: 'score',
|
|
|
|
key: 'values',
|
|
|
|
dataIndex: 'score',
|
|
|
|
dataIndex: 'values',
|
|
|
|
key: 'score',
|
|
|
|
render: tags => (
|
|
|
|
render: text => <a className={"color-blue"}>{text}</a>,
|
|
|
|
<span>
|
|
|
|
|
|
|
|
123123
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
const data = [
|
|
|
|
const data = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
key: '1',
|
|
|
|
usersum: '1',
|
|
|
|
name: 'John Brown',
|
|
|
|
userimg: 'John Brown',
|
|
|
|
age: 32,
|
|
|
|
username: "小头鹰",
|
|
|
|
address: 'New York No. 1 Lake Park',
|
|
|
|
school: '吉首大学',
|
|
|
|
tags: ['nice', 'developer'],
|
|
|
|
spendtime: '15:00:00',
|
|
|
|
values:123
|
|
|
|
score:123123
|
|
|
|
},
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
key: '2',
|
|
|
|
|
|
|
|
name: 'Jim Green',
|
|
|
|
|
|
|
|
age: 42,
|
|
|
|
|
|
|
|
address: 'London No. 1 Lake Park',
|
|
|
|
|
|
|
|
tags: ['loser'],
|
|
|
|
|
|
|
|
values:123
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
key: '3',
|
|
|
|
|
|
|
|
name: 'Joe Black',
|
|
|
|
|
|
|
|
age: 32,
|
|
|
|
|
|
|
|
address: 'Sidney No. 1 Lake Park',
|
|
|
|
|
|
|
|
tags: ['cool', 'teacher'],
|
|
|
|
|
|
|
|
values:123
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -129,15 +111,27 @@ class CompetitionContents extends Component{
|
|
|
|
<Card
|
|
|
|
<Card
|
|
|
|
className={"Competitionthird"}
|
|
|
|
className={"Competitionthird"}
|
|
|
|
cover={
|
|
|
|
cover={
|
|
|
|
<img
|
|
|
|
<div className={"Competitionthirdbox center"}>
|
|
|
|
alt="example"
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
|
|
|
<img src={getImageUrl("/images/educoder/huangguan-two.png")}/>
|
|
|
|
/>
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
|
|
|
<a href="/users/p45296381" className="color-dark">
|
|
|
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl("/images/avatars/User/45459?t=1566570434")} />
|
|
|
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">蒙睿</p>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Meta
|
|
|
|
<Meta
|
|
|
|
title="Card title"
|
|
|
|
title={<div className={"center"}>
|
|
|
|
description="This is the description"
|
|
|
|
<div className={"rankfonttop"}>吉首大学</div>
|
|
|
|
|
|
|
|
<div className={"rankfontmid"}>78:01:02</div>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
description={
|
|
|
|
|
|
|
|
<div className={"rankfontbottom"}>3423.45分</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
@ -145,32 +139,58 @@ class CompetitionContents extends Component{
|
|
|
|
<Card
|
|
|
|
<Card
|
|
|
|
className={"Competitionfirst"}
|
|
|
|
className={"Competitionfirst"}
|
|
|
|
cover={
|
|
|
|
cover={
|
|
|
|
<img
|
|
|
|
<div className={"Competitionfirstbox center"}>
|
|
|
|
alt="example"
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
|
|
|
<img src={getImageUrl("/images/educoder/huangguan.png")}/>
|
|
|
|
/>
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
|
|
|
<a href="/users/p37219480" className="color-dark">
|
|
|
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl("/images/avatars/User/46128?t=1561087919")} />
|
|
|
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">李羿锟</p>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Meta
|
|
|
|
<Meta
|
|
|
|
title="Card title"
|
|
|
|
title={<div className={"center"}>
|
|
|
|
description="This is the description"
|
|
|
|
<div className={"rankfonttop"}>吉首大学</div>
|
|
|
|
|
|
|
|
<div className={"rankfontmid"}>78:01:02</div>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
description={
|
|
|
|
|
|
|
|
<div className={"rankfontbottoms"}>3423.45分</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
</Card>
|
|
|
|
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col className="mt30" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
<Col className="mt30" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
<Card
|
|
|
|
<Card
|
|
|
|
className={"Competitionsecondary"}
|
|
|
|
className={"Competitionsecondary "}
|
|
|
|
cover={
|
|
|
|
cover={
|
|
|
|
<img
|
|
|
|
<div className={"Competitionsecondarybox center"}>
|
|
|
|
alt="example"
|
|
|
|
<li className=" pr Competitioncenter ">
|
|
|
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
|
|
|
<img src={getImageUrl("/images/educoder/huangguan-three.png")}/>
|
|
|
|
/>
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
|
|
|
<a href="/users/p53601847" className="color-dark">
|
|
|
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl("/images/avatars/User/26650?t=1561087884")} />
|
|
|
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">陈翊</p>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Meta
|
|
|
|
<Meta
|
|
|
|
title="Card title"
|
|
|
|
title={<div className={"center"}>
|
|
|
|
description="This is the description"
|
|
|
|
<div className={"rankfonttop"}>吉首大学</div>
|
|
|
|
|
|
|
|
<div className={"rankfontmid"}>78:01:02</div>
|
|
|
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
description={
|
|
|
|
|
|
|
|
<div className={"rankfontbottom"}>3423.45分</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</Card>
|
|
|
|
</Card>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|