address.js 549 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request from '@/utils/request'
  2. export function getAddressList(data) {
  3. return request({
  4. url: '/api/address/list',
  5. method: 'get',
  6. data
  7. });
  8. }
  9. export function addressEdit(data) {
  10. return request({
  11. url: '/api/address/edit',
  12. method: 'post',
  13. data
  14. });
  15. }
  16. // 删除地址
  17. export function addressDel(data) {
  18. return request({
  19. url: '/api/address/del',
  20. method: 'post',
  21. data
  22. });
  23. }
  24. // 设为默认地址
  25. export function setAddressDefault(data) {
  26. return request({
  27. url: '/api/address/default/set',
  28. method: 'post',
  29. data
  30. });
  31. }