|
|
@ -235,6 +235,7 @@ class Coursesleftnav extends Component{
|
|
|
|
navidtype=true
|
|
|
|
navidtype=true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
this.props.updataleftNavfun()
|
|
|
|
|
|
|
|
// this.scrollToAnchor()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
setnavid=(e,key,id,type,url)=>{
|
|
|
|
setnavid=(e,key,id,type,url)=>{
|
|
|
@ -801,6 +802,11 @@ class Coursesleftnav extends Component{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
chapterupdate:false,
|
|
|
|
chapterupdate:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//跳转道描点的地方
|
|
|
|
|
|
|
|
scrollToAnchor = () => {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
let {
|
|
|
|
let {
|
|
|
@ -823,7 +829,6 @@ class Coursesleftnav extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
// console.log("778");
|
|
|
|
// console.log("778");
|
|
|
|
// console.log("CoursesLeftNav");
|
|
|
|
// console.log("CoursesLeftNav");
|
|
|
|
// console.log(course_modules);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
|
|
|
|
|
|
|
@ -976,6 +981,7 @@ class Coursesleftnav extends Component{
|
|
|
|
ref={provided.innerRef}
|
|
|
|
ref={provided.innerRef}
|
|
|
|
{...provided.droppableProps}
|
|
|
|
{...provided.droppableProps}
|
|
|
|
className={"droppableul"}
|
|
|
|
className={"droppableul"}
|
|
|
|
|
|
|
|
id={this.props.mainurl===item.category_url&&key===this.props.indexs?"scrolldroppableul"+this.props.match.params.category_id:""}
|
|
|
|
style={{display: this.props.mainurl===item.category_url&&key===this.props.indexs?"":"none"}}
|
|
|
|
style={{display: this.props.mainurl===item.category_url&&key===this.props.indexs?"":"none"}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{item.second_category===undefined?"":item.second_category.map((iem,index)=>{
|
|
|
|
{item.second_category===undefined?"":item.second_category.map((iem,index)=>{
|
|
|
@ -999,7 +1005,7 @@ class Coursesleftnav extends Component{
|
|
|
|
visible={false}
|
|
|
|
visible={false}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{/*"/courses/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
|
|
|
|
{/*"/courses/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
|
|
|
|
<a className={"Draggablelichild"}>
|
|
|
|
<a className={"Draggablelichild"} id={"scroll"+iem.category_id} ref={"scroll"+iem.category_id}>
|
|
|
|
<li className="clearfix width93 Draggableli" key={index} onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} onMouseLeave={(e)=>this.twosandianhide(e,index,item.type)} onMouseEnter={(e)=>this.twosandianshow(e,index,item.type)}
|
|
|
|
<li className="clearfix width93 Draggableli" key={index} onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} onMouseLeave={(e)=>this.twosandianhide(e,index,item.type)} onMouseEnter={(e)=>this.twosandianshow(e,index,item.type)}
|
|
|
|
key={index}
|
|
|
|
key={index}
|
|
|
|
ref={provided.innerRef}
|
|
|
|
ref={provided.innerRef}
|
|
|
@ -1073,7 +1079,11 @@ class Coursesleftnav extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
{/*下拉列表*/}
|
|
|
|
{/*下拉列表*/}
|
|
|
|
{/* className={this.props.location.pathname===item.category_url||this.props.location.pathname===this.state.url&&key===this.state.indexs?"":""}*/}
|
|
|
|
{/* className={this.props.location.pathname===item.category_url||this.props.location.pathname===this.state.url&&key===this.state.indexs?"":""}*/}
|
|
|
|
<ul style={{display:this.props.mainurl===item.category_url&&key===this.props.indexs?"":"none"}} class="droppableul">
|
|
|
|
<ul
|
|
|
|
|
|
|
|
style={{display:this.props.mainurl===item.category_url&&key===this.props.indexs?"":"none"}}
|
|
|
|
|
|
|
|
class="droppableul"
|
|
|
|
|
|
|
|
id={this.props.mainurl===item.category_url&&key===this.props.indexs?"scrolldroppableul"+this.props.match.params.category_id:""}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item.second_category===undefined?"":item.second_category.map((iem,index)=>{
|
|
|
|
item.second_category===undefined?"":item.second_category.map((iem,index)=>{
|
|
|
@ -1085,7 +1095,7 @@ class Coursesleftnav extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<a >
|
|
|
|
<a id={"scroll"+iem.category_id} ref={"scroll"+iem.category_id}>
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}} title={iem.category_name.length<10?"":iem.category_name}>
|
|
|
|
<li className="clearfix Draggableli" key={index} style={{ width: '244px'}} title={iem.category_name.length<10?"":iem.category_name}>
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
<a className="fl pl46 pd0 Draggablelichild" onClick={(e)=>this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} >
|
|
|
|
|
|
|
|
|
|
|
|