dev_sync_trustie
杨树明 5 years ago
parent 101f53b306
commit 2f35a8172b

@ -62,22 +62,6 @@ class CompetitionsIndex extends Component{
let {datas,page,count}=this.state;
// bonus: 0
// current_stage: {name: "正赛 第一阶段", start_time: "2019-10-11 00:00:00", end_time: "2019-11-01 00:00:00"}
// description: null
// end_time: "2019-11-01 00:00:00"
// enroll_end_time: "2019-10-31 00:00:00"
// id: 7
// identifier: "gcc-annotation-2019"
// image: null
// member_count: 540
// name: "第二届全国绿色计算系列大赛"
// nearly_published: false
// published: true
// single_stage: false
// start_time: "2019-07-01 00:00:00"
// sub_title: "代码标注组"
// visits_count: 10181
return (
<div>
@ -116,6 +100,12 @@ class CompetitionsIndex extends Component{
.CompetitionsList{
position: relative;
}
.competitonimg{
position: absolute;
right: -5px;
width: 100px;
top: 20px;
}
`
}
</style>
@ -125,18 +115,18 @@ class CompetitionsIndex extends Component{
size="large"
dataSource={datas&&datas}
renderItem={(item,key) => (
<div>
<div className={"CompetitionsList"}>
{item.description===null||item.description===undefined||item.description===""?<style>
{
`
..CompetitionsIndex .ant-list-vertical .ant-list-item-action{
.CompetitionsIndex .ant-list-vertical .ant-list-item-action{
margin-top:50px;
}
`
}
</style>:""}
<img src={groups3} />
<img className={"competitonimg"} src={groups3} />
<List.Item
key={key}
actions={[

Loading…
Cancel
Save