import React from 'react'; import { Button, Alert, InputNumber, Result } from 'antd'; import { DownOutlined, UpOutlined } from '@ant-design/icons'; import Styles from './web.pc.module.less'; import classNames from 'classnames'; import WithDrawAccountPicker from '../../withdrawAccount/list'; import WithdrawDisplay from '../display'; export default function render(props) { const { account, value, refundAmount, manualAmount, avail, availYuan, valueYuan, manualAmountYuan, refundAmountYuan, showMethodHelp, showLossHelp, executale, withdrawCreate, withdrawable, withdrawLossText, chooseWa, waFilter, userId, onGoToHistory, onGoToWaManage } = props.data; const { t, setValue, switchHelp, createWithdrawData, restartAll, createWithdraw, goBack, pickWithdrawChannel } = props.methods; if (!withdrawable) { return ( goBack()}> {t('common::back')} }/>); } if (chooseWa && waFilter) { return ( pickWithdrawChannel(id)} onCancel={() => restartAll()} entity="user" entityId={userId}/>); } if (withdrawCreate) { return (
); } if (account) { return (
{t('label')}
setValue(value)} placeholder={t('placeholder')}/>
{t('tips.1-1')} {avail > 0 ? setValue(availYuan)}> {availYuan} : {availYuan}} {t('tips.1-2')}
{refundAmount > 0 &&
{t('tips.2-1')} {refundAmountYuan} {t('tips.2-2')}
}
{t('tips.3-1')} {manualAmountYuan} {t('tips.3-2')}
{showMethodHelp && } {showLossHelp && }
{t('gotoHistory')}
{t('gotoWaManage')}
); } }