|
|
@ -490,6 +490,13 @@ class RealNameCertificationModal extends Component{
|
|
|
|
action: this.props.current_user ? `${getUploadActionUrl()}` : '',
|
|
|
|
action: this.props.current_user ? `${getUploadActionUrl()}` : '',
|
|
|
|
className: 'idPic-uploader',
|
|
|
|
className: 'idPic-uploader',
|
|
|
|
onChange: this.handleChange2,
|
|
|
|
onChange: this.handleChange2,
|
|
|
|
|
|
|
|
beforeUpload: (file) => {
|
|
|
|
|
|
|
|
const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png' || file.type === 'image/jpg' || file.type === 'image/bmp';
|
|
|
|
|
|
|
|
if (!isJpgOrPng) {
|
|
|
|
|
|
|
|
this.props.showNotification('请上传正确文件格式');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return isJpgOrPng;
|
|
|
|
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// form合并了
|
|
|
|
// form合并了
|
|
|
@ -740,7 +747,7 @@ class RealNameCertificationModal extends Component{
|
|
|
|
<img src={`${certification == 1 ? authImg : jobImg}`} alt="avatar" style={{ maxHeight: '110px'}}/>
|
|
|
|
<img src={`${certification == 1 ? authImg : jobImg}`} alt="avatar" style={{ maxHeight: '110px'}}/>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<Dragger {...uploadProps2}
|
|
|
|
<Dragger {...uploadProps2}
|
|
|
|
accept=".png,.jpg,.bmp"
|
|
|
|
accept=".png,.jpg,.bmp,.jpeg"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{imageUrl2 ?
|
|
|
|
{imageUrl2 ?
|
|
|
|
// <a href={imageUrl2} target="_blank" title="点击重新上传图片"></a>
|
|
|
|
// <a href={imageUrl2} target="_blank" title="点击重新上传图片"></a>
|
|
|
|