feat: 新增拼团

This commit is contained in:
2026-09-23 10:29:41 +08:00
parent f7b9e66172
commit 67f8b3f352
33 changed files with 7491 additions and 858 deletions
+22 -15
View File
@@ -42,23 +42,23 @@ export function updateGoodsNum(data) {
// 查询结算列表
export function getSettleList(data) {
export function getSettleList(data) {
// return request.post('/common/getSmsCode',qs.stringify(params));
return request({
url: "/cart/getSettleList",
method: "post",
data,
});
}
// 立即购买预结算(含优惠券可用性和抵扣后金额)
export function getDirectSettleList(data) {
return request({
url: "/cart/getDirectSettleList",
method: "post",
data,
});
}
}
// 立即购买预结算(含优惠券可用性和抵扣后金额)
export function getDirectSettleList(data) {
return request({
url: "/cart/getDirectSettleList",
method: "post",
data,
});
}
// 结算下单
export function settle(data) {
@@ -82,13 +82,20 @@ export function setSeckillOrder(data) {
url: "/seckill/order",
method: "post",
data,
// cha:1
// headers: {
// "Content-Type": "application/x-www-form-urlencoded"
// }
});
}
// 秒杀下单
export function setGroupBuyOrder(data) {
return request({
url: "/groupBuy/order/0910",
method: "post",
data,
});
}
setGroupBuyOrder
// 查询运费
export function getPostageQuery(data) {
+39
View File
@@ -145,3 +145,42 @@ export function getSearchGoodsList(params) {
});
}
// 拼团商品列表
export function getGroupBuyList(params) {
return request({
url: "/groupBuy/getList/0910",
method: "get",
data: params,
});
}
// 可直接参加的拼团列表
export function getGroupBuyJoinableList(params) {
return request({
url: "/groupBuy/getJoinableList/0910",
method: "get",
data: params,
});
}
// 当前拼团活动信息 (倒计时、startTime, endTime等)
export function getGroupBuyCurrent(params) {
return request({
url: "/groupBuy/current/0910",
method: "get",
data: params,
});
}
// 获取拼团详情
export function getTeamDetail(params) {
return request({
url: "/groupBuy/getTeamDetail/0910",
method: "get",
data: params,
});
}