|
|
|
@ -2,7 +2,7 @@ import React, { Component } from "react";
|
|
|
|
|
import { message, Icon, Input, Form, Upload} from "antd";
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import ModalWrapper from "../../courses/common/ModalWrapper"
|
|
|
|
|
import { City, getUploadActionUrl, getImageUrl, ImageLayerHook } from 'educoder'
|
|
|
|
|
import { City, getUploadActionUrl, getImageUrl, ImageLayerHook, getUploadActionUrlOfAuth } from 'educoder'
|
|
|
|
|
import '../account/common.css'
|
|
|
|
|
|
|
|
|
|
import authImg from '../../../images/account/auth.png'
|
|
|
|
@ -125,14 +125,14 @@ class RealNameCertificationModal extends Component{
|
|
|
|
|
const { moduleName } = this.props
|
|
|
|
|
const { getFieldDecorator } = this.props.form;
|
|
|
|
|
let {certification}=this.props;
|
|
|
|
|
|
|
|
|
|
// /api/users/accounts/${this.props.current_user.login}/auth_attachment.json
|
|
|
|
|
const uploadProps2 = {
|
|
|
|
|
name: 'image',
|
|
|
|
|
data:{type:certification == 1 ? "real_name" : "professional"},
|
|
|
|
|
multiple: true,
|
|
|
|
|
showUploadList: false,
|
|
|
|
|
// https://newweb.educoder.net
|
|
|
|
|
action: this.props.current_user ? `/api/users/accounts/${this.props.current_user.login}/auth_attachment.json` : '',
|
|
|
|
|
action: this.props.current_user ? `${getUploadActionUrlOfAuth(this.props.current_user.login)}` : '',
|
|
|
|
|
className: 'idPic-uploader',
|
|
|
|
|
onChange: this.handleChange2,
|
|
|
|
|
};
|
|
|
|
|