|
|
|
@ -125,24 +125,18 @@ class RealNameCertificationModal extends Component{
|
|
|
|
|
const { course_lists, checkBoxValues, searchValue, loading, imageUrl, imageUrl2 } = this.state
|
|
|
|
|
const { moduleName } = this.props
|
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
|
const uploadProps = {
|
|
|
|
|
name: 'file',
|
|
|
|
|
multiple: true,
|
|
|
|
|
showUploadList: false,
|
|
|
|
|
action: getUploadActionUrl(),
|
|
|
|
|
className: 'idPic-uploader first_uploader',
|
|
|
|
|
onChange: this.handleChange,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
let {certification}=this.props;
|
|
|
|
|
|
|
|
|
|
const uploadProps2 = {
|
|
|
|
|
name: 'file',
|
|
|
|
|
name: 'image',
|
|
|
|
|
data:{type:certification == 1 ? "real_name" : "professional"},
|
|
|
|
|
multiple: true,
|
|
|
|
|
showUploadList: false,
|
|
|
|
|
action: getUploadActionUrl(),
|
|
|
|
|
// https://newweb.educoder.net
|
|
|
|
|
action: `/api/users/accounts/${this.props.current_user.login}/auth_attachment.json`,
|
|
|
|
|
className: 'idPic-uploader',
|
|
|
|
|
onChange: this.handleChange2,
|
|
|
|
|
};
|
|
|
|
|
let {certification}=this.props;
|
|
|
|
|
return(
|
|
|
|
|
<ModalWrapper
|
|
|
|
|
ref="modalWrapper"
|
|
|
|
|