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.
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// api地址
|
|
|
|
const api = {
|
|
|
|
list: 'category/list',
|
|
|
|
sonList:'goods/list',
|
|
|
|
listmerchant: 'category/listmerchant',
|
|
|
|
getShopCategory: 'merchant/getShopCategory'
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 获取分类列表
|
|
|
|
export const list = (param, option) => {
|
|
|
|
return request.get(api.list, param, option)
|
|
|
|
}
|
|
|
|
// 获取子分类
|
|
|
|
export const sonList = (param, option) => {
|
|
|
|
return request.get(api.sonList, param, option)
|
|
|
|
}
|
|
|
|
export const childrenList = (param, option) => {
|
|
|
|
return request.get('category/childrenList', param, option)
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获取商户下商品分类列表
|
|
|
|
export const listmerchant = (param, option) => {
|
|
|
|
return request.get(api.listmerchant, param, option)
|
|
|
|
}
|
|
|
|
// 获取商户下商品分类列表
|
|
|
|
export const getShopCategory = (param, option) => {
|
|
|
|
return request.get(api.getShopCategory, param, option)
|
|
|
|
}
|