import React from 'react'; import { Input, Button, Form, Icon, Spin, message, } from 'antd'; import './certify.less'; import ajax from 'jquery/src/ajax/xhr.js' import $ from 'jquery/src/ajax'; const Content = Form.create()(React.createClass({ getData() { this.setState({ loading: true }); $.ajax({ method: "get", dataType: "json", url: globalConfig.context + "/api/user/userPro", success: function (data) { if (data.data) { this.setState({ username: data.data.username, idNumber: data.data.idNumber, contactMobile: data.data.contactMobile, bankName: data.data.bankName, bankAccount: data.data.bankAccount, bankCardNumber: data.data.bankCardNumber, positiveIdUrl: data.data.positiveIdUrl, oppositeIdUrl: data.data.oppositeIdUrl }); }; }.bind(this), }).done(function (data) { if (data.error && data.error.length) { message.warning(data.error[0].message); }; }.bind(this)).always(function () { this.setState({ loading: false }); }.bind(this)); }, getInitialState() { return { loading: false }; }, handleSubmit() { this.setState({ loading: true }); $.ajax({ method: "POST", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/user/userNextPro", data: { process: 3 } }).done(function (data) { if (!data.error.length) { message.success('保存成功!'); this.props.changeStep(4); } else { message.warning(data.error[0].message); } }.bind(this)).always(function () { this.setState({ loading: false }); }.bind(this)); }, componentWillMount() { this.getData(); }, changeStep() { this.props.changeStep(1); }, render() { const FormItem = Form.Item; const { getFieldDecorator } = this.props.form; const formItemLayout = { labelCol: { span: 4 }, wrapperCol: { span: 12 }, }; const _me = this; return (

请确认个人信息

{this.state.username} {this.state.idNumber}
提醒:银行卡号、身份证号码,认证成功之前,最多只能申请认证3次, 认证成功后,不能再申请认证。 ); }, })); export default Content;