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.
yanzong_qianduan/api/home/index.js

30 lines
684 B

10 months ago
import request from '@/utils/request'
// api地址
const api = {
list: 'goods/list',
chartsGoodsJing:'goods/chartsGoodsJing',
brandList:'goods/brandList',
typeList:'category/list'
10 months ago
}
// 商品列表
export const list = (param, option) => {
return request.get(api.list, param, option)
}
// 首页排行榜
export const chartsGoodsJing = (param, option) => {
return request.get(api.chartsGoodsJing, param, option)
}
// 商品/大牌正品/新品首发列表
export const brandList = (param, option) => {
return request.get(api.brandList, param, option)
}
// 首页分类
export const typeList = (param, option) => {
return request.get(api.typeList, param, option)
}