index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view>
  3. <power-change-header></power-change-header>
  4. <view class="changeCurrent">
  5. <view class="info">
  6. <view><image src="../../static/icon7.png"></image></view>
  7. <view>车辆已上锁,换电完成车辆已上锁</view>
  8. </view>
  9. <view class="times">
  10. 2022-12-14 01:32:28 | 渝AUU988
  11. </view>
  12. </view>
  13. <view class="timeline">
  14. <view class="timeinfo">
  15. <view class="list" v-for="(item,index) in datetime" :key="index">
  16. <view>{{item.time}}</view>
  17. <view>{{item.date}}</view>
  18. </view>
  19. </view>
  20. <view class="line">
  21. <uni-steps :options="options" :active="2" direction="column"></uni-steps>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. datetime:[
  31. {
  32. time: '21:13:59',
  33. date: '2018-11-11'
  34. },
  35. {
  36. time: '21:13:59',
  37. date: '2018-11-11'
  38. },
  39. {
  40. time: '21:13:59',
  41. date: '2018-11-11'
  42. },
  43. {
  44. time: '21:13:59',
  45. date: '2018-11-11'
  46. },
  47. {
  48. time: '21:13:59',
  49. date: '2018-11-11'
  50. },
  51. {
  52. time: '21:13:59',
  53. date: '2018-11-11'
  54. },
  55. {
  56. time: '21:13:59',
  57. date: '2018-11-11'
  58. },
  59. {
  60. time: '21:13:59',
  61. date: '2018-11-11'
  62. }
  63. ],
  64. options:[
  65. {title: '车辆已上锁、换电完成'},
  66. {title: '站内换电条件验证成功、开始自动换电'},
  67. {title: '站内换电条件验证'},
  68. {title: '司机发起换电申请'},
  69. {title: '车辆已下电、车辆已解锁'},
  70. {title: '车站连接成功,云端开始换电鉴权'},
  71. {title: '车牌识别成功'},
  72. {title: '车辆驶入初定位,开始车牌识别,开始车站连接'},
  73. ]
  74. }
  75. },
  76. methods: {
  77. }
  78. }
  79. </script>
  80. <style lang="scss" scoped>
  81. .timeline{
  82. padding:0 58rpx;
  83. display: flex;
  84. margin-top: 60rpx;
  85. .timeinfo{
  86. display: flex;
  87. flex-direction: column;
  88. text-align: right;
  89. .list{
  90. display: flex;
  91. flex-direction: column;
  92. width: 100%;
  93. height: 102rpx;
  94. color: #c9cdd4;
  95. font-size: 28rpx;
  96. view:first-child{
  97. color:#86909c;
  98. }
  99. }
  100. }
  101. .line{
  102. flex: 1;
  103. }
  104. }
  105. .changeCurrent{
  106. width: 690rpx;
  107. margin: 30rpx auto;
  108. height: 180rpx;
  109. background-image: url('@/static/change-bg.png');
  110. background-size: 100% 100%;
  111. padding: 25rpx;
  112. box-sizing: border-box;
  113. display: flex;
  114. flex-direction:column;
  115. justify-content: space-around;
  116. .info{
  117. display: flex;
  118. color: #fff;
  119. font-size: 30rpx;
  120. font-weight: bold;
  121. line-height: 36rpx;
  122. image{
  123. width: 60rpx;
  124. height: 60rpx;
  125. padding-right: 25rpx;
  126. }
  127. view:last-child{
  128. padding-top: 12rpx;
  129. }
  130. }
  131. .times{
  132. color:#ededed;
  133. text-indent: 10rpx;
  134. }
  135. }
  136. </style>