学员端小程序
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.

111 lines
2.0 KiB

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