资料完善

dev_cs_new
hjm 6 years ago
parent 7009495d4f
commit 09b893c86d

@ -659,8 +659,8 @@ submittojoinclass=(value)=>{
{AccountProfiletype===true?<AccountProfile {AccountProfiletype===true?<AccountProfile
hideAccountProfile={()=>this.hideAccountProfile()} hideAccountProfile={()=>this.hideAccountProfile()}
{...this.state}
{...this.props} {...this.props}
{...this.state}
/>:""} />:""}
<a href="/" className={"fl mr60 ml25"}> <a href="/" className={"fl mr60 ml25"}>
<img alt="高校智能化教学与实训平台" className="logoimg" src={getImageUrl("images/educoder/headNavLogo.png?1526520218")}></img> <img alt="高校智能化教学与实训平台" className="logoimg" src={getImageUrl("images/educoder/headNavLogo.png?1526520218")}></img>

@ -10,6 +10,8 @@ import axios from 'axios';
import './TPMIndex.css' import './TPMIndex.css'
import LoginDialog from '../login/LoginDialog'; import LoginDialog from '../login/LoginDialog';
import AccountProfile from '../user/AccountProfile';
import Trialapplication from "../login/Trialapplication"; import Trialapplication from "../login/Trialapplication";
// import "antd/dist/antd.css"; // import "antd/dist/antd.css";
// import '../../css/educoder/edu-common.css' // import '../../css/educoder/edu-common.css'
@ -76,7 +78,8 @@ export function TPMIndexHOC(WrappedComponent) {
Footerdown:undefined, Footerdown:undefined,
coursedata: {}, coursedata: {},
isRender: false isRender: false,
AccountProfiletype: false
} }
} }
@ -300,11 +303,26 @@ export function TPMIndexHOC(WrappedComponent) {
isRender: true isRender: true
}) })
} }
checkIfLogin = () => { checkIfLogin = () => {
return this.state.current_user && this.state.current_user.login != '' return this.state.current_user && this.state.current_user.login != ''
} }
hideAccountProfile = () => {
this.setState({
hideAccountProfile: false
})
}
showProfileCompleteDialog = () => {
this.setState({
hideAccountProfile: true
})
}
checkIfProfileCompleted = () => {
return this.state.current_user && this.state.current_user.profile_completed
}
render() { render() {
let{Headertop,Footerdown, isRender}=this.state; let{Headertop,Footerdown, isRender, AccountProfiletype}=this.state;
const common = { const common = {
isSuperAdmin:this.isSuperAdmin, isSuperAdmin:this.isSuperAdmin,
isAdminOrCreator:this.isAdminOrCreator, isAdminOrCreator:this.isAdminOrCreator,
@ -319,6 +337,8 @@ export function TPMIndexHOC(WrappedComponent) {
showLoginDialog: this.showLoginDialog, showLoginDialog: this.showLoginDialog,
checkIfLogin: this.checkIfLogin, checkIfLogin: this.checkIfLogin,
showProfileCompleteDialog: this.showProfileCompleteDialog,
checkIfProfileCompleted: this.checkIfProfileCompleted,
} }
return ( return (
<div> <div>
@ -327,6 +347,11 @@ export function TPMIndexHOC(WrappedComponent) {
{...this.state} {...this.state}
{...this.props} {...this.props}
/> : ""} /> : ""}
{AccountProfiletype===true ? <AccountProfile
hideAccountProfile={()=>this.hideAccountProfile()}
{...this.state}
{...this.props}
/>:""}
<SiderBar Headertop={Headertop}/> <SiderBar Headertop={Headertop}/>
{/* 注释掉了1440 影响到了手机屏幕的展示 */} {/* 注释掉了1440 影响到了手机屏幕的展示 */}
<style>{ <style>{

Loading…
Cancel
Save