feat: add hint for withdraw

This commit is contained in:
eleanor.mao 2025-05-18 23:46:23 +08:00
parent 4b13eeb938
commit e6f265350a

View File

@ -10,6 +10,7 @@ import { formatMoney, getPartnerProfitStat } from '@/utils/partner';
import { navigateTo } from '@/utils/route';
import './index.less';
import Toast from '@/utils/toast';
const PREFIX = 'partner-kanban';
@ -79,6 +80,10 @@ export default function PartnerKanban({ simple }: PartnerKanbanProps) {
setTipOpen(false);
}, []);
const handleViewWithdraw = useCallback(() => {
if (stats.available < 10 * 1000) {
Toast.info('提现金额需大于等于10元');
return;
}
setWithdrawOpen(true);
}, []);
const handleWithdrawClose = useCallback(() => {