商品详情.评价页面.购物车页面.首页轮播图.搜索功能.分类接口

This commit is contained in:
落日晚风
2023-10-31 17:41:57 +08:00
parent 6a327ac0e7
commit f4c1b30f2e
14 changed files with 496 additions and 470 deletions
+12 -2
View File
@@ -16,8 +16,8 @@ export default {
// 商品列表
list: (params) =>
request({
url: 'goods/goods',
request2({
url: 'product/spu/page',
method: 'GET',
params,
custom: {
@@ -49,6 +49,16 @@ export default {
showError: false,
},
}),
comment2: (id, params = {pageNo:1,pageSize:10,type:0}) =>
request2({
url: 'product/comment/page?spuId='+id,
method: 'GET',
params,
custom: {
showLoading: false,
showError: false,
},
}),
// 商品评价类型
getType: (id) =>
request({