|
|
|
@ -314,7 +314,7 @@ class ShixunsHome extends Component {
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
{/*精选实训 改为 开发社区*/}
|
|
|
|
|
{shixuntype===true||homedatalist===undefined?"":homedatalist.shixuns.length===0?"":<div className="clearfix pt20 educontent pr pb20">
|
|
|
|
|
{shixuntype===true||homedatalist===undefined?"":homedatalist.shixuns.length===0?"":<div className="clearfix pt20 educontent pr pb20 mb20">
|
|
|
|
|
<div className="edu-txt-center">
|
|
|
|
|
<p className="color-dark edu-txt-center font-24" style={{lineHeight: '30px'}}>实训项目</p>
|
|
|
|
|
<p className="color-grey-cd font-12">DEVELOPMENT COMMUNITY</p>
|
|
|
|
@ -411,160 +411,160 @@ class ShixunsHome extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*导师排行榜*/}
|
|
|
|
|
{ homedatalist !== undefined && homedatalist.teachers !== undefined && (
|
|
|
|
|
this.props.user&&this.props.user.main_site===true?<div className="pt60 pb60 mb30 mentor-ranking">
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
<div className="edu-txt-center">
|
|
|
|
|
<p className="color-dark edu-txt-center font-24" style={{lineHeight: '30px'}}>导师排行榜</p>
|
|
|
|
|
<p className="color-grey-cd font-12">MENTOR RANKING</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="ranking clearfix">
|
|
|
|
|
<ul className="grade color-dark">
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
if(key===1){
|
|
|
|
|
return(
|
|
|
|
|
<li className="mt35 pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-two.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{
|
|
|
|
|
if(key===0){
|
|
|
|
|
return(
|
|
|
|
|
<li className="pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{
|
|
|
|
|
if(key===2){
|
|
|
|
|
return(
|
|
|
|
|
<li className="mt35 pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-three.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
</ul>
|
|
|
|
|
<br />
|
|
|
|
|
<ul className="grade mt30">
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{
|
|
|
|
|
if(key>2) {
|
|
|
|
|
return (
|
|
|
|
|
<li key={key}>
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url}/>
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""
|
|
|
|
|
)}
|
|
|
|
|
{/* { homedatalist !== undefined && homedatalist.teachers !== undefined && (*/}
|
|
|
|
|
{/* this.props.user&&this.props.user.main_site===true?<div className="pt60 pb60 mb30 mentor-ranking">*/}
|
|
|
|
|
{/* <div className="educontent">*/}
|
|
|
|
|
{/* <div className="edu-txt-center">*/}
|
|
|
|
|
{/* <p className="color-dark edu-txt-center font-24" style={{lineHeight: '30px'}}>导师排行榜</p>*/}
|
|
|
|
|
{/* <p className="color-grey-cd font-12">MENTOR RANKING</p>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
|
|
|
|
|
{/* <div className="ranking clearfix">*/}
|
|
|
|
|
{/* <ul className="grade color-dark">*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{*/}
|
|
|
|
|
|
|
|
|
|
{/* if(key===1){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="mt35 pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan-two.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key===0){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key===2){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="mt35 pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan-three.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* </ul>*/}
|
|
|
|
|
{/* <br />*/}
|
|
|
|
|
{/* <ul className="grade mt30">*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.teachers.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key>2) {*/}
|
|
|
|
|
{/* return (*/}
|
|
|
|
|
{/* <li key={key}>*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url}/>*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* </ul>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/* </div>:""*/}
|
|
|
|
|
{/* )}*/}
|
|
|
|
|
|
|
|
|
|
{/*程序员排行榜*/}
|
|
|
|
|
{ homedatalist !== undefined && homedatalist.students !== undefined && (
|
|
|
|
|
this.props.user&&this.props.user.main_site===true?<div className="pt60 pb60 mb30 pro-ranking">
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
<div className="edu-txt-center">
|
|
|
|
|
<p className="color-dark edu-txt-center font-24" style={{lineHeight: '30px'}}>程序员排行榜</p>
|
|
|
|
|
<p className="color-grey-cd font-12">PROGRAMMER RANKING</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="ranking clearfix">
|
|
|
|
|
<ul className="grade color-dark">
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.students.map((item,key)=>{
|
|
|
|
|
if(key===1){
|
|
|
|
|
return(
|
|
|
|
|
<li className="mt35 pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-two.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.students.map((item,key)=>{
|
|
|
|
|
if(key===0){
|
|
|
|
|
return(
|
|
|
|
|
<li className="pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.students.map((item,key)=>{
|
|
|
|
|
if(key===2){
|
|
|
|
|
return(
|
|
|
|
|
<li className="mt35 pr" key={key}>
|
|
|
|
|
<img src={getImageUrl("images/educoder/huangguan-three.png")} className="huangguan" />
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url} />
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
</ul>
|
|
|
|
|
<br />
|
|
|
|
|
<ul className="grade mt30">
|
|
|
|
|
{
|
|
|
|
|
homedatalist===undefined?"":homedatalist.students.map((item,key)=>{
|
|
|
|
|
if(key>2) {
|
|
|
|
|
return (
|
|
|
|
|
<li key={key}>
|
|
|
|
|
<a href={"/users/"+item.login} className="color-dark">
|
|
|
|
|
<img src={'/images/'+item.image_url}/>
|
|
|
|
|
<p className="task-hide rankName mt5">{item.username}</p>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""
|
|
|
|
|
)}
|
|
|
|
|
{/*{ homedatalist !== undefined && homedatalist.students !== undefined && (*/}
|
|
|
|
|
{/* this.props.user&&this.props.user.main_site===true?<div className="pt60 pb60 mb30 pro-ranking">*/}
|
|
|
|
|
{/* <div className="educontent">*/}
|
|
|
|
|
{/* <div className="edu-txt-center">*/}
|
|
|
|
|
{/* <p className="color-dark edu-txt-center font-24" style={{lineHeight: '30px'}}>程序员排行榜</p>*/}
|
|
|
|
|
{/* <p className="color-grey-cd font-12">PROGRAMMER RANKING</p>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/* <div className="ranking clearfix">*/}
|
|
|
|
|
{/* <ul className="grade color-dark">*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.students.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key===1){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="mt35 pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan-two.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.students.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key===0){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.students.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key===2){*/}
|
|
|
|
|
{/* return(*/}
|
|
|
|
|
{/* <li className="mt35 pr" key={key}>*/}
|
|
|
|
|
{/* <img src={getImageUrl("images/educoder/huangguan-three.png")} className="huangguan" />*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url} />*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/* </ul>*/}
|
|
|
|
|
{/* <br />*/}
|
|
|
|
|
{/* <ul className="grade mt30">*/}
|
|
|
|
|
{/* {*/}
|
|
|
|
|
{/* homedatalist===undefined?"":homedatalist.students.map((item,key)=>{*/}
|
|
|
|
|
{/* if(key>2) {*/}
|
|
|
|
|
{/* return (*/}
|
|
|
|
|
{/* <li key={key}>*/}
|
|
|
|
|
{/* <a href={"/users/"+item.login} className="color-dark">*/}
|
|
|
|
|
{/* <img src={'/images/'+item.image_url}/>*/}
|
|
|
|
|
{/* <p className="task-hide rankName mt5">{item.username}</p>*/}
|
|
|
|
|
{/* </a>*/}
|
|
|
|
|
{/* </li>*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* </ul>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/*</div>:""*/}
|
|
|
|
|
{/*)}*/}
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|