chore:金额显示

This commit is contained in:
weiwei committed 2025-09-17 18:32:02 +08:00
1 parent 0f48c89759
commit 1009236495
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
<crud-layout title="购物车" mainIsScroll bg="/static/page/blue-bg.png">
<view class="h-20rpx"></view>
<view v-if="cartStore.totalCount > 0" class="flex-row card px-15rpx py-25rpx mb-20rpx" v-for="(v, i) in cartStore.cart" :key="i">
<image class="size-160rpx rounded-12rpx mr-20rpx bg-#eeeeee" :src="filePath(v.picUrl)" mode="aspectFill" />
<image class="size-160rpx rounded-12rpx mr-20rpx bg-#eeeeee" :src="filePath(v.productPic)" mode="aspectFill" />
<view class="flex-1 overflow-hidden">
<view class="sub-text-30 truncate">{{ v.productName }}</view>
<view class="second-text-26 show-line">单位 {{ v.unit }}</view>
+5 -2
View File
@@ -89,12 +89,15 @@ const goCart = async () => {
<text class="w-80rpx mr-1">库存</text>
<text>{{ item?.stock || 0 }}</text>
</view>
<view class="flex items-end mt-1">
<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="line-through">¥{{ displayPrice(item.retailPrice, "") || 0 }}</text>
</view>
<view v-else class="flex items-end mt-1">
<text class="second-text-32 c-red!">¥{{ displayPrice(item.retailPrice, "") || 0 }}</text>
</view>
</view>
</view>
</view>
@@ -106,7 +109,7 @@ const goCart = async () => {
</view>
</view>
<view class="h-80rpx" />
<view class="h-50rpx" />
<template #main-bottom>
<view class="flex-row justify-between items-center my-4 mx-12">