2023-06-10 14:00:41 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
2023-06-18 13:24:11 +00:00
|
|
|
// 获得秒杀时间段列表
|
|
|
|
export function getSeckillConfigList() {
|
|
|
|
return request.get("app-api/promotion/seckill-config/list", {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-17 18:01:24 +00:00
|
|
|
// 获得当前秒杀活动
|
2023-06-18 13:24:11 +00:00
|
|
|
export function getNowSeckillActivity() {
|
2023-06-17 18:01:24 +00:00
|
|
|
return request.get("app-api/promotion/seckill-activity/get-now", {}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-18 13:24:11 +00:00
|
|
|
// 获得秒杀活动分页
|
|
|
|
export function getSeckillActivityPage(data) {
|
|
|
|
return request.get("app-api/promotion/seckill-activity/page", data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-10 14:00:41 +00:00
|
|
|
// 获得秒杀活动明细
|
|
|
|
export function getSeckillActivity(id) {
|
|
|
|
return request.get("app-api/promotion/seckill-activity/get-detail", {
|
|
|
|
id
|
2023-06-11 14:59:10 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
2023-06-10 14:00:41 +00:00
|
|
|
});
|
|
|
|
}
|