🐞 fix(ID1001403 面料详情页,价格与上一次价格相等,有的显示涨,有的显示跌):
This commit is contained in:
parent
5b28db86f6
commit
d1d470ce66
@ -343,7 +343,7 @@ const Details = (props: Params) => {
|
|||||||
</View>
|
</View>
|
||||||
<View className={styles.item_name}>{item.name}</View>
|
<View className={styles.item_name}>{item.name}</View>
|
||||||
<View className={styles.bulk_price}>{formatPriceDiv(item.bulk_price)}/Kg{
|
<View className={styles.bulk_price}>{formatPriceDiv(item.bulk_price)}/Kg{
|
||||||
item.length_cut_price ? (item.bulk_price > item.length_cut_price) ? <Text style={{ color: 'red', marginLeft: '10rpx' }}>↑</Text> : <Text style={{ color: 'green', marginLeft: '10rpx' }}>↓</Text> : null
|
(currentDialogDetail.current!.last_bulk_price && currentDialogDetail.current!.bulk_price !== currentDialogDetail.current!.last_bulk_price) ? (item.bulk_price > item.last_bulk_price) ? <Text style={{ color: 'red', marginLeft: '10rpx' }}>↑</Text> : <Text style={{ color: 'green', marginLeft: '10rpx' }}>↓</Text> : null
|
||||||
}</View>
|
}</View>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
@ -416,7 +416,7 @@ const Details = (props: Params) => {
|
|||||||
<View className={styles.productColorDialog_price}>
|
<View className={styles.productColorDialog_price}>
|
||||||
<Text>¥{formatPriceDiv(currentDialogDetail.current!.bulk_price)}/KG</Text>
|
<Text>¥{formatPriceDiv(currentDialogDetail.current!.bulk_price)}/KG</Text>
|
||||||
{
|
{
|
||||||
currentDialogDetail.current!.length_cut_price ? (currentDialogDetail.current!.bulk_price > currentDialogDetail.current!.length_cut_price) ? <Text style={{ color: 'red', marginLeft: '10rpx' }}>↑</Text> : <Text style={{ color: 'green', marginLeft: '10rpx' }}>↓</Text> : null
|
(currentDialogDetail.current!.last_bulk_price && currentDialogDetail.current!.bulk_price !== currentDialogDetail.current!.last_bulk_price) ? (currentDialogDetail.current!.bulk_price > currentDialogDetail.current!.last_bulk_price) ? <Text style={{ color: 'red', marginLeft: '10rpx' }}>↑</Text> : <Text style={{ color: 'green', marginLeft: '10rpx' }}>↓</Text> : null
|
||||||
}
|
}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user