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

44 lines
831 B
JavaScript
Raw Normal View History

2023-12-12 08:13:27 +00:00
import request from "@/sheep/request";
2023-12-11 01:24:16 +00:00
const SeckillApi = {
2023-12-12 08:13:27 +00:00
// 获得秒杀时间段列表
getSeckillConfigList: () => {
return request({
url: '/app-api/promotion/seckill-config/list',
method: 'GET'
});
},
2023-12-11 01:24:16 +00:00
2023-12-12 08:13:27 +00:00
// 获得当前秒杀活动
getNowSeckillActivity: () => {
return request({
url: '/app-api/promotion/seckill-activity/get-now',
method: 'GET'
});
},
2023-12-11 01:24:16 +00:00
2023-12-12 08:13:27 +00:00
// 获得秒杀活动分页
getSeckillActivityPage: () => {
return request({
url: '/app-api/promotion/seckill-activity/page',
method: 'GET'
});
},
2023-12-11 01:24:16 +00:00
2023-12-12 08:13:27 +00:00
/**
* 获得秒杀活动明细
* @param {number} id 秒杀活动编号
* @return {*}
*/
getSeckillActivity: (id) => {
return request({
url: '/app-api/promotion/seckill-activity/get-detail',
method: 'GET',
params: {
id
}
});
}
2023-12-11 01:24:16 +00:00
}
2023-12-12 08:13:27 +00:00
export default SeckillApi;