import React from 'react'; import { connect } from 'dva'; import HeaderComponent from './HeaderComponent'; import { Icon, Button,message } from 'antd'; import {getAccountConfirmApi,getComWalletServiceOpenInfo,getComWalletAccount} from '../../../services/api'; @connect(state => ({ global: state.global })) export default class BusinessWallet extends React.Component { constructor(props, context) { super(props, context); this.state = { companyInfo: JSON.parse(window.sessionStorage.getItem('companyInfo'))||this.props.global.companyInfo, // 公司信息 }; } //修改资料--返回第二步,修改开户资料 BackupdateAccontInfo=()=>{ this.props.setStatus(2) } //去认证 onlineCert=()=>{ // debugger console.log(this.state) const obj={comId:this.state.companyInfo.comId};//去认证传递的参数 getAccountConfirmApi(obj).then(res=>{ console.log('res',res) if(res.data&&res.data.redirectParam){ window.open(res.data.redirectParam) } }) } GoCompanyList=async ()=>{ await getComWalletAccount().then(res => {})//先去获取企业钱包账户资料-宏任务同步 getComWalletServiceOpenInfo().then(async res=>{ const { isAuthorize, isCompleteOpen } = res.data; if(isAuthorize==1&&isCompleteOpen==1){//已完成认证 this.props.setStatus(5) }else{ message.warning('未认证,点击"去认证"') } }) } render() { return (