fix(withdraw): 限制单笔提现金额及调整快捷金额选项

- 添加单笔提现金额上限200元的提示和限制逻辑
- 修改快捷金额选项为50、100和200元
- 保证提现金额不超过可用余额的校验逻辑正常运行
This commit is contained in:
2026-04-16 01:05:31 +08:00
parent daafca1d5d
commit 4d96ca4569

View File

@@ -308,6 +308,13 @@ const DealerWithdraw: React.FC = () => {
// return // return
} }
if (amount > 200) {
Taro.showToast({
title: '单笔最多提现200元',
icon: 'none'
})
return
}
if (amount > available) { if (amount > available) {
Taro.showToast({ Taro.showToast({
title: '提现金额超过可用余额', title: '提现金额超过可用余额',
@@ -413,7 +420,7 @@ const DealerWithdraw: React.FC = () => {
} }
} }
const quickAmounts = ['100', '300', '500', '1000'] const quickAmounts = ['50', '100', '200']
const setQuickAmount = (amount: string) => { const setQuickAmount = (amount: string) => {
formRef.current?.setFieldsValue({amount}) formRef.current?.setFieldsValue({amount})