import { title } from 'process' import MyTable from '../../../components/MyTable' import '../../../styles/home.scss' import { observer } from 'mobx-react' import store from '../../../store' import { useMemo } from 'react' import { ConfigProvider, Tabs } from 'antd' import { http_account_assetsRecords, http_cash } from '../../../http/api' import { getTime } from '../../../utils' const AssetsRecords = () => { const { screenWidth } = store.state const containerWidth = useMemo(() => { if (screenWidth > 1420) { return 1420 - 310 } if (screenWidth > 1000) { return screenWidth - 320 } return screenWidth - 30 }, [screenWidth]) const AccountRecord = () => (
( {getTime(time * 1000)} ) }, { title: '事件', dataIndex: 'event', width: 150 }, { title: '订单', dataIndex: 'order', width: 120 }, { title: '账户', dataIndex: 'account' }, { title: '金额', dataIndex: 'amount', render: (val: string) => ( ${val} ) }, { title: '描述', dataIndex: 'describe' }, ]} />
) const WalletToAsseetRecord = () => (
( {getTime(time * 1000)} ) }, { title: '订单', dataIndex: 'order', }, { title: '描述', dataIndex: 'describe', }, { title: '金额', dataIndex: 'amount' }, { title: '剩余', dataIndex: 'balance', render: (val: string) => ( ${val} ) }, { title: '状态', dataIndex: 'status' }, ]} />
) const AssetToVipRecords = () => (
( {getTime(time * 1000)} ) }, { title: '订单', dataIndex: 'order', }, { title: '描述', dataIndex: 'describe', }, { title: '金额', dataIndex: 'amount' }, { title: '剩余', dataIndex: 'balance', render: (val: string) => ( ${val} ) }, { title: '状态', dataIndex: 'status' }, ]} />
) const AssetToWalletRecords = () => (
( {getTime(time * 1000)} ) }, { title: '订单', dataIndex: 'order', }, { title: '描述', dataIndex: 'describe', }, { title: '金额', dataIndex: 'amount' }, { title: '剩余', dataIndex: 'balance', render: (val: string) => ( ${val} ) }, { title: '状态', dataIndex: 'status' }, ]} />
) return (
账单记录
资金账户', children: WalletToAsseetRecord(), }, { key: '3', label: '现金钱包->其他会员', children: AssetToVipRecords(), }, { key: '4', label: '资产账户->现金钱包', children: AssetToWalletRecords(), } ]} />
) } export default observer(AssetsRecords)