【商品详情】

1. 接入评论逻辑
This commit is contained in:
YunaiV committed 2023-06-10 00:17:07 +08:00
1 parent 8fbdec3738
commit 33311ae19c
3 files changed
+69 -61

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import request from "@/utils/request.js";
// 获得商品的评价统计
export function getCommentStatistics(spuId) {
return request.get('app-api/product/comment/statistics', {
spuId
});
}
// 获得最近的 n 条商品评价
export function getCommentList(spuId) {
return request.get('app-api/product/comment/list', {
spuId
});
}