feat(dealer): 调整分销商资金明细展示及提现逻辑- 交换订单编号与收益描述的显示位置

- 更新开发环境API基础URL
- 新增根据订单号查询分销商资金明细的方法
- 修改订单页面日期状态为月份格式- 将提现费率从16%调整为0%,保留固定费用3元
- 移除提现页面中关于费率的描述文字
This commit is contained in:
2025-10-15 01:41:50 +08:00
parent 0deb6c5b8a
commit 7228d50ca7
4 changed files with 355 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ const DealerWithdraw: React.FC = () => {
console.error('获取提现记录失败:', error)
Taro.showToast({
title: '获取提现记录失败',
icon: 'error'
icon: 'none'
})
} finally {
setLoading(false)
@@ -190,7 +190,7 @@ const DealerWithdraw: React.FC = () => {
if (!dealerUser?.userId) {
Taro.showToast({
title: '用户信息获取失败',
icon: 'error'
icon: 'none'
})
return
}
@@ -198,7 +198,7 @@ const DealerWithdraw: React.FC = () => {
if (!bank) {
Taro.showToast({
title: '请选择提现银行卡',
icon: 'error'
icon: 'none'
})
return
}
@@ -211,7 +211,7 @@ const DealerWithdraw: React.FC = () => {
if (isNaN(amount) || amount <= 0) {
Taro.showToast({
title: '请输入有效的提现金额',
icon: 'error'
icon: 'none'
})
return
}
@@ -219,7 +219,7 @@ const DealerWithdraw: React.FC = () => {
if (amount < 100) {
Taro.showToast({
title: '最低提现金额为100元',
icon: 'error'
icon: 'none'
})
return
}
@@ -227,7 +227,7 @@ const DealerWithdraw: React.FC = () => {
if (amount > available) {
Taro.showToast({
title: '提现金额超过可用余额',
icon: 'error'
icon: 'none'
})
return
}
@@ -236,7 +236,7 @@ const DealerWithdraw: React.FC = () => {
if (!bank.bankCard || !bank.bankAccount || !bank.bankName) {
Taro.showToast({
title: '银行卡信息不完整',
icon: 'error'
icon: 'none'
})
return
}
@@ -275,7 +275,7 @@ const DealerWithdraw: React.FC = () => {
console.error('提现申请失败:', error)
Taro.showToast({
title: error.message || '提现申请失败',
icon: 'error'
icon: 'none'
})
} finally {
setSubmitting(false)