|
|
|
@ -118,21 +118,24 @@ class ShixunsHome extends Component {
|
|
|
|
|
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)){
|
|
|
|
|
if(item.hidden===true){
|
|
|
|
|
shixuntype=true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(paths.match(reg)){
|
|
|
|
|
if(item.hidden===true){
|
|
|
|
|
pathstype=true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix backFAFAFA shixunsHome">
|
|
|
|
|
{this.state.updata===undefined?"":<UpgradeModals
|
|
|
|
@ -232,7 +235,7 @@ class ShixunsHome extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*实训路径*/}
|
|
|
|
|
{pathstype===true?<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>
|
|
|
|
@ -308,10 +311,10 @@ class ShixunsHome extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
{/*精选实训 改为 开发社区*/}
|
|
|
|
|
{shixuntype===true?<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>
|
|
|
|
@ -403,7 +406,7 @@ class ShixunsHome extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>:""}
|
|
|
|
|
</div>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|