From a61cc171d51a6ef77d4d1575bb3c652525f6aadc Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 27 Sep 2024 23:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=85=88=E8=AE=BE=E7=BD=AE=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/index-home/index-home.vue | 8 ++++---- pages/confirm_order/confirm_order.vue | 16 +++++++++++++--- pages/goods_details/goods_details.vue | 22 +++++++++++++--------- 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/components/index-home/index-home.vue b/components/index-home/index-home.vue index f7ce850..dc51948 100644 --- a/components/index-home/index-home.vue +++ b/components/index-home/index-home.vue @@ -46,14 +46,14 @@ - + - + diff --git a/pages/confirm_order/confirm_order.vue b/pages/confirm_order/confirm_order.vue index 70e887f..0b958df 100644 --- a/pages/confirm_order/confirm_order.vue +++ b/pages/confirm_order/confirm_order.vue @@ -99,11 +99,13 @@ p_id: 0, bargainLaunchId: -1, invoiceArr: [], - subsidy_type: 1 + subsidy_type: 1, + goods_type: 0 // 当为4(抢购)的时候会改变这个值 }; }, onLoad(options) { + console.log(' this.$Route.query=', this.$Route.query) uni.$on("selectaddress", (e) => { this.addressId = e.id; this.orderBuyFun(); @@ -125,10 +127,12 @@ carts, teamId, foundId, - type + type, + orderType } } = this.$Route.query - + + this.order_type = orderType this.goods = goods this.bargainLaunchId = goods[0].bargain_launch_id || -1 this.carts = carts || [] @@ -285,6 +289,12 @@ } + //抢购 + submitObj.order_type = 0 + if (this.order_type == 4) { + submitObj.order_type = this.order_type + } + let { data: orderData, code: orderCode, diff --git a/pages/goods_details/goods_details.vue b/pages/goods_details/goods_details.vue index a3e895a..37c399d 100644 --- a/pages/goods_details/goods_details.vue +++ b/pages/goods_details/goods_details.vue @@ -69,7 +69,7 @@ - + @@ -81,7 +81,7 @@ - + 零售价: @@ -166,7 +166,7 @@ 浏览量: {{ goodsDetail.clicks }} - + 拼团玩法 @@ -279,7 +279,7 @@ shop_id: shop.id, goods_id: id }}"> --> - + @@ -290,13 +290,13 @@ - - + @@ -327,7 +327,7 @@ -