You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shop-app/common/api/seckill.js

26 lines
643 B

3 years ago
/*
* @Author: ch
* @Date: 2022-04-12 13:56:24
* @LastEditors: ch
* @LastEditTime: 2022-04-14 15:19:22
3 years ago
* @Description: file content
*/
import {ToAsyncAwait, MsbRequest} from '@/common/utils';
3 years ago
const BASE_URL = '/mall/marketing';
export const ApiGetHomeSeckill = () =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/home`));
3 years ago
/**
* 获取当天秒杀时段
*/
export const ApiGetSeckillTimes = () =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/time`));
3 years ago
/**
* 获取当天秒杀时段
*/
export const ApiGetSeckillGoods = (params) =>
ToAsyncAwait(MsbRequest.get(`${BASE_URL}/app/activity/product`, params));
3 years ago