商城列表需要优化

This commit is contained in:
bobobobo
2025-12-24 22:21:24 +08:00
parent b67f9611c7
commit 334c0800fa
8 changed files with 202 additions and 64 deletions

18
api/mall.js Normal file
View File

@@ -0,0 +1,18 @@
import http from '@/utils/request'
/** 分类 */
export const getCategory = () => {
return http({
url: '/api/service/productCategory/list',
method: 'get'
})
}
/** 商品列表 */
export const getProductList = data => {
return http({
url: '/api/service/product/list',
method: 'get',
data
})
}