|
|
@ -27,6 +27,7 @@ class DetailTop extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
componentDidMount(){
|
|
|
|
componentDidMount(){
|
|
|
|
let courseslist=[]
|
|
|
|
let courseslist=[]
|
|
|
|
|
|
|
|
if(this.props.courses!=undefined&&this.props.courses.length!=0){
|
|
|
|
this.props.courses.map((item,key)=>{
|
|
|
|
this.props.courses.map((item,key)=>{
|
|
|
|
if(1===key+1){
|
|
|
|
if(1===key+1){
|
|
|
|
return(
|
|
|
|
return(
|
|
|
@ -34,6 +35,7 @@ class DetailTop extends Component{
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
courseslist:courseslist
|
|
|
|
courseslist:courseslist
|
|
|
|
})
|
|
|
|
})
|
|
|
|