This commit is contained in:
杨鹏
2025-10-10 17:23:24 +08:00
parent 052aec9a89
commit 1aba303ed9
24 changed files with 68 additions and 70 deletions
+6 -6
View File
@@ -132,14 +132,14 @@
>
<view class="item-title">优惠券</view>
<view class="ss-flex ss-col-center" @tap="state.showCoupon = true">
<text class="item-value text-red" v-if="state.orderPayload.couponId > 0">
<text class="item-value text-purple" v-if="state.orderPayload.couponId > 0">
-{{ fen2yuan(state.orderInfo.price.couponPrice) }}
</text>
<text
class="item-value"
:class="
state.couponInfo.filter((coupon) => coupon.match).length > 0
? 'text-red'
? 'text-purple'
: 'text-disabled'
"
v-else
@@ -159,7 +159,7 @@
>
<view class="item-title">活动优惠</view>
<view class="ss-flex ss-col-center" @tap="state.showDiscount = true">
<text class="item-value text-red">
<text class="item-value text-purple">
-{{ fen2yuan(state.orderInfo.price.discountPrice) }}
</text>
<text class="_icon-forward item-icon" />
@@ -171,7 +171,7 @@
>
<view class="item-title">会员优惠</view>
<view class="ss-flex ss-col-center">
<text class="item-value text-red">
<text class="item-value text-purple">
-{{ fen2yuan(state.orderInfo.price.vipPrice) }}
</text>
</view>
@@ -182,7 +182,7 @@
{{ state.orderInfo.items.reduce((acc, item) => acc + item.count, 0) }}
</view>
<view>合计</view>
<view class="total-num text-red"> {{ fen2yuan(state.orderInfo.price.payPrice) }}</view>
<view class="total-num text-purple"> {{ fen2yuan(state.orderInfo.price.payPrice) }}</view>
</view>
</view>
@@ -205,7 +205,7 @@
<su-fixed bottom :opacity="false" bg="bg-white" placeholder :noFixed="false" :index="200">
<view class="footer-box border-top ss-flex ss-row-between ss-p-x-20 ss-col-center">
<view class="total-box-footer ss-flex ss-col-center">
<view class="total-num ss-font-30 text-red">
<view class="total-num ss-font-30 text-purple">
{{ fen2yuan(state.orderInfo.price.payPrice) }}
</view>
</view>