index.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. import request from '../utils/request.js';
  2. import Qs from 'qs';
  3. export function test(data) {
  4. return request({
  5. method: 'post',
  6. data: data,
  7. url: '/test/post'
  8. })
  9. }
  10. export function chargingData(data) {
  11. return request({
  12. method: 'post',
  13. data: data,
  14. url: '/mobile/charging/chargingData'
  15. })
  16. }
  17. export function marketingData(data) {
  18. return request({
  19. method: 'post',
  20. data: data,
  21. url: '/mobile/charging/marketingData'
  22. })
  23. }
  24. export function findChargeData(data) {
  25. return request({
  26. method: 'get',
  27. data: data,
  28. url: '/mobile/regUser/findChargeData'
  29. })
  30. }
  31. export function personalCenter(data) {
  32. return request({
  33. method: 'post',
  34. data: data,
  35. url: '/mobile/regUser/personalCenter'
  36. })
  37. }
  38. export function logout(data) {
  39. return request({
  40. method: 'get',
  41. data: data,
  42. url: '/mobile/regUser/logout'
  43. })
  44. }
  45. export function stopCharging(data) {
  46. return request({
  47. method: 'post',
  48. data: data,
  49. url: '/mobile/command/stopCharging'
  50. })
  51. }
  52. export function startCharging(data) {
  53. return request({
  54. method: 'post',
  55. data: data,
  56. url: '/mobile/command/startCharging'
  57. })
  58. }
  59. export function accountRecordData(data) {
  60. return request({
  61. method: 'post',
  62. data: data,
  63. url: '/mobile/accountRecord/accountRecordData'
  64. })
  65. }
  66. export function accountDetail(id) {
  67. return request({
  68. method: 'get',
  69. url: '/mobile/accountRecord/accountDetail?id='+id
  70. })
  71. }
  72. export function chargingRecordData(data) {
  73. return request({
  74. method: 'post',
  75. data: data,
  76. url: '/mobile/chargingRecord/chargingRecordData'
  77. })
  78. }
  79. export function chargingDetail(id) {
  80. return request({
  81. method: 'get',
  82. url: '/mobile/chargingRecord/chargingDetail?id='+id
  83. })
  84. }
  85. export function passengerMessageNoReadNum(data) {
  86. return request({
  87. url: '/mobile/passengerApi/passengerMessageNoReadNum',
  88. data:data,
  89. method: 'post',
  90. })
  91. }
  92. export function chargingDeviceData(data) {
  93. return request({
  94. method: 'post',
  95. data: data,
  96. url: '/mobile/charging/chargingDeviceData'
  97. })
  98. }