|
|
|
@ -598,38 +598,82 @@ export default function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
MdifHasAnchorJustScorll: this.MdifHasAnchorJustScorll,
|
|
|
|
|
scrollToAnchor: this.scrollToAnchor
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
var mypath = this.props && this.props.match && this.props.match.path;
|
|
|
|
|
return (
|
|
|
|
|
<div className="indexHOC">
|
|
|
|
|
{isRender === true ? <LoginDialog
|
|
|
|
|
Modifyloginvalue={() => this.hideLoginDialog()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
/> : ""}
|
|
|
|
|
{/* AccountProfile 也用作职业认证 */}
|
|
|
|
|
{AccountProfiletype === true ? <AccountProfile
|
|
|
|
|
hideAccountProfile={() => this.hideAccountProfile()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/> : ""}
|
|
|
|
|
{/*验证是否注册手机邮箱*/}
|
|
|
|
|
{AccountPhoneemailtype === true ? <AccountPhoneemail
|
|
|
|
|
hideAccountProfile={() => this.hideAccountPhoneemailtype()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/> : ""}
|
|
|
|
|
{
|
|
|
|
|
mypath && mypath === "/question" ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<SiderBar
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
Headertop={Headertop} />
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let{Headertop,Footerdown, isRender, AccountProfiletype,AccountPhoneemailtype}=this.state;
|
|
|
|
|
const common = {
|
|
|
|
|
isSuperAdmin:this.isSuperAdmin,
|
|
|
|
|
isAdminOrCreator:this.isAdminOrCreator,
|
|
|
|
|
isClassManagement:this.isClassManagement,
|
|
|
|
|
isCourseAdmin:this.isCourseAdmin,
|
|
|
|
|
|
|
|
|
|
isAdmin: this.isAdmin,
|
|
|
|
|
isAdminOrTeacher: this.isAdminOrTeacher,
|
|
|
|
|
isStudent: this.isStudent,
|
|
|
|
|
isAdminOrStudent: this.isAdminOrStudent,
|
|
|
|
|
isNotMember: this.isNotMember,
|
|
|
|
|
isCourseEnd: this.isCourseEnd,
|
|
|
|
|
|
|
|
|
|
isUserid:this.state.coursedata&&this.state.coursedata.userid,
|
|
|
|
|
fetchUser: this.fetchUser,
|
|
|
|
|
|
|
|
|
|
showLoginDialog: this.showLoginDialog,
|
|
|
|
|
checkIfLogin: this.checkIfLogin,
|
|
|
|
|
showProfileCompleteDialog: this.showProfileCompleteDialog,
|
|
|
|
|
showhideAccountPhoneemailDialog:this.showhideAccountPhoneemailDialog,
|
|
|
|
|
checkIfProfileCompleted: this.checkIfProfileCompleted,
|
|
|
|
|
showaccountprofileDialog:this.showaccountprofileDialog,
|
|
|
|
|
checkIfProfessionalCertification: this.checkIfProfessionalCertification,
|
|
|
|
|
showProfessionalCertificationDialog: this.showProfessionalCertificationDialog,
|
|
|
|
|
|
|
|
|
|
ShowOnlinePdf:(url)=>this.ShowOnlinePdf(url),
|
|
|
|
|
DownloadFileA:(title,url)=>this.DownloadFileA(title,url),
|
|
|
|
|
DownloadOpenPdf:(type,url)=>this.DownloadOpenPdf(type,url),
|
|
|
|
|
|
|
|
|
|
slowDownload: this.slowDownload,
|
|
|
|
|
showGlobalLoading: this.showGlobalLoading,
|
|
|
|
|
hideGlobalLoading: this.hideGlobalLoading,
|
|
|
|
|
yslslowCheckresults:this.yslslowCheckresults,
|
|
|
|
|
yslslowCheckresultsNo:this.yslslowCheckresultsNo,
|
|
|
|
|
MdifHasAnchorJustScorll:this.MdifHasAnchorJustScorll,
|
|
|
|
|
scrollToAnchor:this.scrollToAnchor
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
// console.log("this.props.mygetHelmetapi");
|
|
|
|
|
// console.log(this.props.mygetHelmetapi);
|
|
|
|
|
// console.log("WrappedComponent");
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// console.log(this.props.match.path);
|
|
|
|
|
var mypath= this.props&&this.props.match&&this.props.match.path;
|
|
|
|
|
return (
|
|
|
|
|
<div className="indexHOC">
|
|
|
|
|
{isRender===true ? <LoginDialog
|
|
|
|
|
Modifyloginvalue={()=>this.hideLoginDialog()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
/> : ""}
|
|
|
|
|
{/* AccountProfile 也用作职业认证 */}
|
|
|
|
|
{AccountProfiletype===true ? <AccountProfile
|
|
|
|
|
hideAccountProfile={()=>this.hideAccountProfile()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/>:""}
|
|
|
|
|
{/*验证是否注册手机邮箱*/}
|
|
|
|
|
{AccountPhoneemailtype===true?<AccountPhoneemail
|
|
|
|
|
hideAccountProfile={()=>this.hideAccountPhoneemailtype()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/>:""}
|
|
|
|
|
{
|
|
|
|
|
mypath&&mypath==="/problemset"?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<SiderBar
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
Headertop={Headertop}/>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 注释掉了1440 影响到了手机屏幕的展示 */}
|
|
|
|
|