✨ 商品详情:评论列表
This commit is contained in:
@@ -49,16 +49,6 @@ 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({
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import request from '@/sheep/request';
|
||||
|
||||
const CommentApi = {
|
||||
// 获得商品评价分页
|
||||
getCommentPage: (spuId, pageNo, pageSize, type) => {
|
||||
return request({
|
||||
url: '/app-api/product/comment/page',
|
||||
method: 'GET',
|
||||
params: {
|
||||
spuId,
|
||||
pageNo,
|
||||
pageSize,
|
||||
type
|
||||
},
|
||||
});
|
||||
},
|
||||
};
|
||||
export default CommentApi;
|
||||
Reference in New Issue
Block a user