dev_tj
杨树明 6 years ago
parent 9c4bd37ea2
commit 68fa947dd2

@ -42,7 +42,7 @@ if (isDev) {
// 老师 // 老师
//debugType="teacher"; //debugType="teacher";
// 学生 // 学生
//debugType="student"; debugType="student";
function railsgettimes(proxy) { function railsgettimes(proxy) {

@ -80,7 +80,7 @@ class MemoDetailMDEditor extends Component {
return return
} }
if(this.props.checkIfProfileCompleted()===false){ if(this.props.checkIfProfileCompleted()===false){
this.props.showhideAccountPhoneemailDialog() this.props.showaccountprofileDialog()
return return
} }
const content = this.commentMDEditor.getValue(); const content = this.commentMDEditor.getValue();

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

Loading…
Cancel
Save