fix:金额显示
This commit is contained in:
1 parent
41e9863ab0
commit
b38e93ebf6
3 files changed
+10
-5
No files matched your search
@@ -22,10 +22,13 @@
|
||||
/>
|
||||
<view class="flex-1 overflow-hidden">
|
||||
<view class="sub-text-32 truncate">{{ state.goodsDetail.productName }}</view>
|
||||
<view class="second-text-32 c-red!">
|
||||
<text> ¥{{ displayPrice(state.selectedSku.promotionPrice, "") || displayPrice(state.selectedSku.retailPrice, "") || 0 }} </text>
|
||||
<view v-if="state.selectedSku.promotionPrice" class="second-text-32 c-red!">
|
||||
<text> ¥{{ displayPrice(state.selectedSku.promotionPrice, "") || 0 }} </text>
|
||||
<text class="m-l-20rpx second-text-28 line-through">¥{{ displayPrice(state.selectedSku.retailPrice, "") || 0 }}</text>
|
||||
</view>
|
||||
<view v-else class="flex items-end mt-1">
|
||||
<text class="second-text-32 c-red!">¥{{ displayPrice(state.selectedSku.retailPrice, "") || 0 }}</text>
|
||||
</view>
|
||||
<view class="second-text-26">库存 {{ state.selectedSku.stock || 0 }}</view>
|
||||
<view class="second-text-26">
|
||||
已选择 {{ `${state.selectedSku.spec || "未选择"} / ${state.selectedSku.unit || "未选择"},数量 ${state.goodsCount}` }}
|
||||
|
||||
@@ -90,9 +90,7 @@ const goCart = async () => {
|
||||
<text>{{ item?.stock || 0 }}</text>
|
||||
</view>
|
||||
<view v-if="item.promotionPrice" class="flex items-end mt-1">
|
||||
<text class="c-red! second-text-32 mr-2">
|
||||
¥{{ displayPrice(item.promotionPrice, "") || displayPrice(item.retailPrice, "") || 0 }}
|
||||
</text>
|
||||
<text class="c-red! second-text-32 mr-2">¥{{ displayPrice(item.promotionPrice, "") || 0 }}</text>
|
||||
<text class="line-through">¥{{ displayPrice(item.retailPrice, "") || 0 }}</text>
|
||||
</view>
|
||||
<view v-else class="flex items-end mt-1">
|
||||
|
||||
@@ -96,6 +96,10 @@ const doCancelRefund = async () => {
|
||||
<view>商户</view>
|
||||
<view>{{ state.detail.merchantName }}</view>
|
||||
</view>
|
||||
<view class="info_cell">
|
||||
<view>自提点</view>
|
||||
<view>{{ state.detail.merchantName }}</view>
|
||||
</view>
|
||||
<view class="m-t-15rpx h-1px bg-#999 bg-opacity-5" />
|
||||
<view class="info_cell">
|
||||
<view>订单号</view>
|
||||
|
||||
Reference in new issue
Block a user