2023-06-13 16:16:34 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
2023-06-17 16:36:22 +00:00
|
|
|
// 获得拼团活动列表
|
|
|
|
export function getCombinationActivityList(count) {
|
|
|
|
return request.get("app-api/promotion/combination-activity/list", {
|
|
|
|
count
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-16 14:43:16 +00:00
|
|
|
// 获得拼团活动分页
|
|
|
|
export function getCombinationActivityPage(data) {
|
|
|
|
return request.get("app-api/promotion/combination-activity/page", data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-13 16:16:34 +00:00
|
|
|
// 获得拼团活动明细
|
|
|
|
export function getCombinationActivity(id) {
|
|
|
|
return request.get("app-api/promotion/combination-activity/get-detail", {
|
|
|
|
id
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-06-16 11:44:57 +00:00
|
|
|
|
|
|
|
// 获得最近 n 条拼团记录(团长发起的)
|
2023-06-17 16:36:22 +00:00
|
|
|
export function getHeadCombinationRecordList(activityId, status, count) {
|
2023-06-16 11:44:57 +00:00
|
|
|
return request.get("app-api/promotion/combination-record/get-head-list", {
|
2023-06-17 16:36:22 +00:00
|
|
|
activityId,
|
2023-06-16 14:43:16 +00:00
|
|
|
status,
|
|
|
|
count
|
2023-06-16 11:44:57 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得拼团记录明细
|
|
|
|
export function getCombinationRecordDetail(id) {
|
|
|
|
return request.get("app-api/promotion/combination-record/get-detail", {
|
|
|
|
id
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
2023-06-16 16:48:00 +00:00
|
|
|
|
2023-06-19 15:35:19 +00:00
|
|
|
// 获得拼团记录的概要信息
|
|
|
|
export function getCombinationRecordSummary() {
|
2023-06-16 16:48:00 +00:00
|
|
|
return request.get("app-api/promotion/combination-record/get-summary", {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|