feat: add hint for withdraw
This commit is contained in:
parent
4b13eeb938
commit
e6f265350a
@ -10,6 +10,7 @@ import { formatMoney, getPartnerProfitStat } from '@/utils/partner';
|
|||||||
import { navigateTo } from '@/utils/route';
|
import { navigateTo } from '@/utils/route';
|
||||||
|
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
import Toast from '@/utils/toast';
|
||||||
|
|
||||||
const PREFIX = 'partner-kanban';
|
const PREFIX = 'partner-kanban';
|
||||||
|
|
||||||
@ -79,6 +80,10 @@ export default function PartnerKanban({ simple }: PartnerKanbanProps) {
|
|||||||
setTipOpen(false);
|
setTipOpen(false);
|
||||||
}, []);
|
}, []);
|
||||||
const handleViewWithdraw = useCallback(() => {
|
const handleViewWithdraw = useCallback(() => {
|
||||||
|
if (stats.available < 10 * 1000) {
|
||||||
|
Toast.info('提现金额需大于等于10元');
|
||||||
|
return;
|
||||||
|
}
|
||||||
setWithdrawOpen(true);
|
setWithdrawOpen(true);
|
||||||
}, []);
|
}, []);
|
||||||
const handleWithdrawClose = useCallback(() => {
|
const handleWithdrawClose = useCallback(() => {
|
||||||
|
Loading…
Reference in New Issue
Block a user