1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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({
- getInitialState() {
- return {
- loading: false
- };
- },
- handleSubmit() {
- this.setState({
- loading: true
- });
- $.ajax({
- method: "POST",
- dataType: "json",
- crossDomain: false,
- url: globalConfig.context + "/api/user/orgNextPro",
- data: {
- process: 4
- }
- }).done(function (data) {
- if (!data.error.length) {
- message.success('保存成功!');
- this.props.changeStep(5);
- } else {
- message.warning(data.error[0].message);
- }
- }.bind(this)).always(function () {
- this.setState({
- loading: false
- });
- }.bind(this));
- },
- // componentWillMount() {
- // $.ajax({
- // method: "get",
- // dataType: "json",
- // url: globalConfig.context + "/api/user/orgProcess",
- // success: function (data) {
- // if (data.data) {
- // this.setState({
- // bankCardNumber : data.data.bankCardNumber,
- // auditStatus : data.data.auditStatus
- // });
- // };
- // }.bind(this),
- // }).done(function (data) {
- // if (data.error.length) {
- // message.warning(data.error[0].message);
- // };
- // this.setState({
- // loading:false
- // });
- // }.bind(this));
- // },
- render() {
- const FormItem = Form.Item;
- const { getFieldDecorator } = this.props.form;
- const formItemLayout = {
- labelCol: { span: 4 },
- wrapperCol: { span: 12 },
- };
- const _me = this;
- return (
- <Spin spinning={this.state.loading} className="certify-spin">
- <Form horizontal onSubmit={this.handleSubmit} className="certify-form">
- <FormItem wrapperCol={{ span: 12, offset: 4 }}>
- <p className="certify-title">信息提交成功</p>
- </FormItem>
- <FormItem wrapperCol={{ span: 18, offset: 4 }}>
- <span>
- 认证系统将会在1-2个工作日内审核您的认证信息,请您耐心等待!
- </span>
- </FormItem>
- </Form >
- </Spin >
- );
- },
- }));
- export default Content;
|