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

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

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

@ -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,

Loading…
Cancel
Save