优化代客下单逻辑

This commit is contained in:
gyq
2025-11-18 09:06:47 +08:00
parent 7c7fc3ef0f
commit 4478cc01fe
11 changed files with 193 additions and 259 deletions

View File

@@ -6,7 +6,8 @@
{{ item.product_name }}
</div>
<div class="n">x{{ formatDecimal(+item.number, 2, true) }}</div>
<div class="p" :class="{ undeline: goodsStore.showVipPrice && item.memberPrice }">
<div class="p"
:class="{ undeline: (goodsStore.showVipPrice && item.memberPrice) || item.is_time_discount }">
<template v-if="item.is_temporary">
<template v-if="item.is_gift">
<span class="t_line">{{ formatDecimal(+item.discount_sale_amount) }}</span>
@@ -98,7 +99,7 @@
</span>
</div>
</div>
<div class="gift_wrap" v-if="goodsStore.showVipPrice && item.memberPrice">
<div class="gift_wrap" v-if="goodsStore.showVipPrice && item.memberPrice && !item.is_time_discount">
<div class="name">
<span>[会员价]</span>
</div>
@@ -109,6 +110,30 @@
</span>
</div>
</div>
<div class="gift_wrap" v-if="item.is_time_discount">
<template v-if="item.time_dicount_mode == 'vip-price'">
<div class="name">
<span>[会员价]</span>
</div>
<div class="n"></div>
<div class="p">
<span>
{{ formatDecimal(+item.memberPrice) }}
</span>
</div>
</template>
<template v-else>
<div class="name">
<span>[限时折扣]</span>
</div>
<div class="n"></div>
<div class="p">
<span>
{{ formatDecimal(+item.time_discount_price) }}
</span>
</div>
</template>
</div>
</div>
</template>