|
|
|
@ -11,7 +11,7 @@ import { Spin } from 'antd';
|
|
|
|
|
import './TPMIndex.css';
|
|
|
|
|
import LoginDialog from '../login/LoginDialog';
|
|
|
|
|
import AccountProfile from '../user/AccountProfile';
|
|
|
|
|
|
|
|
|
|
import AccountPhoneemail from '../user/AccountPhoneemail';
|
|
|
|
|
import Trialapplication from "../login/Trialapplication";
|
|
|
|
|
// import "antd/dist/antd.css";
|
|
|
|
|
// import '../../css/educoder/edu-common.css'
|
|
|
|
@ -80,7 +80,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
|
|
|
|
|
isRender: false,
|
|
|
|
|
AccountProfiletype: false,
|
|
|
|
|
|
|
|
|
|
AccountPhoneemailtype:false,
|
|
|
|
|
globalLoading: false,
|
|
|
|
|
dataquerys:{},
|
|
|
|
|
isloginCancel:undefined,
|
|
|
|
@ -532,6 +532,17 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
AccountProfiletype: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
showhideAccountPhoneemailDialog = () => {
|
|
|
|
|
this.dialogObj = {}
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountPhoneemailtype: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
hideAccountPhoneemailtype=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountPhoneemailtype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//验证是否完善资料
|
|
|
|
|
checkIfProfileCompleted = () => {
|
|
|
|
|
return this.state.current_user && this.state.current_user.profile_completed
|
|
|
|
@ -625,7 +636,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let{Headertop,Footerdown, isRender, AccountProfiletype,mygetHelmetapi}=this.state;
|
|
|
|
|
let{Headertop,Footerdown, isRender, AccountProfiletype,AccountPhoneemailtype}=this.state;
|
|
|
|
|
const common = {
|
|
|
|
|
isSuperAdmin:this.isSuperAdmin,
|
|
|
|
|
isAdminOrCreator:this.isAdminOrCreator,
|
|
|
|
@ -645,6 +656,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
showLoginDialog: this.showLoginDialog,
|
|
|
|
|
checkIfLogin: this.checkIfLogin,
|
|
|
|
|
showProfileCompleteDialog: this.showProfileCompleteDialog,
|
|
|
|
|
showhideAccountPhoneemailDialog:this.showhideAccountPhoneemailDialog,
|
|
|
|
|
checkIfProfileCompleted: this.checkIfProfileCompleted,
|
|
|
|
|
checkIfProfessionalCertification: this.checkIfProfessionalCertification,
|
|
|
|
|
showProfessionalCertificationDialog: this.showProfessionalCertificationDialog,
|
|
|
|
@ -677,6 +689,13 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/>:""}
|
|
|
|
|
{/*验证是否注册手机邮箱*/}
|
|
|
|
|
{AccountPhoneemailtype===true?<AccountPhoneemail
|
|
|
|
|
hideAccountProfile={()=>this.hideAccountPhoneemailtype()}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.dialogObj}
|
|
|
|
|
/>:""}
|
|
|
|
|
<SiderBar
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|