login.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import request from '@/utils/request'
  2. export function login(data = {}) {
  3. return request({
  4. 'url': '/common/app/login',
  5. headers: {
  6. isToken: false
  7. },
  8. isLoading: true,
  9. method: 'post',
  10. data,
  11. timeout: 20000
  12. })
  13. }
  14. export function loginTemp(data = {}) {
  15. return request({
  16. 'url': '/common/app/login/temp',
  17. headers: {
  18. isToken: false
  19. },
  20. isLoading: true,
  21. method: 'post',
  22. data,
  23. timeout: 20000
  24. })
  25. }
  26. export function getConfig(data = {}) {
  27. return request({
  28. 'url': '/common/app/config',
  29. headers: {
  30. isToken: false
  31. },
  32. method: 'post',
  33. data,
  34. timeout: 20000
  35. })
  36. }
  37. export function getVersion(data = {}) {
  38. return request({
  39. 'url': '/common/app/version',
  40. headers: {
  41. isToken: false
  42. },
  43. method: 'post',
  44. data,
  45. timeout: 20000
  46. })
  47. }
  48. export function getAllImgList(data = {}) {
  49. return request({
  50. 'url': '/common/app/xiaochengxu',
  51. headers: {
  52. isToken: true
  53. },
  54. method: 'post',
  55. data,
  56. timeout: 20000
  57. })
  58. }