comment.js 434 B

12345678910111213141516171819202122
  1. import request from '@/sheep/request';
  2. const CommentApi = {
  3. // 获得商品评价分页
  4. getCommentPage: (spuId, pageNo, pageSize, type) => {
  5. return request({
  6. url: '/product/comment/page',
  7. method: 'GET',
  8. params: {
  9. spuId,
  10. pageNo,
  11. pageSize,
  12. type,
  13. },
  14. custom: {
  15. showLoading: false,
  16. showError: false,
  17. },
  18. });
  19. },
  20. };
  21. export default CommentApi;