学员端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
1.9 KiB

  1. <template>
  2. <view class="step3">
  3. <searchBox placeholder="搜索车辆编号或车牌号"></searchBox>
  4. <view class="card">
  5. <view class="list">
  6. <view class="listItem" v-for="(item,index) in list" :key="index" :class="{active: index==1}">
  7. <view class="num">{{index+1}}号车</view>
  8. <view class="text">{{ item.text }}</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="btn_row" style="margin-top: 108rpx;">
  13. <view class="border btn" @click="changeStep(2)">返回上一步</view>
  14. <view class="btn" @click="changeStep(4)">下一步</view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. list: [{
  23. text: '00001',
  24. id: 1
  25. },
  26. {
  27. text: '00002',
  28. id: 1
  29. },
  30. {
  31. text: '00003',
  32. id: 1
  33. },
  34. ],
  35. show: false
  36. }
  37. },
  38. methods: {
  39. changeStep(val) {
  40. this.$emit('changeStep', val)
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .card {
  47. padding: 28rpx 24rpx;
  48. }
  49. .list {
  50. display: flex;
  51. flex-wrap: wrap;
  52. display: flex;
  53. justify-content: space-between;
  54. .listItem {
  55. width: 32.4%;
  56. height: 120rpx;
  57. background: #F8F8F8;
  58. border-radius: 12rpx;
  59. font-weight: 500;
  60. text-align: center;
  61. font-size: 24rpx;
  62. display: flex;
  63. flex-direction: column;
  64. align-items: center;
  65. justify-content: center;
  66. .num {
  67. font-size: 28rpx;
  68. font-weight: 600;
  69. margin-bottom: 10rpx;
  70. }
  71. &.active {
  72. width: 200rpx;
  73. height: 120rpx;
  74. background: rgba(25, 137, 250, 0.1);
  75. border-radius: 12rpx;
  76. border: 2rpx solid $themC;
  77. color: $themC;
  78. }
  79. }
  80. }
  81. .btn_row {
  82. display: flex;
  83. justify-content: space-between;
  84. .btn {
  85. width: 47%;
  86. height: 72rpx;
  87. background: #1989FA;
  88. border-radius: 8rpx;
  89. font-size: 28rpx;
  90. color: #fff;
  91. text-align: center;
  92. line-height: 72rpx;
  93. &.border {
  94. background: rgba(25, 137, 250, 0.1);
  95. border: 2rpx solid $themC;
  96. color: $themC;
  97. }
  98. }
  99. }
  100. </style>