金课开课通知调整

dev_aliyun_beta
杨树明 6 years ago
parent a95bd30fd7
commit d270680ffb

@ -35,6 +35,7 @@ class DetailTop extends Component{
getdatalist=()=>{
let courseslist=[];
let keys=1;
let listtype=false;
if(this.props.courses!=undefined&&this.props.courses.length!=0){
if(this.props.detailInfoList.has_start===true){
this.props.courses.map((item,key)=>{
@ -48,13 +49,30 @@ class DetailTop extends Component{
}else{
this.props.courses.map((item,key)=>{
if(this.props.pathtopskey===key+1){
if(listtype===false){
keys=key+1
if(item.course_status.status===0) {
listtype=true
return (
courseslist.push(item)
)
}
}
})
this.props.courses.map((item,key)=>{
if(listtype===false){
keys=key+1
if(item.course_status.status===2) {
listtype=true
return (
courseslist.push(item)
)
}
}
})
}
}
this.setState({

Loading…
Cancel
Save