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

176 lines
3.3 KiB

  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(4)">返回上一步</view>
  13. <view class="btn" @click="show = true">确认预约</view>
  14. </view>
  15. <u-popup :show="show" mode="center" :round="8">
  16. <view class="popupCon">
  17. <view class="h2">再次确认预约信息</view>
  18. <view class="content">
  19. <view class="row">
  20. <view class="lab">预约类型</view>
  21. <view class="val">xxx</view>
  22. </view>
  23. <view class="row">
  24. <view class="lab">预约科目</view>
  25. <view class="val">xxx</view>
  26. </view>
  27. <view class="row">
  28. <view class="lab">预约考场</view>
  29. <view class="val">2023/08/08 08:009:00</view>
  30. </view>
  31. <view class="row">
  32. <view class="lab">预约车型</view>
  33. <view class="val">xxx</view>
  34. </view>
  35. <view class="row">
  36. <view class="lab">预约车辆</view>
  37. <view class="val">xxx</view>
  38. </view>
  39. <view class="row">
  40. <view class="lab">预约时间</view>
  41. <view class="val">2023/08/08 08:009:00</view>
  42. </view>
  43. </view>
  44. <view class="btn_row">
  45. <view class="border btn" @click="show = false">返回修改</view>
  46. <view class="btn">确认</view>
  47. </view>
  48. </view>
  49. </u-popup>
  50. </view>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. list: [{
  57. text: '00001',
  58. id: 1
  59. },
  60. {
  61. text: '00002',
  62. id: 1
  63. },
  64. {
  65. text: '00003',
  66. id: 1
  67. },
  68. ],
  69. show: true
  70. }
  71. },
  72. methods: {
  73. changeStep(val) {
  74. this.$emit('changeStep', val)
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .card {
  81. padding: 28rpx 24rpx;
  82. }
  83. .list {
  84. display: flex;
  85. flex-wrap: wrap;
  86. display: flex;
  87. justify-content: space-between;
  88. .listItem {
  89. width: 32.4%;
  90. height: 120rpx;
  91. background: #F8F8F8;
  92. border-radius: 12rpx;
  93. font-weight: 500;
  94. text-align: center;
  95. font-size: 24rpx;
  96. display: flex;
  97. flex-direction: column;
  98. align-items: center;
  99. justify-content: center;
  100. .num {
  101. font-size: 28rpx;
  102. font-weight: 600;
  103. margin-bottom: 10rpx;
  104. }
  105. &.active {
  106. width: 200rpx;
  107. height: 120rpx;
  108. background: rgba(25, 137, 250, 0.1);
  109. border-radius: 12rpx;
  110. border: 2rpx solid $themC;
  111. color: $themC;
  112. }
  113. }
  114. }
  115. .btn_row {
  116. display: flex;
  117. justify-content: space-between;
  118. .btn {
  119. width: 47%;
  120. height: 72rpx;
  121. background: #1989FA;
  122. border-radius: 8rpx;
  123. font-size: 28rpx;
  124. color: #fff;
  125. text-align: center;
  126. line-height: 72rpx;
  127. &.border {
  128. background: rgba(25, 137, 250, 0.1);
  129. border: 2rpx solid $themC;
  130. color: $themC;
  131. }
  132. }
  133. }
  134. .popupCon {
  135. padding: 30rpx 50rpx;
  136. .h2 {
  137. font-weight: 600;
  138. color: #333333;
  139. line-height: 70rpx;
  140. font-size: 36rpx;
  141. text-align: center;
  142. }
  143. .content {
  144. padding-bottom: 20rpx;
  145. .row {
  146. padding: 22rpx 0;
  147. display: flex;
  148. font-size: 28rpx;
  149. align-items: center;
  150. .lab {
  151. width: 180rpx;
  152. color: #686B73;
  153. }
  154. .val {
  155. flex: 1;
  156. font-weight: 500;
  157. }
  158. }
  159. }
  160. }
  161. </style>