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

203 lines
3.6 KiB

1 year ago
1 year ago
11 months ago
11 months ago
  1. <template>
  2. <view class="step1">
  3. <pickDate :FormData="FormData" @updatedForm="updatedForm" />
  4. <view class="poz_btn">
  5. <view class="btn_row" >
  6. <view class="border btn" @click="changeStep(1)">返回上一步</view>
  7. <view class="btn" @click="changeStep(3)">下一步</view>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. import pickDate from './pickDate'
  14. import { examSimulationCreate } from '@/config/api.js'
  15. export default {
  16. components: {pickDate},
  17. props: ['step','FormData'],
  18. data() {
  19. return {
  20. }
  21. },
  22. mounted() {
  23. },
  24. methods: {
  25. changeStep(val) {
  26. console.log(this.FormData.courseIds)
  27. if(val==3&&!this.FormData.courseIds) return this.$u.toast('请选择预约时间段')
  28. this.$emit('changeStep', val)
  29. },
  30. updatedForm(val) {
  31. this.$emit('updatedForm',val)
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .poz_btn {
  38. position: fixed;
  39. bottom: 0;
  40. left: 0;
  41. padding: 12rpx 32rpx;
  42. width: 100%;
  43. background: #F6F6F6;
  44. .btn_row {
  45. display: flex;
  46. justify-content: space-between;
  47. padding-bottom: 20rpx;
  48. .btn {
  49. width: 47%;
  50. height: 72rpx;
  51. background: #1989FA;
  52. border-radius: 8rpx;
  53. font-size: 28rpx;
  54. color: #fff;
  55. text-align: center;
  56. line-height: 72rpx;
  57. &.border {
  58. background: rgba(25, 137, 250, 0.1);
  59. border: 2rpx solid $themC;
  60. color: $themC;
  61. }
  62. }
  63. }
  64. }
  65. .card {
  66. width: 100%;
  67. margin-bottom: 24rpx;
  68. overflow: hidden;
  69. .dateBox {
  70. padding: 36rpx 0 40rpx 0;
  71. .month-row {
  72. display: flex;
  73. justify-content: center;
  74. align-items: center;
  75. margin-bottom: 36rpx;
  76. .month {
  77. font-size: 32rpx;
  78. color: $themC;
  79. }
  80. .arrow {
  81. margin-left: 6rpx;
  82. }
  83. }
  84. .date_row {
  85. width: 100%;
  86. height: 100rpx;
  87. position: relative;
  88. .icon {
  89. width: 40rpx;
  90. height: 40rpx;
  91. background: rgba(51,51,51,0.18);
  92. backdrop-filter: blur(4rpx);
  93. position: absolute;
  94. top: 50%;
  95. transform: translateY(-50%);
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. border-radius: 50%;
  100. &.left {
  101. left: 16rpx;
  102. }
  103. &.right {
  104. right: 16rpx;
  105. }
  106. }
  107. .dateArr {
  108. display: flex;
  109. padding: 0 70rpx;
  110. // justify-content: space-between;
  111. &.oneDate {
  112. justify-content: center;
  113. }
  114. .dateWidth {
  115. width: 20%;
  116. display: flex;
  117. justify-content: center;
  118. }
  119. .date {
  120. width: 74rpx;
  121. height: 100rpx;
  122. border-radius: 16rpx;
  123. display: flex;
  124. flex-direction: column;
  125. align-items: center;
  126. justify-content: center;
  127. font-size: 28rpx;
  128. color: #333;
  129. &.active {
  130. background: rgba(25,137,250,0.1);
  131. border: 2rpx solid #1989FA;
  132. color: $themC;
  133. }
  134. .week {
  135. }
  136. .num {
  137. margin-top: 4rpx;
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }
  144. .card {
  145. .timeCon {
  146. padding: 0 24rpx 40rpx 24rpx;
  147. }
  148. .h2 {
  149. line-height: 90rpx;
  150. font-weight: 500;
  151. color: #333;
  152. }
  153. .time_box {
  154. display: flex;
  155. flex-wrap: wrap;
  156. justify-content: space-between;
  157. .time_item {
  158. width: 30%;
  159. height: 120rpx;
  160. background: #F8F8F8;
  161. border-radius: 12rpx;
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: center;
  165. align-items: center;
  166. border-radius: 12rpx;
  167. color: #333;
  168. &.active {
  169. background: rgba(25,137,250,0.1);
  170. border: 2rpx solid #1989FA;
  171. color: $themC;
  172. }
  173. &.disable {
  174. opacity: 0.4;
  175. }
  176. .lab {
  177. font-size: 28rpx;
  178. font-weight: 500;
  179. }
  180. .time {
  181. font-size: 24rpx;
  182. margin-top: 4rpx;
  183. }
  184. }
  185. }
  186. }
  187. </style>