product.js 459 B

12345678910111213141516171819202122
  1. import request from '@/config/axios'
  2. // 获取商品详情
  3. export const getProductDetail = async (params) => {
  4. return await request.get({
  5. url: '/app-api/product/spu/get-detail',
  6. params
  7. })
  8. }
  9. // 获得商品评价分页
  10. export const getCommentPage = async (spuId, pageNo, pageSize, type) => {
  11. return await request.get({
  12. url: '/app-api/product/comment/page',
  13. params: {
  14. spuId,
  15. pageNo,
  16. pageSize,
  17. type,
  18. },
  19. })
  20. }