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

199 lines
3.4 KiB

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