mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
fix: 修复积分订单实付展示错误
This commit is contained in:
@@ -32,7 +32,7 @@ function SpTradeItem(props) {
|
||||
{itemName}
|
||||
</View>
|
||||
{
|
||||
orderClass == 'pointsmall' && <Text>{`${pointName}: ${itemPoint}`} {price?<Text>+<SpPrice value={price} /></Text>: null}</Text>
|
||||
orderClass == 'pointsmall' && <Text>{`${pointName}: ${itemPoint}`} {price >0?<Text>+<SpPrice value={price} /></Text>: null}</Text>
|
||||
}
|
||||
{
|
||||
orderClass == 'normal' && <SpPrice value={price} />
|
||||
|
||||
@@ -99,7 +99,7 @@ function CompTradeItem(props) {
|
||||
<Text className='num'>{`共${totalNum}件`}</Text>
|
||||
<Text>
|
||||
<Text className='label'>{pointName}</Text>
|
||||
<Text className='point-value' style='font-size: 20px;'>{point}</Text> {totalFee &&<Text>+<SpPrice value={totalFee} size={38} /></Text>}
|
||||
<Text className='point-value' style='font-size: 20px;'>{point}</Text> {totalFee >0 &&<Text>+<SpPrice value={totalFee} size={38} /></Text>}
|
||||
</Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
@@ -730,7 +730,7 @@ function TradeDetail(props) {
|
||||
title='实付'
|
||||
value={(() => {
|
||||
if (info?.orderClass === 'pointsmall') {
|
||||
return `${pointName} ${info?.point}${info?.itemFee ? `+¥${Number(info?.itemFee).toFixed(2)}` : ''}`
|
||||
return `${pointName} ${info?.point}${info?.totalFee >0 ? `+¥${Number(info?.totalFee).toFixed(2)}` : ''}`
|
||||
} else {
|
||||
return <SpPrice value={info?.totalFee} size={28} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user