mall-uniapp/sheep/api/promotion/combination.js

88 lines
1.8 KiB
JavaScript
Raw Normal View History

2024-01-13 11:08:55 +00:00
import request from '@/sheep/request';
2023-12-13 03:35:02 +00:00
// 拼团 API
const CombinationApi = {
2024-01-13 11:08:55 +00:00
// 获得拼团活动列表
getCombinationActivityList: (count) => {
return request({
url: '/promotion/combination-activity/list',
2024-01-13 11:08:55 +00:00
method: 'GET',
params: { count },
});
},
2023-12-13 03:35:02 +00:00
2024-01-13 11:08:55 +00:00
// 获得拼团活动分页
getCombinationActivityPage: (params) => {
return request({
url: '/promotion/combination-activity/page',
2024-01-13 11:08:55 +00:00
method: 'GET',
params,
});
},
2023-12-13 03:35:02 +00:00
2024-01-13 11:08:55 +00:00
// 获得拼团活动明细
getCombinationActivity: (id) => {
return request({
url: '/promotion/combination-activity/get-detail',
2024-01-13 11:08:55 +00:00
method: 'GET',
params: {
id,
},
});
},
2023-12-13 03:35:02 +00:00
// 获得拼团活动明细列表
2024-09-04 15:01:16 +00:00
getCombinationActivityDetailList: (ids) => {
return request({
2024-09-04 15:01:16 +00:00
url: '/promotion/combination-activity/detail-list',
method: 'GET',
params: {
2024-09-05 04:40:53 +00:00
ids,
},
});
},
2024-01-13 11:08:55 +00:00
// 获得最近 n 条拼团记录(团长发起的)
getHeadCombinationRecordList: (activityId, status, count) => {
return request({
url: '/promotion/combination-record/get-head-list',
2024-01-13 11:08:55 +00:00
method: 'GET',
params: {
activityId,
status,
count,
},
});
},
2023-12-13 03:35:02 +00:00
2024-01-13 11:08:55 +00:00
// 获得我的拼团记录分页
getCombinationRecordPage: (params) => {
return request({
2024-09-05 04:40:53 +00:00
url: '/promotion/combination-record/page',
2024-01-13 11:08:55 +00:00
method: 'GET',
2024-09-05 04:40:53 +00:00
params,
2024-01-13 11:08:55 +00:00
});
},
2023-12-13 03:35:02 +00:00
2024-01-13 11:08:55 +00:00
// 获得拼团记录明细
getCombinationRecordDetail: (id) => {
return request({
url: '/promotion/combination-record/get-detail',
2024-01-13 11:08:55 +00:00
method: 'GET',
params: {
id,
},
});
},
2023-12-13 03:35:02 +00:00
2024-01-13 11:08:55 +00:00
// 获得拼团记录的概要信息
getCombinationRecordSummary: () => {
return request({
url: '/promotion/combination-record/get-summary',
2024-01-13 11:08:55 +00:00
method: 'GET',
});
},
};
export default CombinationApi;