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

59 lines
1.5 KiB

10 months ago
import request from '@/utils/request'
// api地址
const api = {
list: 'goods/list',
chartsGoodsJing:'goods/chartsGoodsJing',
brandList:'goods/brandList',
getBannerList:'index/getBannerList',
10 months ago
typeList:'category/list',
9 months ago
cityInfo:'goods/cityInfo',
search:'goods/hotWord',
chartsGoodsJing:'goods/chartsGoodsJing'
10 months ago
}
// 小程序配置
export const wxAppSetting = (param, option) => {
return request.post('index/wxAppSetting', param, option)
}
// benner列表
export const getBannerList = (param, option) => {
return request.get(api.getBannerList, param, option)
}
// 门店编辑
export const editShop = (param, option) => {
return request.post('shop/editShop', param, option)
}
10 months ago
// 门店详情
10 months ago
export const cityInfo = (param, option) => {
return request.get(api.cityInfo, param, option)
}
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)
9 months ago
}
//搜索发现
export const searchFind = (param, option) => {
return request.get(api.search, param, option)
}
//搜索发现内容
export const chartsGoodsJingApi = (param, option) => {
return request.get(api.chartsGoodsJing, param, option)
}