【类 型】:fix

【原  因】:
【过  程】:商品详情页 sku单价高的 在差价前添加一个正号
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
sszdot 2024-12-12 17:10:01 +08:00
parent 134e9cbe6e
commit 88610e5b43

View File

@ -30,9 +30,12 @@
<view class="fz28 tc l-h-18 m-t-12">{{sku.name}}</view>
<view class="flex1 flex msb mac">
<view class="m-l-12 fcm">
<text v-if="priceDifference(sku.id)!==0">
<text v-if="priceDifference(sku.id)<0">
{{priceDifference(sku.id) | formatPrice}}
</text>
<text v-else-if="priceDifference(sku.id)>0">
+{{priceDifference(sku.id) | formatPrice}}
</text>
</view>
<view class="border rad-c m-r-12" :class="isSel(sku.id)?'border-m bg-m':''"
style="width: 40rpx;height: 40rpx;">