mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-21 02:15:54 +08:00
commit message
This commit is contained in:
48
buyer/src/api/promotion.js
Normal file
48
buyer/src/api/promotion.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import request, {
|
||||
Method
|
||||
} from '@/plugins/request.js';
|
||||
|
||||
/**
|
||||
* 获取当天限时抢购信息
|
||||
*/
|
||||
export function seckillByDay (params) {
|
||||
return request({
|
||||
url: '/buyer/promotion/seckill',
|
||||
method: Method.GET,
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取某个时刻限时抢购信息
|
||||
*/
|
||||
export function seckillByTimeline (timeline) {
|
||||
return request({
|
||||
url: `/buyer/promotion/seckill/${timeline}`,
|
||||
method: Method.GET
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取积分商品分类列表
|
||||
*/
|
||||
export function pointGoodsCategory (params) {
|
||||
return request({
|
||||
url: `/buyer/promotion/pointsGoods/category`,
|
||||
method: Method.GET,
|
||||
needToken: true,
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取积分商品列表
|
||||
*/
|
||||
export function pointGoods (params) {
|
||||
return request({
|
||||
url: `/buyer/promotion/pointsGoods`,
|
||||
method: Method.GET,
|
||||
needToken: true,
|
||||
params
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user