chargeProcess.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. import request from '../utils/request.js';
  2. import request2 from '../utils/requestParking.js';
  3. export function personalCenter(data) {
  4. return request({
  5. method: 'post',
  6. data: data,
  7. url: '/mobile/regUser/personalCenter'
  8. })
  9. }
  10. export function updateContractSignTime(data) {
  11. return request({
  12. method: 'post',
  13. data: data,
  14. url: '/mobile/regUser/updateContractSignTime'
  15. })
  16. }
  17. export function readyToTimingCharging(data) {
  18. return request({
  19. method: 'post',
  20. data: data,
  21. url: '/mobile/chargingCar/readyToTimingCharging'
  22. })
  23. }
  24. export function lockDown(data) {
  25. return request({
  26. method: 'post',
  27. data: data,
  28. url: '/mobile/chargingCar/lockDown'
  29. })
  30. }
  31. export function getTemporaryCarNumByOpenId(data) {
  32. return request2({
  33. method: 'post',
  34. data: {
  35. openId:data
  36. },
  37. timeout:5*1000,
  38. url: '/parkingRecord/getTemporaryCarNumByOpenId'
  39. })
  40. }
  41. export function chargingDetail(data) {
  42. return request({
  43. method: 'get',
  44. data: data,
  45. url: '/mobile/chargingCar/chargingDetail'
  46. })
  47. }
  48. export function chargingDeviceGunDetail(data) {
  49. return request({
  50. method: 'get',
  51. data: data,
  52. url: '/mobile/chargingCar/chargingDeviceGunDetail'
  53. })
  54. }
  55. export function readyToCharging(data) {
  56. return request({
  57. method: 'post',
  58. data: data,
  59. url: '/mobile/chargingCar/readyToCharging'
  60. })
  61. }
  62. export function startCarCharging(data) {
  63. return request({
  64. method: 'post',
  65. data: data,
  66. url: '/mobile/command/startCarCharging'
  67. })
  68. }
  69. export function stopCarCharging(data) {
  70. return request({
  71. method: 'post',
  72. data: data,
  73. url: '/mobile/command/stopCarCharging'
  74. })
  75. }
  76. export function getRateByRecordId(data) {
  77. return request({
  78. method: 'post',
  79. data: data,
  80. url: '/mobile/quickChargeActivity/getRateByRecordId'
  81. })
  82. }
  83. export function useCoupon(data) {
  84. return request({
  85. method: 'post',
  86. data: data,
  87. url: '/mobile/chargingCouponApi/useCoupon'
  88. })
  89. }
  90. export function userCard(data) {
  91. return request({
  92. method: 'get',
  93. data: data,
  94. url: '/mobile/regUserCard/userCard'
  95. })
  96. }