Compare commits

..

2 Commits

Author SHA1 Message Date
4d96ca4569 fix(withdraw): 限制单笔提现金额及调整快捷金额选项
- 添加单笔提现金额上限200元的提示和限制逻辑
- 修改快捷金额选项为50、100和200元
- 保证提现金额不超过可用余额的校验逻辑正常运行
2026-04-16 01:05:31 +08:00
daafca1d5d docs(withdraw): 添加单笔提现最高金额限制提示
- 在提现说明中新增第4条提示,说明单笔提现最高金额为200
- 提醒用户注意提现金额限制,避免超额申请
2026-04-16 00:59:15 +08:00

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})
@@ -525,6 +532,7 @@ const DealerWithdraw: React.FC = () => {
1. 1.
2. 2.
3. 3.
4. 200
</Text> </Text>
</View> </View>
</CellGroup> </CellGroup>