home.js 555 B

1234567891011121314151617181920212223242526272829303132
  1. import { request } from '@/utils/request';
  2. /**
  3. * 获取首页
  4. * @returns
  5. */
  6. export function getHomePage(data) {
  7. return request({
  8. url: '/maintain/customer/index',
  9. method: 'get',
  10. data: data,
  11. header: {
  12. 'content-type': 'application/x-www-form-urlencoded',
  13. },
  14. });
  15. }
  16. /**
  17. * 获取当前位置
  18. * @returns
  19. */
  20. export function getCurrentLocation(data) {
  21. return request({
  22. url: '/maintain/location',
  23. method: 'get',
  24. data: data,
  25. header: {
  26. 'content-type': 'application/x-www-form-urlencoded',
  27. },
  28. });
  29. }