import React, { Component } from 'react'; import { connect } from 'dva'; import { Tabs, Alert } from 'antd'; import Infomation from './Information'; import Authentication from './Authentication'; import Invoice from './Invoice'; import Insurance from './InsuranceBasic'; import { getCertificationData } from '../../../services/api'; import styles from './Company.less'; const { TabPane } = Tabs; @connect(state => ({ profile: state.profile, industryType: state.global.companyInfo.industryType })) export default class Company extends Component { constructor(props, context) { super(props, context); this.state = { status: '0' //认证是否通过 }; } componentDidMount() { // fakeChartData1().then((data) => { // console.log(data); // }); /* const { dispatch } = this.props; dispatch({ type: 'profile/fetchBasic', }); */ // console.log('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>',this.child); // getCertificationData({}).then((data) => { // console.log('公司状态公司状态公司状态' + data); // if (data.data) { // console.log('123' + JSON.stringify(data.data)); // this.setState({ // status: data.data.authStatus, // }); // } // }); } handleSubmit = e => { e.preventDefault(); this.props.form.validateFieldsAndScroll((err, values) => { if (!err) { this.props.dispatch({ type: 'form/submitRegularForm', payload: values }); } }); }; callback = key => { console.log(key); this.setState({ status: '0' }); }; changeStatus = () => { this.setState({ status: '1' }); }; goToDeclare = () => { this.props.history.push('/PoliceDeclare/DeclarationList'); } render() { let showStatus = '认证信息'; // if (this.state.status === '0') { // showStatus = ( //