diff --git a/es/components/withdraw/create/index.d.ts b/es/components/withdraw/create/index.d.ts index 7883f743..cbdf50b4 100644 --- a/es/components/withdraw/create/index.d.ts +++ b/es/components/withdraw/create/index.d.ts @@ -5,5 +5,6 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps< onNewWithdrawAccount: () => void; onCreateWithdraw: (id: string) => void; onGoToHistory: () => void; + onGoToWaManage: () => void; }>) => React.ReactElement; export default _default; diff --git a/es/components/withdraw/create/index.js b/es/components/withdraw/create/index.js index 6d981716..5f7b4e33 100644 --- a/es/components/withdraw/create/index.js +++ b/es/components/withdraw/create/index.js @@ -10,6 +10,7 @@ export default OakComponent({ onNewWithdrawAccount: () => undefined, onCreateWithdraw: (id) => undefined, onGoToHistory: () => undefined, + onGoToWaManage: () => undefined, }, formData({ features }) { const { accountId, withdrawAccountFilter } = this.props; @@ -220,6 +221,9 @@ export default OakComponent({ onGoToHistoryMp() { const { onGoToHistory } = this.props; onGoToHistory && onGoToHistory(); + }, + onGoToWaManageMp() { + this.props.onGoToWaManage(); } }, }); diff --git a/es/components/withdraw/create/index.xml b/es/components/withdraw/create/index.xml index 64857f0d..d1957b62 100644 --- a/es/components/withdraw/create/index.xml +++ b/es/components/withdraw/create/index.xml @@ -105,6 +105,10 @@ {{t('gotoHistory')}} + + + {{t('gotoWaManage')}} + void; + onGoToWaManage: () => void; }, { setValue: (v: string | number | null) => void; switchHelp: (type: 'method' | 'loss') => void; diff --git a/es/components/withdraw/create/web.js b/es/components/withdraw/create/web.js index 12d9f7f0..f8fcab1a 100644 --- a/es/components/withdraw/create/web.js +++ b/es/components/withdraw/create/web.js @@ -1,12 +1,12 @@ import React from 'react'; import { Button, Input, Result } from 'antd-mobile'; -import { DownOutline, UpOutline, ReceiptOutline } from 'antd-mobile-icons'; +import { DownOutline, UpOutline, ReceiptOutline, BankcardOutline } from 'antd-mobile-icons'; import Styles from './web.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 } = props.data; + 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()}> @@ -85,6 +85,10 @@ export default function render(props) { {t('gotoHistory')} +
+ + {t('gotoWaManage')} +
+
+ {t('gotoWaManage')} +
+
+ + {t('gotoWaManage')} +