优化结算选择优惠券

This commit is contained in:
gyq
2025-11-18 14:32:25 +08:00
parent 4478cc01fe
commit bca332f7b8
19 changed files with 4191 additions and 109 deletions

View File

@@ -46,18 +46,16 @@
</span>
</template>
<div class="flex" v-else>
<template v-if="goodsStore.showVipPrice">
<template v-if="goodsStore.showVipPrice && item.memberPrice > 0">
<span class="dis">
{{ formatDecimal(+props.item.lowPrice, 2, true) }}
{{ formatDecimal(+props.item.salePrice, 2, true) }}
</span>
<span>
{{ formatDecimal(+props.item.memberPrice, 2, true) }}
</span>
</template>
<span>
{{ formatDecimal(goodsStore.showVipPrice ? +props.item.memberPrice ||
+props.item.lowPrice
:
+props.item.lowPrice,
2,
true) }}
<span v-else>
{{ formatDecimal(+item.salePrice, 2, true) }}
</span>
</div>
</div>

View File

@@ -109,17 +109,17 @@
<el-text>{{ +item.time_discount_price }}</el-text>
</template>
<template v-else>
<template v-if="!goodsStore.showVipPrice">
<el-text>{{ item.skuList[0].salePrice }}</el-text>
</template>
<template v-else>
<template v-if="goodsStore.showVipPrice && item.lowMemberPrice > 0">
<el-text tag="del" class="del" size="small">
{{ item.skuList[0].salePrice }}
{{ item.lowPrice }}
</el-text>
<el-text>
{{ +item.skuList[0].memberPrice || item.skuList[0].salePrice }}
{{ item.lowMemberPrice }}
</el-text>
</template>
<template v-else>
<el-text>{{ item.lowPrice }}</el-text>
</template>
</template>
</div>
<div class="show_more_btn" v-if="showEditor">

View File

@@ -35,7 +35,7 @@
<!-- <SettleItem :list="cartList" /> -->
<SettleItem :list="orderList" />
<SettleItem
:list="[{ id: 'tableFee', product_name: '客座费', number: goodsStore.tableInfo.num, lowPrice: store.shopInfo.tableFee }]"
:list="[{ id: 'tableFee', product_name: '客座费', number: goodsStore.tableInfo.num, salePrice: store.shopInfo.tableFee, memberPrice: store.shopInfo.tableFee }]"
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.name && (goodsStore.cartList.length || goodsStore.orderList.length) && !goodsStore.allSelected" />
</div>
<div class="footer">

View File

@@ -85,20 +85,6 @@
</span>
</div>
</div>
<div class="gift_wrap" v-if="+item.pack_number">
<div class="name">
<span>[打包费]</span>
</div>
<div class="n"></div>
<div class="p">
<span v-if="item.is_temporary">
+0.00
</span>
<span v-else>
+{{ formatDecimal(item.pack_number * item.packFee) }}
</span>
</div>
</div>
<div class="gift_wrap" v-if="goodsStore.showVipPrice && item.memberPrice && !item.is_time_discount">
<div class="name">
<span>[会员价]</span>
@@ -134,6 +120,20 @@
</div>
</template>
</div>
<div class="gift_wrap" v-if="+item.pack_number">
<div class="name">
<span>[打包费]</span>
</div>
<div class="n"></div>
<div class="p">
<span v-if="item.is_temporary">
+0.00
</span>
<span v-else>
+{{ formatDecimal(item.pack_number * item.packFee) }}
</span>
</div>
</div>
</div>
</template>

View File

@@ -14,10 +14,10 @@
<CirclePlus />
</el-icon>
<template v-if="!goodsStore.vipUserInfo.id">
<span class="t">选择会员</span>
<span class="t">选择用户</span>
</template>
<template v-else>
<div class="user_info" @click="goodsStore.clearVipUserInfo()">
<div class="user_info">
<!-- <el-text class="n">{{ goodsStore.vipUserInfo.nickName }}</el-text> -->
<el-text class="p">{{ formatPhoneNumber(goodsStore.vipUserInfo.phone) }}</el-text>
</div>
@@ -95,7 +95,7 @@
</div>
</div>
<CartItem
:item="{ product_name: '客座费', number: goodsStore.tableInfo.num, lowPrice: store.shopInfo.tableFee, memberPrice: store.shopInfo.tableFee }"
:item="{ product_name: '客座费', number: goodsStore.tableInfo.num, salePrice: store.shopInfo.tableFee, memberPrice: store.shopInfo.tableFee }"
v-if="!store.shopInfo.isTableFee && goodsStore.tableInfo.id && !goodsStore.allSelected" />
<div class="order_list_item" v-for="(arr, index) in goodsStore.orderList" :key="index">
<div class="order_num">