|
|
|
@ -945,7 +945,29 @@ submittojoinclass=(value)=>{
|
|
|
|
|
<a href={'/paperlibrary'} className={"popovertests"} ><p className="questiontype">试卷库</p></a>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
// console.log("头部");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
//判断平台身份
|
|
|
|
|
let Periofters=false;
|
|
|
|
|
if(this.props){
|
|
|
|
|
if(this.props.current_user){
|
|
|
|
|
if(this.props.current_user.admin){
|
|
|
|
|
Periofters=true;
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.current_user.business){
|
|
|
|
|
Periofters=true;
|
|
|
|
|
}
|
|
|
|
|
else if(this.props.current_user.is_teacher){
|
|
|
|
|
Periofters=true;
|
|
|
|
|
}else if(this.props.current_user.user_identity !=="学生") {
|
|
|
|
|
Periofters=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
<div className="newHeaders" id="nHeader" >
|
|
|
|
|
<style>{
|
|
|
|
@ -1052,17 +1074,22 @@ submittojoinclass=(value)=>{
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<li className={`pr questionbanks`} >
|
|
|
|
|
<Popover className="queyppors" id={"yslpopovers"} placement="bottom" content={contents} trigger="click" >
|
|
|
|
|
<div className=" sortinxdirection mr10">
|
|
|
|
|
<div style={{
|
|
|
|
|
color:"#fff"
|
|
|
|
|
}}>
|
|
|
|
|
题库
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
</li>
|
|
|
|
|
{
|
|
|
|
|
Periofters===true?
|
|
|
|
|
<li className={`pr questionbanks`} >
|
|
|
|
|
<Popover className="queyppors" id={"yslpopovers"} placement="bottom" content={contents} trigger="click" >
|
|
|
|
|
<div className=" sortinxdirection mr10">
|
|
|
|
|
<div style={{
|
|
|
|
|
color:"#fff"
|
|
|
|
|
}}>
|
|
|
|
|
题库
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
</li>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li
|
|
|
|
|
style={{display: this.props.Headertop === undefined ? 'none' : this.props.Headertop.auth === null ? 'none' : 'block'}}
|
|
|
|
|