From 818d388f316a57a3654b57cff085bc6908e8af09 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Wed, 22 Jul 2020 18:51:48 +0800 Subject: [PATCH] order 7.22 --- common/api/shop.js | 2 +- common/store/index.js | 6 +- components/shop/seckill/item.vue | 25 ++++++- components/shop/special-shop/index.vue | 6 +- pageB/sdetails/index.vue | 95 +++++++++++++------------- pageC/cart/ConfirmOrder.vue | 49 ++++++++++--- pageC/cart/cashier.vue | 2 +- pageC/groupBuy/index.vue | 3 +- 8 files changed, 122 insertions(+), 66 deletions(-) diff --git a/common/api/shop.js b/common/api/shop.js index ac87721..d4451a8 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -122,7 +122,7 @@ export default { }); }, // 订单步骤2:发起订单,返回订单信息 - sendOrder({ ifcart, cart_id, address_id, buy_city_id }) { + sendOrder({ ifcart, cart_id, address_id, buy_city_id, pintuan_id, pintuangroup_id, voucher_id }) { return vm.$u.post('buy/buy_step2', { ifcart: ifcart, cart_id: cart_id, diff --git a/common/store/index.js b/common/store/index.js index c40505e..9301ea3 100644 --- a/common/store/index.js +++ b/common/store/index.js @@ -4,11 +4,12 @@ Vue.use(Vuex) const store = new Vuex.Store({ state: { - orderType: '', // 订单类型 1 普通订单 2 购物车订单 3 拼团订单 4 秒杀订单 + orderType: '', // 订单类型 1 普通订单 2 拼团订单 3 秒杀订单 4 优惠券 5 购物车订单 和 goodsDetails 的 type 相同 orderInfo: {}, // 订单数据 订单步骤1:展示结算数据 orderAddress: {}, // 下单时选择的地址 goodsDetails: {}, // 商品详情 1普通 2拼团 3秒杀 4优惠券 goods_id: '', // 拼团商品 id + pintuangroup_headid: '', // 拼团团长id 有为开团 无为参团 groupbuyInfo: {}, // 秒杀详情 }, getters: { @@ -41,6 +42,9 @@ const store = new Vuex.Store({ setGroupbuyInfo(state, info) { state.groupbuyInfo = info; }, + setGroupHeadId(state, id) { + state.pintuangroup_headid = id; + }, } }) export default store; \ No newline at end of file diff --git a/components/shop/seckill/item.vue b/components/shop/seckill/item.vue index 489c506..6e1a4dd 100644 --- a/components/shop/seckill/item.vue +++ b/components/shop/seckill/item.vue @@ -1,10 +1,10 @@