bug(custom): feature/ECX-7240

This commit is contained in:
zhangjing1
2025-12-01 17:55:16 +08:00
parent 2e0098a7a7
commit dff514b55a
2 changed files with 3 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ export const TRADE_ITEM = {
},
freightFee: ({ freight_fee }) => freight_fee / 100,
itemFee: ({ item_fee_new }) => item_fee_new / 100,
freightType: 'freight_type',
itemPoint: 'item_point',
isLogistics: ({ is_logistics }) => is_logistics == '1',
items: ({ items }) => {

View File

@@ -721,14 +721,14 @@ function TradeDetail(props) {
value={(() => {
if (info?.orderClass === 'pointsmall') {
return `${pointName} ${info?.itemPoint}${
info?.itemFee ? `${Number(info?.itemFee).toFixed(2)}` : ''
info?.itemFee ? `+${info?.freightType == 'point' ? `${pointName} ${info?.freightFee*100}` : `+¥${Number(info?.itemFee).toFixed(2)}`}` : ''
}`
} else {
return <SpPrice value={info?.itemFee} size={28} />
}
})()}
/>
<SpCell title='运费' value={<SpPrice value={info?.freightFee} size={28} />} />
<SpCell title='运费' value={info?.freightType == 'point'?`${pointName} ${info?.freightFee*100}`:<SpPrice value={info?.freightFee} size={28} />} />
<SpCell
title='促销'
value={<SpPrice value={info?.promotionDiscount} size={28} />}