✨ feat(价格对比):价格一样的情况下不显示原价
This commit is contained in:
parent
662617b5ac
commit
a3a071bc84
@ -247,6 +247,7 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
|
||||
}, [])
|
||||
const Rows = ({ id, index, style, data }: any) => {
|
||||
const item = data[index]
|
||||
console.log(item, 6666)
|
||||
return (
|
||||
<>
|
||||
{(item && (
|
||||
@ -258,7 +259,7 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
|
||||
<View className={styles.title}>{formatHashTag(item.code, item.name)}</View>
|
||||
{/* {selectIndex == 0 && <View className={styles.weight_error}>空差:{formatWeightDiv(item.weight_error)}kg</View>} */}
|
||||
<View className={styles.flexBox}>
|
||||
{selectIndex === 0 && <View className={styles.numone}>{formatOriginalPrice(item)}</View>}
|
||||
{(selectIndex === 0 && item.bulk_price !== item.last_bulk_price) && <View className={styles.numone}>{formatOriginalPrice(item)}</View>}
|
||||
<View className={styles.num}>{formatPrice(item)}</View>
|
||||
</View>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user