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/activity.js

46 lines
1.0 KiB

import request from '@/utils/request'
// api地址
const api = {
data: 'sharp.home/data',
list: 'sharp.goods/list',
getImage: 'goods/getCommonConfig',
getImage: 'goods/getCommonConfig',
getImage: 'goods/getCommonConfig',
chartsGoodsJing: 'goods/chartsGoodsJing',
chartsGoodsList: "goods/chartsGoodsList",
brandList: 'goods/brandList',
charts: "goods/charts"
}
// 新品
export const brandList = (data) => {
return request.get(api.brandList, data)
}
// 预售专区
export const list = () => {
return request.get(api.list, {}, {
load: false
})
}
// 秒杀活动首页
export const data = () => {
return request.get(api.data, {}, {
load: false
})
}
// 轮播
export const getImage = (data) => {
return request.get(api.getImage, data)
}
// 排行精选
export const chartsGoodsJing = (data) => {
return request.get(api.chartsGoodsJing, data)
}
// 排行精选商品
export const chartsGoodsList = (data) => {
return request.get(api.chartsGoodsList, data)
}
// 排行类
export const charts = (data) => {
return request.get(api.charts, data)
}