import React, { Component } from "react"; import { Tabs, Button, Card, Col, Row, Modal, } from "antd"; import $ from "jquery/src/ajax"; import ShowModalDiv from "@/showModal.jsx"; import { ShowModal } from "@/tools"; import "./index.less" import LaunchInvest from "../component/launchinvest"; // 发起投资 import InvestmentList from "../component/investmentlist"; // 投资明细 import Payment from "../component/payment"; // 发起付款 const TabPane = Tabs.TabPane; // 资金管理 class FundManagement extends Component { constructor(props) { super(props); this.state = { visible: "", navList: [], details: {}, type: 0, }; this.onCancel = this.onCancel.bind(this); } componentWillMount() { this.getData() } onCancel(e) { if (e) { this.getData() } this.setState({ visible: "", }) } getData() { const { type } = this.state $.ajax({ method: "get", dataType: "json", crossDomain: false, url: globalConfig.context + "/api/admin/amb/getMyambDtails", data: {}, success: function (data) { ShowModal(this); if (!data.data) { if (data.error && data.error.length) { message.warning(data.error[0].message); } } else { this.setState({ navList: data.data, details: data.data[type] || {}, }); } }.bind(this), }).always( function () { }.bind(this) ); } render() { const { visible, navList, details } = this.state const gridStyle1 = { height: '80px', background: 'green', fontSize: '20px', fontWeight: 'bold', color: '#fff', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', textAlign: 'center', }; const gridStyle2 = { height: '80px', background: 'green', fontSize: '20px', color: '#fff', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', textAlign: 'center', }; const gridStyle3 = { height: '170px', background: 'rgba(255,102,0,1)', fontSize: '20px', color: '#fff', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', textAlign: 'center', }; const buttonstyle = { fontSize: '18px', display: 'block', margin: ' 0 auto', } return (