fix: 修复称重商品切换就餐模式时打包数量展示不对问题

This commit is contained in:
2025-03-18 18:18:42 +08:00
parent 8bcc5b8c71
commit 2837711105
4 changed files with 27 additions and 7 deletions

View File

@@ -6,6 +6,10 @@
<span class="number">{{ item.product_type == "weight" ? 1 : item.num * 1 }}</span>
</span>
<span class="pack" v-if="dinerType == 0 && item.pack_number * 1 > 0">
<span class="number">{{ item.product_type == "weight" ? 1 : item.num * 1 }}</span>
</span>
</template>
<template v-else>
<span class="pack" v-if="item.pack_number * 1 > 0">

View File

@@ -474,6 +474,7 @@ function returnPayParams() {
fullCouponDiscountAmount: fullCouponDiscountAmount.value * 1,
couponList: quansSelArr.value.map((v) => v.id),
userId: props.user.userId || "",
allPack: carts.dinnerType == "take-out" ? 1 : 0,
},
};
}