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