|
|
|
@ -396,7 +396,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fetchUser = () => {
|
|
|
|
|
let url = `/users/get_user_info.json`
|
|
|
|
|
let courseId;
|
|
|
|
@ -590,6 +590,17 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
checkIfProfileCompleted = () => {
|
|
|
|
|
return this.state.current_user && this.state.current_user.profile_completed
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
showaccountprofileDialog = () => {
|
|
|
|
|
this.dialogObj = {
|
|
|
|
|
content: '您需要去完成您的个人资料,才能使用此功能',
|
|
|
|
|
okText: '立即完成',
|
|
|
|
|
okHref: '/account/profile'
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountProfiletype: true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
showProfessionalCertificationDialog = () => {
|
|
|
|
|
this.dialogObj = {
|
|
|
|
|
content: '您需要去完成您的职业认证,才能使用此功能',
|
|
|
|
@ -713,6 +724,7 @@ export function TPMIndexHOC(WrappedComponent) {
|
|
|
|
|
showProfileCompleteDialog: this.showProfileCompleteDialog,
|
|
|
|
|
showhideAccountPhoneemailDialog:this.showhideAccountPhoneemailDialog,
|
|
|
|
|
checkIfProfileCompleted: this.checkIfProfileCompleted,
|
|
|
|
|
showaccountprofileDialog:this.showaccountprofileDialog,
|
|
|
|
|
checkIfProfessionalCertification: this.checkIfProfessionalCertification,
|
|
|
|
|
showProfessionalCertificationDialog: this.showProfessionalCertificationDialog,
|
|
|
|
|
|
|
|
|
|