addressBoook.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import request from '../utils/request';
  2. // 地址铺-列表
  3. export function getUserAddressList(data) {
  4. return request({
  5. url: '/tianzong/client/address/getUserAddressList',
  6. method: 'post',
  7. data: data,
  8. emulateJSON: true
  9. })
  10. }
  11. // 地址铺-新增
  12. export function saveAddress(data) {
  13. return request({
  14. url: '/tianzong/client/address/saveAddress',
  15. method: 'post',
  16. data: data,
  17. emulateJSON: true
  18. })
  19. }
  20. // 地址铺-详情
  21. export function findUserAddressInfoById(data) {
  22. return request({
  23. url: '/tianzong/client/address/findUserAddressInfoById',
  24. method: 'post',
  25. data: data,
  26. emulateJSON: true
  27. })
  28. }
  29. // 地址铺-修改
  30. export function editUserAddressInfoById(data) {
  31. return request({
  32. url: '/tianzong/client/address/editUserAddressInfoById',
  33. method: 'post',
  34. data: data,
  35. emulateJSON: true
  36. })
  37. }
  38. // 地址铺-删除
  39. export function deleteUserAddressById(data) {
  40. return request({
  41. url: '/tianzong/client/address/deleteUserAddressById',
  42. method: 'post',
  43. data: data,
  44. emulateJSON: true
  45. })
  46. }
  47. // 地址铺-省市区
  48. export function listByParent(data) {
  49. return request({
  50. url: '/tianzong/addressCode/listByParent',
  51. method: 'post',
  52. data: data,
  53. emulateJSON: true
  54. })
  55. }
  56. // 地址铺-识别
  57. export function spiltAddress(data) {
  58. return request({
  59. url: '/tianzong/client/address/spiltAddress',
  60. method: 'post',
  61. data: data,
  62. emulateJSON: true
  63. })
  64. }