|
|
|
@ -40,7 +40,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
key: 'userimg',
|
|
|
|
|
render: (text, record) =>(
|
|
|
|
|
<a href={`/users/${record.user_login}`} className="color-dark">
|
|
|
|
|
<img className={"Competitionuserimg"} src={getImageUrl(record.userimg)}/>
|
|
|
|
|
<img className={"Competitionuserimg"} src={getImageUrl(`images/${record.userimg===null?`avatars/User/0?1442652658`:record.userimg}`)}/>
|
|
|
|
|
</a>),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -71,8 +71,9 @@ class CompetitionContents extends Component{
|
|
|
|
|
|
|
|
|
|
const data = [];
|
|
|
|
|
let {chart_rules,chartdata}=this.props;
|
|
|
|
|
chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
if(key>3){
|
|
|
|
|
chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<3?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
if(key>2){
|
|
|
|
|
let list={
|
|
|
|
|
usersum:key,
|
|
|
|
|
userimg:item.user_image,
|
|
|
|
@ -120,19 +121,20 @@ class CompetitionContents extends Component{
|
|
|
|
|
<Row calssName={"Competition399"}>
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
if(key===1){
|
|
|
|
|
|
|
|
|
|
if(key===3){
|
|
|
|
|
return(
|
|
|
|
|
<Col xs={{ span: 11, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
|
<Col className="mt40" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 2 }}>
|
|
|
|
|
<Card
|
|
|
|
|
className={"Competitionfirst"}
|
|
|
|
|
className={"Competitionthird"}
|
|
|
|
|
cover={
|
|
|
|
|
<div className={"Competitionfirstbox center"}>
|
|
|
|
|
<div className={"Competitionthirdbox center"}>
|
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan.png")}/>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-two.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(item.user_image)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{item.record_user_name}</p>
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{item.user_name}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
@ -145,28 +147,29 @@ class CompetitionContents extends Component{
|
|
|
|
|
<div className={"rankfontmid"}>{item.spend_time}</div>
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottoms"}>{item.score}分</div>
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
</Card>
|
|
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(key===2){
|
|
|
|
|
})}
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
if(key===1){
|
|
|
|
|
return(
|
|
|
|
|
<Col className="mt30" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
|
<Col xs={{ span: 11, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
|
<Card
|
|
|
|
|
className={"Competitionsecondary "}
|
|
|
|
|
className={"Competitionfirst"}
|
|
|
|
|
cover={
|
|
|
|
|
<div className={"Competitionsecondarybox center"}>
|
|
|
|
|
<div className={"Competitionfirstbox center"}>
|
|
|
|
|
<li className="pr Competitioncenter">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-three.png")}/>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(item.user_image)} />
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{item.record_user_name}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
@ -180,28 +183,30 @@ class CompetitionContents extends Component{
|
|
|
|
|
<div className={"rankfontmid"}>{item.spend_time}</div>
|
|
|
|
|
</div>}
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
|
<div className={"rankfontbottoms"}>{item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
</Card>
|
|
|
|
|
|
|
|
|
|
</Col>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(key===3){
|
|
|
|
|
})}
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{
|
|
|
|
|
if(key===2){
|
|
|
|
|
return(
|
|
|
|
|
<Col className="mt40" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 2 }}>
|
|
|
|
|
<Col className="mt30" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
|
|
|
|
<Card
|
|
|
|
|
className={"Competitionthird"}
|
|
|
|
|
className={"Competitionsecondary "}
|
|
|
|
|
cover={
|
|
|
|
|
<div className={"Competitionthirdbox center"}>
|
|
|
|
|
<div className={"Competitionsecondarybox center"}>
|
|
|
|
|
<li className=" pr Competitioncenter ">
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-two.png")}/>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-three.png")}/>
|
|
|
|
|
<div className={"mt10"}>
|
|
|
|
|
<a href={`/users/${item.user_login}`} className="color-dark">
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(item.user_image)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{item.user_name}</p>
|
|
|
|
|
<img className={"rankingimg"} src={getImageUrl(`images/${item.user_image===null?`avatars/User/0?1442652658`:item.user_image}`)} />
|
|
|
|
|
<p className="task-hide rankName mt5 jinshaifont">{item.record_user_name}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
@ -216,17 +221,19 @@ class CompetitionContents extends Component{
|
|
|
|
|
description={
|
|
|
|
|
<div className={"rankfontbottom"}>{item.score}分</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
</Card>
|
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
</Row>
|
|
|
|
|
{chartdata===undefined?"":chartdata.user_ranks.length===0?"":<div className={"youranklist"}>
|
|
|
|
|
{chartdata===undefined?"":chartdata.user_ranks.length===0?"":<div className={"youranklist mt50"}>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
@ -261,7 +268,7 @@ class CompetitionContents extends Component{
|
|
|
|
|
})}
|
|
|
|
|
</div>}
|
|
|
|
|
<Row className={"mt80 mb80"}>
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0?"":<Table className="Competitiontransparent" columns={columns} dataSource={data} showHeader={false} pagination={false}/>}
|
|
|
|
|
{chartdata===undefined?"":chartdata.teams.length===0||chartdata.teams.length<3?"":<Table className="Competitiontransparent" columns={columns} dataSource={data} showHeader={false} pagination={false}/>}
|
|
|
|
|
</Row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|