|
|
|
@ -112,13 +112,27 @@ class ShixunsHome extends Component {
|
|
|
|
|
}
|
|
|
|
|
const MyRate = ({ defaultValue, ...rest }) => {
|
|
|
|
|
let myValue = defaultValue;
|
|
|
|
|
// console.log(myValue-Math.floor(myValue))
|
|
|
|
|
// if (myValue < Math.ceil(myValue)) {
|
|
|
|
|
// myValue = Math.floor(myValue) + 0.5;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return <Rating {...rest} value={myValue} />;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let shixuntype=false;
|
|
|
|
|
let pathstype=false;
|
|
|
|
|
if(this.props&&this.props.mygetHelmetapi!=null){
|
|
|
|
|
console.log(this.props.mygetHelmetapi.navbar)
|
|
|
|
|
let shixun="/shixuns";
|
|
|
|
|
let paths="/paths";
|
|
|
|
|
this.props.mygetHelmetapi.navbar.map((item,key)=>{
|
|
|
|
|
var reg = RegExp(item.link);
|
|
|
|
|
if(shixun.match(reg)){
|
|
|
|
|
shixuntype=true
|
|
|
|
|
}
|
|
|
|
|
if(paths.match(reg)){
|
|
|
|
|
pathstype=true
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix backFAFAFA shixunsHome">
|
|
|
|
|
{this.state.updata===undefined?"":<UpgradeModals
|
|
|
|
@ -162,7 +176,7 @@ class ShixunsHome extends Component {
|
|
|
|
|
))}
|
|
|
|
|
</Slider>
|
|
|
|
|
}
|
|
|
|
|
<div className="user_navlist">
|
|
|
|
|
{this.props.user&&this.props.user.main_site===true?<div className="user_navlist">
|
|
|
|
|
<div className="user_navlist_black">
|
|
|
|
|
<ul className="black_nav_list">
|
|
|
|
|
{homedatalist === undefined ? "" :homedatalistreps.map((item,key)=>{
|
|
|
|
@ -212,13 +226,13 @@ class ShixunsHome extends Component {
|
|
|
|
|
}
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*实训路径*/}
|
|
|
|
|
<div className="clearfix pt20 educontent pr pb20">
|
|
|
|
|
{pathstype===true?<div className="clearfix pt20 educontent pr pb20">
|
|
|
|
|
<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">TRAINING COURSE</p>
|
|
|
|
@ -294,10 +308,10 @@ class ShixunsHome extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
{/*精选实训 改为 开发社区*/}
|
|
|
|
|
<div className="clearfix pt20 educontent pr pb20">
|
|
|
|
|
{shixuntype===true?<div className="clearfix pt20 educontent pr pb20">
|
|
|
|
|
<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>
|
|
|
|
@ -389,13 +403,13 @@ class ShixunsHome extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*导师排行榜*/}
|
|
|
|
|
{ homedatalist !== undefined && homedatalist.teachers !== undefined && (
|
|
|
|
|
<div className="pt60 pb60 mb30 mentor-ranking">
|
|
|
|
|
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>
|
|
|
|
@ -470,12 +484,12 @@ class ShixunsHome extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/*程序员排行榜*/}
|
|
|
|
|
{ homedatalist !== undefined && homedatalist.students !== undefined && (
|
|
|
|
|
<div className="pt60 pb60 mb30 pro-ranking">
|
|
|
|
|
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>
|
|
|
|
@ -546,7 +560,7 @@ class ShixunsHome extends Component {
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|