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) }