【商品详情】
1. 接入评论逻辑
This commit is contained in:
1 parent
8fbdec3738
commit
33311ae19c
3 files changed
+69
-61
No files matched your search
@@ -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
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user