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

255 lines
4.6 KiB

1 year ago
  1. <template>
  2. <view class="step1">
  3. <pickDateTimer/>
  4. <view class="poz_btn">
  5. <view class="btn_row" >
  6. <view class="border btn" @click="changeStep(3)">返回上一步</view>
  7. <view class="btn" @click="show = true">确认预约</view>
  8. </view>
  9. </view>
  10. <u-popup :show="show" mode="center" :round="8">
  11. <view class="popupCon">
  12. <view class="h2">再次确认预约信息</view>
  13. <view class="content">
  14. <view class="row">
  15. <view class="lab">预约类型</view>
  16. <view class="val">实操训练预约</view>
  17. </view>
  18. <view class="row">
  19. <view class="lab">预约科目</view>
  20. <view class="val">科目二</view>
  21. </view>
  22. <view class="row">
  23. <view class="lab">预约场地</view>
  24. <view class="val">xxx场地</view>
  25. </view>
  26. <view class="row">
  27. <view class="lab">预约车辆</view>
  28. <view class="val">02号车</view>
  29. </view>
  30. <view class="row">
  31. <view class="lab">预约时间</view>
  32. <view class="val">2023/08/08 08:009:00</view>
  33. </view>
  34. </view>
  35. <view class="btn_row">
  36. <view class="border btn" @click="show = false">返回修改</view>
  37. <view class="btn">确认</view>
  38. </view>
  39. </view>
  40. </u-popup>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. dateArr: [
  48. {week: '一', num: '08'},
  49. {week: '二', num: '09'},
  50. {week: '三', num: '10'},
  51. {week: '四', num: '11'},
  52. {week: '五', num: '12'},
  53. ],
  54. show: false
  55. }
  56. },
  57. methods: {
  58. changeStep(val) {
  59. this.$emit('changeStep', val)
  60. }
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .card {
  66. width: 100%;
  67. overflow: hidden;
  68. .dateBox {
  69. padding: 36rpx 0 40rpx 0;
  70. .month-row {
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. margin-bottom: 36rpx;
  75. .month {
  76. font-size: 32rpx;
  77. color: $themC;
  78. }
  79. .arrow {
  80. margin-left: 6rpx;
  81. }
  82. }
  83. .date_row {
  84. width: 100%;
  85. height: 100rpx;
  86. position: relative;
  87. .icon {
  88. width: 40rpx;
  89. height: 40rpx;
  90. background: rgba(51,51,51,0.18);
  91. backdrop-filter: blur(4rpx);
  92. position: absolute;
  93. top: 50%;
  94. transform: translateY(-50%);
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. border-radius: 50%;
  99. &.left {
  100. left: 16rpx;
  101. }
  102. &.right {
  103. right: 16rpx;
  104. }
  105. }
  106. .dateArr {
  107. display: flex;
  108. padding: 0 70rpx;
  109. justify-content: space-between;
  110. .date {
  111. width: 74rpx;
  112. height: 100rpx;
  113. border-radius: 16rpx;
  114. display: flex;
  115. flex-direction: column;
  116. align-items: center;
  117. justify-content: center;
  118. font-size: 28rpx;
  119. color: #333;
  120. &.active {
  121. background: rgba(25,137,250,0.1);
  122. border: 2rpx solid #1989FA;
  123. color: $themC;
  124. }
  125. .week {
  126. }
  127. .num {
  128. margin-top: 4rpx;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. .card {
  136. .timeCon {
  137. padding: 0 24rpx 70rpx 24rpx;
  138. }
  139. .h2 {
  140. line-height: 90rpx;
  141. font-weight: 500;
  142. color: #333;
  143. }
  144. .time_box {
  145. display: flex;
  146. flex-wrap: wrap;
  147. justify-content: space-between;
  148. .time_item {
  149. width: 30%;
  150. height: 120rpx;
  151. background: #F8F8F8;
  152. border-radius: 12rpx;
  153. display: flex;
  154. flex-direction: column;
  155. justify-content: center;
  156. align-items: center;
  157. border-radius: 12rpx;
  158. color: #333;
  159. &.active {
  160. background: rgba(25,137,250,0.1);
  161. border: 2rpx solid #1989FA;
  162. color: $themC;
  163. }
  164. &.disable {
  165. opacity: 0.5;
  166. }
  167. .lab {
  168. font-size: 28rpx;
  169. font-weight: 500;
  170. }
  171. .time {
  172. font-size: 24rpx;
  173. margin-top: 4rpx;
  174. }
  175. }
  176. }
  177. }
  178. .poz_btn {
  179. position: fixed;
  180. bottom: 0;
  181. left: 0;
  182. padding: 12rpx 32rpx;
  183. width: 100%;
  184. background: #F6F6F6;
  185. }
  186. .btn_row {
  187. display: flex;
  188. justify-content: space-between;
  189. padding-bottom: 30rpx;
  190. .btn {
  191. width: 47%;
  192. height: 72rpx;
  193. background: #1989FA;
  194. border-radius: 8rpx;
  195. font-size: 28rpx;
  196. color: #fff;
  197. text-align: center;
  198. line-height: 72rpx;
  199. &.border {
  200. background: rgba(25, 137, 250, 0.1);
  201. border: 2rpx solid $themC;
  202. color: $themC;
  203. }
  204. }
  205. }
  206. .popupCon {
  207. padding: 30rpx 50rpx;
  208. .h2 {
  209. font-weight: 600;
  210. color: #333333;
  211. line-height: 70rpx;
  212. font-size: 36rpx;
  213. text-align: center;
  214. margin-bottom: 20rpx;
  215. }
  216. .content {
  217. padding-bottom: 20rpx;
  218. .row {
  219. padding: 22rpx 0;
  220. display: flex;
  221. font-size: 28rpx;
  222. align-items: center;
  223. .lab {
  224. width: 180rpx;
  225. color: #686B73;
  226. }
  227. .val {
  228. flex: 1;
  229. font-weight: 500;
  230. }
  231. }
  232. }
  233. }
  234. </style>