fix: 修复积分订单实付展示错误

This commit is contained in:
qg
2025-08-07 13:23:11 +08:00
parent ca0c71e4b1
commit 42c5915f50
3 changed files with 3 additions and 3 deletions

View File

@@ -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} />

View File

@@ -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>
)}

View File

@@ -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} />
}