From ddfa237e68f0be609b9c98edad673c63f0994fff Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Fri, 27 Mar 2026 17:58:05 +0800 Subject: [PATCH] 1 --- package1/buyFood/buyFood.vue | 69 ++++++- package1/group/groupBuySingle.vue | 302 ++++++++++++++++-------------- 2 files changed, 233 insertions(+), 138 deletions(-) diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 1990ab1..61aa03f 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -191,6 +191,30 @@ + + + + + + + {{cartItem.productName}} + + + + {{getSpecDisplayString(cartItem.specs)}} + + + + + X{{cartItem.quantity}} + + + ¥{{cartItem.attributeListPrice | sliceMsg}} + + + + @@ -388,6 +412,18 @@ deliveryTimeOp, addressList }, + filters: { + sliceMsg(val) { + var name = '' + if (typeof(val) == 'string') { + let newObj = JSON.parse(val) + for (let as in newObj) { + name = newObj[as].specPrice + } + } + return name; + } + }, onLoad(option) { if (option.shopItem) { this.shopItem = JSON.parse(decodeURIComponent(option.shopItem)); @@ -408,7 +444,15 @@ computed: { goodsAmountCalc() { if (this.isGroupBuy && this.groupItem) { - return parseFloat(this.groupItem.groupRule.groupPrice); + if(this.groupItem.item.moreBuyData){ + let allPrice = parseFloat(this.groupItem.groupRule.groupPrice) + for(let a = 0;a acc + (curr.quantity * parseFloat(curr.price)), 0); } @@ -714,16 +758,39 @@ } return null; }, + sliceMsg1(val) { + var name = '' + if (typeof(val) == 'string') { + let newObj = JSON.parse(val) + for (let as in newObj) { + name = newObj[as].specPrice + } + } + return name; + }, submitOrderToBackend() { let isJoiningFaceToFace = this.isGroupBuy && this.groupItem && this.groupItem.groupId && this.groupItem .isFaceToFace; let items = []; if (this.isGroupBuy && this.groupItem) { + if(this.groupItem.item.moreBuyData){ + for(let a = 0;a - - - - - - - - 无骨双拼|招牌炸鸡套餐 + + + + + + + + + + + {{item.productName}} + + + 拼团¥{{item.groupPrice}} + + - - 拼团¥59.90 + + + + + + + + + + 差{{item.targetMembers - item.currentMembers}}人拼成 - - - - - + - - - 差1人拼成 - - + 月售 100+ - + @@ -134,7 +141,7 @@ style="background: rgba(166, 255, 234, 0.3);margin-right: 6%;border: 1px solid rgba(166, 255, 234, 0.5);"> 直接购买¥{{item.attributeListPrice | sliceMsg}} - + 拼团购买¥{{ getGroupPrice(item) }} @@ -283,10 +290,31 @@ + + + 搭配小食 + + + + + + + + + ¥{{spec.attributeListPrice | sliceMsg}} ✕ {{spec.quantity ? spec.quantity : ''}} + + + {{spec.productName}} + + + + @@ -363,86 +363,17 @@ - + - - - - - - - {{currentItem.productName}} - - - - 月售 100+ - - - - - ¥{{currentItem.attributeListPrice | sliceMsg}} - - - 拼团¥{{currentItem.productGroupBuyPrices | slicePrice}} - - - + 快来加入一起成团吧! -