order 7.22

This commit is contained in:
2020-07-22 18:51:48 +08:00
parent bd604ecec7
commit 818d388f31
8 changed files with 122 additions and 66 deletions

View File

@@ -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,

View File

@@ -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;