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

196 lines
3.2 KiB

  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(1)">返回上一步</view>
  7. <view class="btn" @click="changeStep(3)">下一步</view>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. }
  17. },
  18. mounted() {
  19. },
  20. methods: {
  21. changeStep(val) {
  22. this.$emit('changeStep', val)
  23. },
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .poz_btn {
  29. position: fixed;
  30. bottom: 0;
  31. left: 0;
  32. padding: 12rpx 32rpx;
  33. width: 100%;
  34. background: #F6F6F6;
  35. .btn_row {
  36. display: flex;
  37. justify-content: space-between;
  38. padding-bottom: 20rpx;
  39. .btn {
  40. width: 47%;
  41. height: 72rpx;
  42. background: #1989FA;
  43. border-radius: 8rpx;
  44. font-size: 28rpx;
  45. color: #fff;
  46. text-align: center;
  47. line-height: 72rpx;
  48. &.border {
  49. background: rgba(25, 137, 250, 0.1);
  50. border: 2rpx solid $themC;
  51. color: $themC;
  52. }
  53. }
  54. }
  55. }
  56. .card {
  57. width: 100%;
  58. margin-bottom: 24rpx;
  59. overflow: hidden;
  60. .dateBox {
  61. padding: 36rpx 0 40rpx 0;
  62. .month-row {
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. margin-bottom: 36rpx;
  67. .month {
  68. font-size: 32rpx;
  69. color: $themC;
  70. }
  71. .arrow {
  72. margin-left: 6rpx;
  73. }
  74. }
  75. .date_row {
  76. width: 100%;
  77. height: 100rpx;
  78. position: relative;
  79. .icon {
  80. width: 40rpx;
  81. height: 40rpx;
  82. background: rgba(51,51,51,0.18);
  83. backdrop-filter: blur(4rpx);
  84. position: absolute;
  85. top: 50%;
  86. transform: translateY(-50%);
  87. display: flex;
  88. align-items: center;
  89. justify-content: center;
  90. border-radius: 50%;
  91. &.left {
  92. left: 16rpx;
  93. }
  94. &.right {
  95. right: 16rpx;
  96. }
  97. }
  98. .dateArr {
  99. display: flex;
  100. padding: 0 70rpx;
  101. // justify-content: space-between;
  102. &.oneDate {
  103. justify-content: center;
  104. }
  105. .dateWidth {
  106. width: 20%;
  107. display: flex;
  108. justify-content: center;
  109. }
  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 40rpx 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.4;
  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. </style>