feat(dealer): 调整分销商资金明细展示及提现逻辑- 交换订单编号与收益描述的显示位置
- 更新开发环境API基础URL - 新增根据订单号查询分销商资金明细的方法 - 修改订单页面日期状态为月份格式- 将提现费率从16%调整为0%,保留固定费用3元 - 移除提现页面中关于费率的描述文字
This commit is contained in:
@@ -293,7 +293,7 @@ const DealerWithdraw: React.FC = () => {
|
||||
if (!amount || isNaN(parseFloat(amount))) return '0.00'
|
||||
const withdrawAmount = parseFloat(amount)
|
||||
// 提现费率 16% + 3元
|
||||
const feeRate = 0.16
|
||||
const feeRate = 0
|
||||
const fixedFee = 3
|
||||
const totalFee = withdrawAmount * feeRate + fixedFee
|
||||
const expectedAmount = withdrawAmount - totalFee
|
||||
@@ -360,7 +360,7 @@ const DealerWithdraw: React.FC = () => {
|
||||
<ArrowRight className={'text-gray-300'} size={15}/>
|
||||
</View>
|
||||
}/>
|
||||
<Cell title={'预计到账金额'} description={'提现费率 16% +3元'} extra={
|
||||
<Cell title={'预计到账金额'} extra={
|
||||
<View className="flex items-center justify-between gap-1">
|
||||
<Text className={'text-orange-500 px-2 text-lg'}>¥{calculateExpectedAmount(withdrawAmount)}</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user