From 1014f27763b8192485531e15ec3f3d9049be49d5 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 13 May 2026 16:47:20 +0800 Subject: [PATCH] 1 --- package1/buyFood/buyFood.vue | 20 +++++++++- package1/group/groupBuySingle.vue | 65 ++++++++++++++++++++++++++++--- 2 files changed, 79 insertions(+), 6 deletions(-) diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 0a11f43..bbdb750 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -229,6 +229,17 @@ ¥{{deliveryFeeCalc.toFixed(2)}} + + + 立即出餐-(拼团单,拼团成功后立即出餐) + + + + + + + + 备注 @@ -264,7 +275,7 @@ - 立即支付 + 立即支付{{nowMake && isPaotui == false ? '-即刻出餐' : ''}} @@ -429,6 +440,7 @@ deliveryTime: '', peisongyuan: '' }, + nowMake:true, content: [], remark:'', selected: 'buzhiding', @@ -616,6 +628,9 @@ uni.removeStorageSync('pendingAssignWorker'); }, methods: { + nowMakeMethod(){ + this.nowMake = !this.nowMake + }, initAddress() { let cachedAddress = uni.getStorageSync('selectedAddress'); if (cachedAddress) { @@ -979,6 +994,9 @@ uni.showLoading({ title: '创建订单中...' }); + if(this.nowMake && deliveryType == 2){ + payload.userRequireMake = 1 + } payload.regionId = JSON.parse(uni.getStorageSync('area')).id this.tui.request("/mall/order/create", "POST", payload, false, false).then(res => { uni.hideLoading(); diff --git a/package1/group/groupBuySingle.vue b/package1/group/groupBuySingle.vue index 0a70c22..e2a508e 100644 --- a/package1/group/groupBuySingle.vue +++ b/package1/group/groupBuySingle.vue @@ -486,7 +486,7 @@ + style="height: auto;background: #fff;border-radius: 40rpx 40rpx 0 0;padding-top: 40rpx;"> @@ -499,10 +499,10 @@ - 配送费(均摊) {{tuanzhangOrder.deliveryFee}} 元 + 配送费(均摊) {{tuanzhangOrder.deliveryFee}} 元 - 打包费 {{currentItem.lunchBox}} 元 + 打包费 {{currentItem.lunchBox}} 元 优惠券抵扣 -¥{{selectedCoupon.discountAmount.toFixed(2)}} @@ -511,6 +511,23 @@ 若拼团失败,将会为您自动退款 + + + + + 立即出餐 + + + 拼团单,拼团成功后立即出餐 + + + + + + + + @@ -530,7 +547,7 @@ - 确认付款 + 确认付款{{nowMake && groupdeliveryType == 2 ? '-即刻出餐' : ''}} @@ -627,6 +644,7 @@ remark: '', }, productId: '', + nowMake:true, productItem: [], tuanzhangOrder: {}, cartItems: [], @@ -820,6 +838,9 @@ } }, methods: { + nowMakeMethod(){ + this.nowMake = !this.nowMake + }, // 页面touchmove事件:吸顶后阻止页面整体滑动(让goods-list接管滚动) onPageTouchMove(e) { @@ -1620,11 +1641,16 @@ if (!this.currentOrderId || !this.backendTotalAmount) return; let amountInCents = Math.round(this.backendTotalAmount * 100); + let userRequireMake = 0 + if(this.nowMake && this.groupdeliveryType == 2){ + userRequireMake = 1 + } this.tui.request("/api/wechat/pay/unified-order", "POST", { openid: uni.getStorageSync('miniProgramOpenid') || 'test-openid', amount: amountInCents, description: '商城订单', + userRequireMake:userRequireMake, outTradeNo: this.currentOrderId }, false, false).then((res) => { if (res.code == 200) { @@ -1765,6 +1791,26 @@ padding: 16rpx 24rpx; box-sizing: border-box; } + + .radio-check { + background: linear-gradient(90deg, #e3ff96, #a6ffea); + width: 42rpx; + height: 42rpx; + border-radius: 42rpx; + text-align: center; + line-height: 42rpx; + margin: 0 18rpx 0 0; + box-shadow: 0 6rpx 16rpx rgba(49, 224, 183, 0.22); + } + + .radio-no-check { + width: 42rpx; + height: 42rpx; + border-radius: 42rpx; + border: 2rpx solid #e8eeee; + margin: 0 18rpx 0 0; + background: #fff; + } .title-search { display: flex; @@ -1969,7 +2015,10 @@ height: 100%; border-radius: 20rpx; } - + .fee-value { + color: #00231C; + font-weight: 800; + } .goods-top { @@ -2864,6 +2913,12 @@ font-weight: 900; line-height: 34rpx; } + + .fee-label { + flex: 1; + color: #6f7f79; + font-weight: 700; + } .popup-rally-sub, .join-popup-sub {