商城列表需要优化
This commit is contained in:
18
api/mall.js
Normal file
18
api/mall.js
Normal 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
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user