index.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. import request from '@/utils/request'
  2. // 获取首页信息
  3. export function loadIndexs(data) {
  4. return request({
  5. url: '/api/index',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取版本号信息
  11. // #ifdef APP || H5
  12. export function getAppBBH(data) {
  13. return request({
  14. url: '/api/version',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. // #endif
  20. // 消息通知
  21. export function articleList(data, id) {
  22. return request({
  23. url: '/api/article/list/' + id,
  24. method: 'get',
  25. data
  26. });
  27. }
  28. // 文章详细
  29. export function details(data, id) {
  30. return request({
  31. url: '/api/article/details/' + id,
  32. method: 'get',
  33. data
  34. });
  35. }
  36. // 是否已读
  37. export function notify_read(data) {
  38. return request({
  39. url: '/api/car/notify_read',
  40. method: 'post',
  41. data
  42. });
  43. }
  44. // 报警信息
  45. export function notify(data) {
  46. return request({
  47. url: '/api/car/notify',
  48. method: 'post',
  49. data
  50. });
  51. }
  52. // 获取首页引导图
  53. export function guide_map(data) {
  54. return request({
  55. url: '/api/guide_map',
  56. method: 'get',
  57. data
  58. });
  59. }
  60. //套餐列表
  61. export function getRents(data) {
  62. return request({
  63. url: '/api/rent',
  64. method: 'get',
  65. data
  66. });
  67. }
  68. //创建套餐订单
  69. export function rentCreate(data) {
  70. return request({
  71. url: '/api/rent/create',
  72. method: 'post',
  73. data
  74. });
  75. }
  76. //电池核销
  77. export function rentVerific(data) {
  78. return request({
  79. url: '/api/order/rent_verific',
  80. method: 'post',
  81. data
  82. });
  83. }
  84. //普通商品核销
  85. export function orderVerific(data) {
  86. return request({
  87. url: '/api/order/order_verific',
  88. method: 'post',
  89. data
  90. });
  91. }
  92. //上传身份证
  93. export function idcards(data) {
  94. return request({
  95. url: '/api/user/idcard',
  96. method: 'post',
  97. data
  98. });
  99. }
  100. export function certification(data) {
  101. return request({
  102. url: '/api/user/certification',
  103. method: 'post',
  104. data
  105. });
  106. }
  107. //
  108. export function contractCreate(data) {
  109. return request({
  110. url: '/api/rent/contract_create',
  111. method: 'post',
  112. data
  113. });
  114. }
  115. export function createSignFLow(data) {
  116. return request({
  117. url: '/api/rent/createSignFLow',
  118. method: 'post',
  119. data
  120. });
  121. }
  122. //创建免押
  123. export function rentFree(data) {
  124. return request({
  125. url: '/api/rent/free',
  126. method: 'post',
  127. data
  128. });
  129. }
  130. //我的活动
  131. export function record(data) {
  132. return request({
  133. url: '/api/article/record',
  134. method: 'get',
  135. data
  136. });
  137. }
  138. //活动报名
  139. export function joinAction(data) {
  140. return request({
  141. url: '/api/article/apply',
  142. method: 'post',
  143. data
  144. });
  145. }