|
|
|
@ -96,57 +96,100 @@ class PersonalCompetititem extends React.Component {
|
|
|
|
|
textAlign: "center"
|
|
|
|
|
}}>{data[0].name}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className=" " style={{
|
|
|
|
|
marginLeft: "37px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "initial",
|
|
|
|
|
width: "487px"
|
|
|
|
|
}}>
|
|
|
|
|
{
|
|
|
|
|
data && data[0].team_members.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
{this.props.type === 5 || this.props.type === 2 ?
|
|
|
|
|
<div className=" " style={{
|
|
|
|
|
marginLeft: "37px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "initial",
|
|
|
|
|
width: "357px"
|
|
|
|
|
}}>
|
|
|
|
|
{
|
|
|
|
|
data && data[0].team_members.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
index === 0 ?
|
|
|
|
|
<img className="regitemimgs" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
index === 0 ?
|
|
|
|
|
<img className="regitemimgs" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 1 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 1 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
</img>
|
|
|
|
|
: index === 2 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 3 ?
|
|
|
|
|
<div>
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 2 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
</img>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 3 ?
|
|
|
|
|
<img className="regitemimgs222"
|
|
|
|
|
src={getImageUrl(`images/educoder/competitions/pexjiazai.png`)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div> :
|
|
|
|
|
<div className=" " style={{
|
|
|
|
|
marginLeft: "37px",
|
|
|
|
|
display: "flex",
|
|
|
|
|
flexDirection: "initial",
|
|
|
|
|
width: "487px"
|
|
|
|
|
}}>
|
|
|
|
|
{
|
|
|
|
|
data && data[0].team_members.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
index === 0 ?
|
|
|
|
|
<img className="regitemimgs" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 1 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 4 ?
|
|
|
|
|
: index === 2 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 5 ?
|
|
|
|
|
<div>
|
|
|
|
|
: index === 3 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
: index === 4 ?
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
<img className="regitemimgs22"
|
|
|
|
|
src={getImageUrl(`images/educoder/competitions/pexjiazai.png`)}>
|
|
|
|
|
</img>
|
|
|
|
|
: index === 5 ?
|
|
|
|
|
<div>
|
|
|
|
|
<img className="regitemimgs2" src={getImageUrl("images/" + item.image_url)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</img>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div className=" " style={{
|
|
|
|
|
<img className="regitemimgs22"
|
|
|
|
|
src={getImageUrl(`images/educoder/competitions/pexjiazai.png`)}>
|
|
|
|
|
|
|
|
|
|
</img>
|
|
|
|
|
</div>
|
|
|
|
|
: ""
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
<div className=" " style={this.props.type === 5 || this.props.type === 2 ? {
|
|
|
|
|
marginLeft: "20px",
|
|
|
|
|
} : {
|
|
|
|
|
marginLeft: "37px",
|
|
|
|
|
}}>
|
|
|
|
|
<div style={{marginTop: "23px", width: '113px'}}>
|
|
|
|
|
<div style={{marginTop: "23px", width: '140px'}}>
|
|
|
|
|
<span style={{
|
|
|
|
|
color: "#05101A",
|
|
|
|
|
fontSize: "16px",
|
|
|
|
@ -190,13 +233,21 @@ class PersonalCompetititem extends React.Component {
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.props.type === 5 ?
|
|
|
|
|
<div className="regitemimgs4"
|
|
|
|
|
<div className="regitemimgs444"
|
|
|
|
|
style={{
|
|
|
|
|
marginLeft: "32px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div className="regitemimgs5" onClick={() => this.props.Exittheteamshow(data[0].id, true)}>
|
|
|
|
|
<p onClick={() => this.props.Exittheteamshow(data[0].id, true)}>删除战队</p>
|
|
|
|
|
<div className="regitemimgs555">
|
|
|
|
|
<a href={`/newcompetitions/${"gcc-course-2019"}/competition_teams/${data[0].id}`} style={{
|
|
|
|
|
color: "#459be5",
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "100%",
|
|
|
|
|
lineHeight: "39px",
|
|
|
|
|
}}>战队详情</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="regitemimgs555" onClick={() => this.props.Exittheteamshow(data[0].id, false)}>
|
|
|
|
|
<p onClick={() => this.props.Exittheteamshow(data[0].id, false)}>删除战队</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="regitemimgs6" onClick={() => this.props.Createateamedit(data[0])}>
|
|
|
|
|
<p onClick={() => this.props.Createateamedit(data[0])}>编辑战队</p>
|
|
|
|
@ -204,12 +255,13 @@ class PersonalCompetititem extends React.Component {
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
: this.props.type === 2 ?
|
|
|
|
|
<div className="regitemimgs4 "
|
|
|
|
|
<div className="regitemimgs444 "
|
|
|
|
|
style={{
|
|
|
|
|
marginLeft: "32px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div className="regitemimgs5">
|
|
|
|
|
|
|
|
|
|
<div className="regitemimgs555">
|
|
|
|
|
<a href={`/newcompetitions/${"gcc-course-2019"}/competition_teams/${data[0].id}`} style={{
|
|
|
|
|
color: "#459be5",
|
|
|
|
|
width: "100%",
|
|
|
|
@ -217,10 +269,12 @@ class PersonalCompetititem extends React.Component {
|
|
|
|
|
lineHeight: "39px",
|
|
|
|
|
}}>战队详情</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="regitemimgs6" onClick={() => this.props.Exittheteamshow(data[0].id, false)}>
|
|
|
|
|
<p onClick={() => this.props.Exittheteamshow(data[0].id, false)}>退出战队</p>
|
|
|
|
|
<div className="regitemimgs555" onClick={() => this.props.Exittheteamshow(data[0].id, false)}>
|
|
|
|
|
<p onClick={() => this.props.Exittheteamshow(data[0].id, false)}>删除战队</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="regitemimgs6" onClick={() => this.props.Createateamedit(data[0])}>
|
|
|
|
|
<p onClick={() => this.props.Createateamedit(data[0])}>编辑战队</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
this.props.type === 3 ?
|
|
|
|
|