店铺列表和店铺详情分页功能添加

This commit is contained in:
2022-06-11 15:18:39 +08:00
parent 1f2a85c2d7
commit e82b7d74ce
13 changed files with 877 additions and 809 deletions

View File

@@ -22,11 +22,12 @@ const goods = id => {
}
// 店铺列表
const shops = (categoryId) => {
const shops = (categoryId,page) => {
return request({
url: 'mall/shops',
data: {
category_id: categoryId
category_id: categoryId,
page:page
}
})
}
@@ -39,12 +40,13 @@ const shopsDetail = (shopId) => {
}
// 店铺商品
const shopsGoods = (shop_id, category_id) => {
const shopsGoods = (shop_id, category_id,page) => {
return request({
url: 'mall/goods',
data: {
shop_id,
category_id
category_id,
page,
}
})
}