|
|
|
@ -789,6 +789,28 @@ class NewHeader extends Component {
|
|
|
|
|
<a href={'/paperlibrary'} className={"popovertests"} ><p className="questiontype">试卷库</p></a>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// 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" >
|
|
|
|
@ -896,17 +918,22 @@ class NewHeader extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</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'}}
|
|
|
|
|