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

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