seckill.js 309 B

123456789101112131415161718
  1. import request from '@/utils/request'
  2. // 获取秒杀分类
  3. export function getClass(data) {
  4. return request({
  5. url: '/api/seckill/index',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取秒杀列表
  11. export function getList(data,id) {
  12. return request({
  13. url: '/api/seckill/list/'+id,
  14. method: 'get',
  15. data
  16. });
  17. }