service.js 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. // 获取服务数据
  2. export function fakeSubscribeList() {
  3. return new Promise((resolute, reject) => {
  4. try {
  5. const list = [{
  6. img: '/static/images/service/s1.png',
  7. name: '违章查询',
  8. url: ''
  9. },
  10. {
  11. img: '/static/images/service/s2.png',
  12. name: '限行信息',
  13. url: ''
  14. },
  15. {
  16. img: '/static/images/service/s3.png',
  17. name: '油价查询',
  18. url: ''
  19. },
  20. {
  21. img: '/static/images/service/s4.png',
  22. name: '消费记录',
  23. url: ''
  24. },
  25. {
  26. img: '/static/images/service/s5.png',
  27. name: '保养记录',
  28. url: ''
  29. },
  30. {
  31. img: '/static/images/service/s6.png',
  32. name: '油耗记录',
  33. url: ''
  34. },
  35. {
  36. img: '/static/images/service/s7.png',
  37. name: '周边查询',
  38. url: ''
  39. },
  40. {
  41. img: '/static/images/service/s8.png',
  42. name: '教育咨询',
  43. url: ''
  44. }
  45. ];
  46. resolute(list);
  47. } catch (e) {
  48. //模拟接口请求失败
  49. reject(e);
  50. }
  51. })
  52. }
  53. export function fakeServiceList() {
  54. return new Promise((resolute, reject) => {
  55. try {
  56. const list = [{
  57. name: '交通出行',
  58. list: [{
  59. img: '/static/images/service/t1.png',
  60. name: '地铁',
  61. url: ''
  62. },
  63. {
  64. img: '/static/images/service/t2.png',
  65. name: '公交',
  66. url: ''
  67. },
  68. {
  69. img: '/static/images/service/t3.png',
  70. name: '自驾',
  71. url: ''
  72. },
  73. {
  74. img: '/static/images/service/t4.png',
  75. name: '飞机',
  76. url: ''
  77. },
  78. {
  79. img: '/static/images/service/t5.png',
  80. name: '动车',
  81. url: ''
  82. },
  83. {
  84. img: '/static/images/service/t6.png',
  85. name: '火车',
  86. url: ''
  87. },
  88. {
  89. img: '/static/images/service/t7.png',
  90. name: '摩托车',
  91. url: ''
  92. },
  93. {
  94. img: '/static/images/service/t8.png',
  95. name: '自行车',
  96. url: ''
  97. }
  98. ]
  99. },
  100. {
  101. name: '社会保险',
  102. list: [{
  103. img: '/static/images/service/b1.png',
  104. name: '人身保险',
  105. url: ''
  106. },
  107. {
  108. img: '/static/images/service/b2.png',
  109. name: '财产保险',
  110. url: ''
  111. },
  112. {
  113. img: '/static/images/service/b3.png',
  114. name: '火灾保险',
  115. url: ''
  116. },
  117. {
  118. img: '/static/images/service/b4.png',
  119. name: '运输保险',
  120. url: ''
  121. },
  122. {
  123. img: '/static/images/service/b5.png',
  124. name: '工程保险',
  125. url: ''
  126. },
  127. {
  128. img: '/static/images/service/b6.png',
  129. name: '盗窃保险',
  130. url: ''
  131. },
  132. {
  133. img: '/static/images/service/b7.png',
  134. name: '农业保险',
  135. url: ''
  136. },
  137. {
  138. img: '/static/images/service/b8.png',
  139. name: '信用保险',
  140. url: ''
  141. }
  142. ]
  143. },
  144. ]
  145. resolute(list);
  146. } catch (e) {
  147. //模拟接口请求失败
  148. reject(e);
  149. }
  150. })
  151. }