cart.js 408 B

1234567891011121314151617181920212223242526
  1. import request from '@/utils/request'
  2. export function getCartList(data) {
  3. return request({
  4. url: '/api/cart/list',
  5. method: 'get',
  6. data
  7. });
  8. }
  9. // 修改购物车数量
  10. export function getCartNum(data) {
  11. return request({
  12. url: '/api/cart/num',
  13. method: 'post',
  14. data
  15. });
  16. }
  17. //删除购物车
  18. export function cartDel(data) {
  19. return request({
  20. url: '/api/cart/del',
  21. method: 'post',
  22. data
  23. });
  24. }