group order
This commit is contained in:
@@ -205,10 +205,18 @@ export default {
|
||||
getPinTuanDetails({ pintuan_id }) {
|
||||
return vm.$u.post('Specialci/pintuanInfo', { pintuan_id: pintuan_id });
|
||||
},
|
||||
// pintuanPush
|
||||
// 推荐拼团
|
||||
getPinTuanPush() {
|
||||
return vm.$u.post('Specialci/pintuanPush');
|
||||
},
|
||||
// 开团/参团
|
||||
withImmediate({ pintuan_id, pintuangroup_headid, pintuangroup_id}) {
|
||||
return vm.$u.post('Specialci/withImmediate', {
|
||||
pintuan_id: pintuan_id,
|
||||
pintuangroup_headid: pintuangroup_headid,
|
||||
pintuangroup_id: pintuangroup_id,
|
||||
});
|
||||
},
|
||||
// 商品分类(拼团分类)
|
||||
getGoodsClass() {
|
||||
return vm.$u.post('Specialci/goodsClass');
|
||||
|
||||
@@ -308,7 +308,6 @@ export default {
|
||||
delMessage({ type }) {
|
||||
return vm.$u.post('/message/readMessage', { type });
|
||||
},
|
||||
|
||||
// 已读消息
|
||||
refreshToken({ }) {
|
||||
return vm.$u.post('/Auth/refreshToken', { });
|
||||
@@ -321,6 +320,12 @@ export default {
|
||||
articleDelShield({ id }) {
|
||||
return vm.$u.post('article/articleDelShield', { member_id: id });
|
||||
},
|
||||
// 配置
|
||||
getConfigInfo({ code }) {
|
||||
return vm.$u.post('Document/getConfigInfo', {
|
||||
code: code,
|
||||
});
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,10 +6,17 @@ const store = new Vuex.Store({
|
||||
state: {
|
||||
cartInfo: {}, // 购物车数据
|
||||
orderAddress: {}, // 下单时选择的地址
|
||||
goodsDetails: {}, // 商品详情 1普通 2拼团 3秒杀 4优惠券
|
||||
},
|
||||
getters: {
|
||||
getOrderAddress(state) {
|
||||
return state.orderAddress;
|
||||
},
|
||||
getGoodsType(state) {
|
||||
return state.goodsDetails.type;
|
||||
},
|
||||
getGoodsInfo(state) {
|
||||
return state.goodsDetails.goods;
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
@@ -18,7 +25,10 @@ const store = new Vuex.Store({
|
||||
},
|
||||
updateAddress(state, address) {
|
||||
state.orderAddress = address;
|
||||
}
|
||||
},
|
||||
setGoodsDetails(state, goods) {
|
||||
state.goodsDetails = goods;
|
||||
},
|
||||
}
|
||||
})
|
||||
export default store;
|
||||
Reference in New Issue
Block a user