feat: 更新售后退运费展示

This commit is contained in:
qugao
2025-08-08 15:09:48 +08:00
parent 42c5915f50
commit cc035910de
2 changed files with 4 additions and 3 deletions

View File

@@ -175,5 +175,6 @@ export const TRADE_AFTER_SALES_ITEM = {
evidencePic: 'evidence_pic',
createTime: ({ create_time }) => formatDateTime(create_time * 1000),
returnType: 'return_type',
freight: ({ freight }) => freight / 100
freight: ({ freight }) => freight / 100,
refund_freight_amount: ({ refund_freight_amount }) => refund_freight_amount / 100
}

View File

@@ -224,9 +224,9 @@ function TradeAfterSaleDetail(props) {
<SpCell title='退积分' value={<SpPrice value={info?.refund_info?.refundPoint || info?.refundPoint} />}></SpCell>
</View>
{
info?.freight > 0 &&
info?.refund_freight_amount > 0 &&
<View className='refund-point'>
<SpCell title='退运费' value={info?.freight}></SpCell>
<SpCell title='退运费' value={info?.refund_freight_amount}></SpCell>
</View>
}
</View>