|
|
|
@ -34,7 +34,7 @@ class DetailTop extends Component{
|
|
|
|
|
|
|
|
|
|
if(this.props.courses!=undefined&&this.props.courses.length!=0){
|
|
|
|
|
this.props.courses.map((item,key)=>{
|
|
|
|
|
if(1===key+1){
|
|
|
|
|
if(this.props.pathtopskey===key+1){
|
|
|
|
|
return(
|
|
|
|
|
courseslist.push(item)
|
|
|
|
|
)
|
|
|
|
@ -52,7 +52,7 @@ class DetailTop extends Component{
|
|
|
|
|
|
|
|
|
|
if(this.props.courses!=undefined&&this.props.courses.length!=0){
|
|
|
|
|
this.props.courses.map((item,key)=>{
|
|
|
|
|
if(1===key+1){
|
|
|
|
|
if(this.props.pathtopskey===key+1){
|
|
|
|
|
return(
|
|
|
|
|
courseslist.push(item)
|
|
|
|
|
)
|
|
|
|
@ -205,7 +205,7 @@ class DetailTop extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
JoinnowCourse=(id)=>{
|
|
|
|
|
JoinnowCourse=(id,typeid)=>{
|
|
|
|
|
|
|
|
|
|
if(this.props.checkIfLogin()===false){
|
|
|
|
|
this.props.showLoginDialog()
|
|
|
|
@ -220,7 +220,8 @@ class DetailTop extends Component{
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
yslJointhe:true,
|
|
|
|
|
Pathcourseid:id
|
|
|
|
|
Pathcourseid:id,
|
|
|
|
|
pathcousestypeid:typeid
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
ysljoinmodalCancel=()=>{
|
|
|
|
@ -228,11 +229,11 @@ class DetailTop extends Component{
|
|
|
|
|
yslJointhe:false
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
ysljoinmodalCanceltwo=()=>{
|
|
|
|
|
ysljoinmodalCanceltwo=(key)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
yslJointhe:false
|
|
|
|
|
})
|
|
|
|
|
this.props.getdatasindex()
|
|
|
|
|
this.props.getdatasindex(key)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
OpenCoursefun=()=>{
|
|
|
|
@ -282,7 +283,7 @@ class DetailTop extends Component{
|
|
|
|
|
loadtype={loadtype}
|
|
|
|
|
>
|
|
|
|
|
</Modals>
|
|
|
|
|
{this.state.yslJointhe===true?<Jointheclass {...this.props} {...this.state} ysljoinmodalCancel={()=>this.ysljoinmodalCancel()} ysljoinmodalCanceltwo={()=>this.ysljoinmodalCanceltwo()}></Jointheclass>:""}
|
|
|
|
|
{this.state.yslJointhe===true?<Jointheclass {...this.props} {...this.state} ysljoinmodalCancel={()=>this.ysljoinmodalCancel()} ysljoinmodalCanceltwo={()=>this.ysljoinmodalCanceltwo(this.state.MenuItemskey)}></Jointheclass>:""}
|
|
|
|
|
{this.state.OpenCourseTypes===true?<OpenCourse {...this.props} {...this.state} OpenCourseCancel={()=>this.OpenCourseCancel()}/>:""}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
@ -541,7 +542,7 @@ class DetailTop extends Component{
|
|
|
|
|
进入课堂
|
|
|
|
|
</a>:item.course_identity<6?<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" href={item.first_category_url} target="_blank">
|
|
|
|
|
立即学习
|
|
|
|
|
</a>:<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" onClick={()=>this.JoinnowCourse(item.course_id)}>立即加入</a>:""}
|
|
|
|
|
</a>:<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" onClick={()=>this.JoinnowCourse(item.course_id,item.course_status.status)}>立即加入</a>:""}
|
|
|
|
|
|
|
|
|
|
{item.course_status.status===2?
|
|
|
|
|
item.course_identity<6?<a className="fr user_default_btn task-btn-orange font-18 mt28 pathbtens" href={item.first_category_url} target="_blank">
|
|
|
|
|