comment.js 493 B

12345678910111213141516171819202122
  1. "use strict";
  2. const sheep_request_index = require("../../request/index.js");
  3. const CommentApi = {
  4. // 获得商品评价分页
  5. getCommentPage: (spuId, pageNo, pageSize, type) => {
  6. return sheep_request_index.request({
  7. url: "/product/comment/page",
  8. method: "GET",
  9. params: {
  10. spuId,
  11. pageNo,
  12. pageSize,
  13. type
  14. },
  15. custom: {
  16. showLoading: false,
  17. showError: false
  18. }
  19. });
  20. }
  21. };
  22. exports.CommentApi = CommentApi;