|
|
|
@ -75,7 +75,19 @@ class Elearning extends Component{
|
|
|
|
|
};
|
|
|
|
|
//开始学习
|
|
|
|
|
Startlearning=()=>{
|
|
|
|
|
this.Tojoinclass();
|
|
|
|
|
let {userlogin} = this.state;
|
|
|
|
|
if (userlogin === undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
isRender: true
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (userlogin === "") {
|
|
|
|
|
this.setState({
|
|
|
|
|
isRender: true
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.props.isNotMember()===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
yslJointhe:true
|
|
|
|
@ -221,20 +233,10 @@ class Elearning extends Component{
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
Tojoinclass=()=> {
|
|
|
|
|
let {userlogin} = this.state;
|
|
|
|
|
if (userlogin === undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
isRender: true
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (userlogin === "") {
|
|
|
|
|
this.setState({
|
|
|
|
|
isRender: true
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
let{description,whethertoedit,isSpin,start_learning,hidestartshixunsreplacevalues,learned,last_shixun,stages,isRender} =this.state;
|
|
|
|
|