修复限时折扣会员价下单

This commit is contained in:
gyq
2025-11-12 18:39:58 +08:00
parent bc1d5983bd
commit 2db23c3370
3 changed files with 22 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
:src="item.coverImg + '?x-oss-process=image/resize,m_lfit,w_100,h_100'" fit="cover"></el-image>
<div class="info" @click="itemClick">
<div class="dot" v-if="item.isLimitDiscount">限时折扣</div>
<div class="dot" v-if="cartStore.useVipPrice">会员价</div>
<div class="btm">
<div class="name u-flex u-flex-wrap">
<span class="weight" v-if="item.type == 'weight'">称重</span>
@@ -13,7 +14,15 @@
<span class="o_price">{{ item.lowPrice }}</span>
<span class="sale_price">{{ item.limitDiscountPrice }}</span>
</div>
<div v-else>{{ item.lowPrice }}</div>
<div class="limit_wrap" v-else>
<template v-if="cartStore.useVipPrice">
<span class="o_price">{{ item.lowPrice }}</span>
<span>{{ item.lowMemberPrice }}</span>
</template>
<template>
{{ item.lowPrice }}
</template>
</div>
</div>
</div>
<div class="status" v-if="
@@ -38,6 +47,10 @@
<script setup>
import dayjs from "dayjs";
import { useCartsStore } from '@/store/modules/carts'
const cartStore = useCartsStore()
const props = defineProps({
item: {
type: Object,

View File

@@ -526,6 +526,7 @@ function returnPayParams() {
limitRate: carts.limitDiscountRes,
newCustomerDiscountId: newCustomerDiscount.value !== null ? newCustomerDiscount.value.id : '', // 新客立减Id
newCustomerDiscountAmount: newCustomerDiscount.value !== null ? newCustomerDiscount.value.amount : 0, // 新客立减金额
vipDiscountAmount: carts.orderCostSummary.vipDiscountAmount, // 超级会员折扣
},
};
}