30 lines
999 B
JavaScript
30 lines
999 B
JavaScript
"use strict";
|
|
const modules_mall_sheep_request_index = require("../../request/index.js");
|
|
const SeckillApi = {
|
|
// 获得秒杀时间段列表
|
|
getSeckillConfigList: () => {
|
|
return modules_mall_sheep_request_index.request({ url: "promotion/seckill-config/list", method: "GET" });
|
|
},
|
|
// 获得当前秒杀活动
|
|
getNowSeckillActivity: () => {
|
|
return modules_mall_sheep_request_index.request({ url: "promotion/seckill-activity/get-now", method: "GET" });
|
|
},
|
|
// 获得秒杀活动分页
|
|
getSeckillActivityPage: (params) => {
|
|
return modules_mall_sheep_request_index.request({ url: "promotion/seckill-activity/page", method: "GET", params });
|
|
},
|
|
/**
|
|
* 获得秒杀活动明细
|
|
* @param {number} id 秒杀活动编号
|
|
* @return {*}
|
|
*/
|
|
getSeckillActivity: (id) => {
|
|
return modules_mall_sheep_request_index.request({
|
|
url: "promotion/seckill-activity/get-detail",
|
|
method: "GET",
|
|
params: { id }
|
|
});
|
|
}
|
|
};
|
|
exports.SeckillApi = SeckillApi;
|