商家列表,商家主页,我的团队

This commit is contained in:
唐明明
2022-06-09 16:55:32 +08:00
parent 0a5e711eec
commit e1602d0a2f
29 changed files with 6232 additions and 4382 deletions

View File

@@ -21,16 +21,33 @@ const goods = id => {
})
}
// 套餐列表
const meals = (id, categoryId) => {
// 店铺列表
const shops = (categoryId) => {
return request({
url: 'mall/meals/' + id,
url: 'mall/shops',
data: {
category_id: categoryId
}
})
}
// 店铺详情
const shopsDetail = (shopId) => {
return request({
url: 'mall/shops/' + shopId,
})
}
// 店铺商品
const shopsGoods = (shop_id) => {
return request({
url: 'mall/goods',
data: {
shop_id
}
})
}
// 商品列表
const lists = data => {
return request({
@@ -66,7 +83,9 @@ const classify = id => {
export {
mall,
goods,
meals,
shops,
shopsDetail,
shopsGoods,
lists,
buy,
verify,