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

108 lines
1.9 KiB

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