修复限时折扣会员价下单
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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, // 超级会员折扣
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user