audit.jsx 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. import React from 'react';
  2. import { Input, Button, Form, Icon, Spin, message, } from 'antd';
  3. import './certify.less';
  4. import ajax from 'jquery/src/ajax/xhr.js'
  5. import $ from 'jquery/src/ajax';
  6. const Content = Form.create()(React.createClass({
  7. getInitialState() {
  8. return {
  9. loading: false
  10. };
  11. },
  12. handleSubmit() {
  13. this.setState({
  14. loading: true
  15. });
  16. $.ajax({
  17. method: "POST",
  18. dataType: "json",
  19. crossDomain: false,
  20. url: globalConfig.context + "/api/user/orgNextPro",
  21. data: {
  22. process: 4
  23. }
  24. }).done(function (data) {
  25. if (!data.error.length) {
  26. message.success('保存成功!');
  27. this.props.changeStep(5);
  28. } else {
  29. message.warning(data.error[0].message);
  30. }
  31. }.bind(this)).always(function () {
  32. this.setState({
  33. loading: false
  34. });
  35. }.bind(this));
  36. },
  37. // componentWillMount() {
  38. // $.ajax({
  39. // method: "get",
  40. // dataType: "json",
  41. // url: globalConfig.context + "/api/user/orgProcess",
  42. // success: function (data) {
  43. // if (data.data) {
  44. // this.setState({
  45. // bankCardNumber : data.data.bankCardNumber,
  46. // auditStatus : data.data.auditStatus
  47. // });
  48. // };
  49. // }.bind(this),
  50. // }).done(function (data) {
  51. // if (data.error.length) {
  52. // message.warning(data.error[0].message);
  53. // };
  54. // this.setState({
  55. // loading:false
  56. // });
  57. // }.bind(this));
  58. // },
  59. render() {
  60. const FormItem = Form.Item;
  61. const { getFieldDecorator } = this.props.form;
  62. const formItemLayout = {
  63. labelCol: { span: 4 },
  64. wrapperCol: { span: 12 },
  65. };
  66. const _me = this;
  67. return (
  68. <Spin spinning={this.state.loading} className="certify-spin">
  69. <Form horizontal onSubmit={this.handleSubmit} className="certify-form">
  70. <FormItem wrapperCol={{ span: 12, offset: 4 }}>
  71. <p className="certify-title">信息提交成功</p>
  72. </FormItem>
  73. <FormItem wrapperCol={{ span: 18, offset: 4 }}>
  74. <span>
  75. 认证系统将会在1-2个工作日内审核您的认证信息,请您耐心等待!
  76. </span>
  77. </FormItem>
  78. </Form >
  79. </Spin >
  80. );
  81. },
  82. }));
  83. export default Content;