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

222 lines
4.4 KiB

1 year ago
  1. <template>
  2. <view class="step1">
  3. <view class="card">
  4. <view class="dateBox">
  5. <view class="month-row">
  6. <view class="month">2032.08</view>
  7. <view class="arrow">
  8. <u-icon name="arrow-down" :size="12" :color="'#1989FA'"></u-icon>
  9. </view>
  10. </view>
  11. <view class="date_row">
  12. <view class="icon left">
  13. <u-icon name="arrow-left" :size="12" :color="'#fff'"></u-icon>
  14. </view>
  15. <view class="dateArr">
  16. <view class="date" v-for="(item,index) in dateArr" :key="index" :class="{active: index==1}">
  17. <view class="week">{{ item.week }}</view>
  18. <view class="num">{{ item.num }}</view>
  19. </view>
  20. </view>
  21. <view class="icon right">
  22. <u-icon name="arrow-right" :size="12" :color="'#fff'"></u-icon>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="card">
  28. <view class="timeCon">
  29. <view class="h2">上午</view>
  30. <view class="time_box">
  31. <view class="time_item">
  32. <view class="lab">已过期</view>
  33. <view class="time">06:00-07:00</view>
  34. </view>
  35. <view class="time_item">
  36. <view class="lab">已约满</view>
  37. <view class="time">06:00-07:00</view>
  38. </view>
  39. <view class="time_item">
  40. <view class="lab">可预约</view>
  41. <view class="time">06:00-07:00</view>
  42. </view>
  43. </view>
  44. <view class="h2">下午</view>
  45. <view class="time_box">
  46. <view class="time_item">
  47. <view class="lab">已过期</view>
  48. <view class="time">06:00-07:00</view>
  49. </view>
  50. <view class="time_item">
  51. <view class="lab">已约满</view>
  52. <view class="time">06:00-07:00</view>
  53. </view>
  54. <view class="time_item">
  55. <view class="lab">可预约</view>
  56. <view class="time">06:00-07:00</view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="btn" @click="changeStep(2)">下一步</view>
  62. </view>
  63. </template>
  64. <script>
  65. export default {
  66. data() {
  67. return {
  68. dateArr: [
  69. {week: '一', num: '08'},
  70. {week: '二', num: '09'},
  71. {week: '三', num: '10'},
  72. {week: '四', num: '11'},
  73. {week: '五', num: '12'},
  74. ]
  75. }
  76. },
  77. methods: {
  78. changeStep(val) {
  79. this.$emit('changeStep', val)
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .card {
  86. width: 100%;
  87. margin-bottom: 24rpx;
  88. overflow: hidden;
  89. .dateBox {
  90. padding: 36rpx 0 40rpx 0;
  91. .month-row {
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. margin-bottom: 36rpx;
  96. .month {
  97. font-size: 32rpx;
  98. color: $themC;
  99. }
  100. .arrow {
  101. margin-left: 6rpx;
  102. }
  103. }
  104. .date_row {
  105. width: 100%;
  106. height: 100rpx;
  107. position: relative;
  108. .icon {
  109. width: 40rpx;
  110. height: 40rpx;
  111. background: rgba(51,51,51,0.18);
  112. backdrop-filter: blur(4rpx);
  113. position: absolute;
  114. top: 50%;
  115. transform: translateY(-50%);
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. border-radius: 50%;
  120. &.left {
  121. left: 16rpx;
  122. }
  123. &.right {
  124. right: 16rpx;
  125. }
  126. }
  127. .dateArr {
  128. display: flex;
  129. padding: 0 70rpx;
  130. justify-content: space-between;
  131. .date {
  132. width: 74rpx;
  133. height: 100rpx;
  134. border-radius: 16rpx;
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. justify-content: center;
  139. font-size: 28rpx;
  140. color: #333;
  141. &.active {
  142. background: rgba(25,137,250,0.1);
  143. border: 2rpx solid #1989FA;
  144. color: $themC;
  145. }
  146. .week {
  147. }
  148. .num {
  149. margin-top: 4rpx;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. }
  156. .card {
  157. .timeCon {
  158. padding: 0 24rpx 40rpx 24rpx;
  159. }
  160. .h2 {
  161. line-height: 90rpx;
  162. font-weight: 500;
  163. color: #333;
  164. }
  165. .time_box {
  166. display: flex;
  167. flex-wrap: wrap;
  168. justify-content: space-between;
  169. .time_item {
  170. width: 30%;
  171. height: 120rpx;
  172. background: #F8F8F8;
  173. border-radius: 12rpx;
  174. display: flex;
  175. flex-direction: column;
  176. justify-content: center;
  177. align-items: center;
  178. border-radius: 12rpx;
  179. color: #333;
  180. &.active {
  181. background: rgba(25,137,250,0.1);
  182. border: 2rpx solid #1989FA;
  183. color: $themC;
  184. }
  185. &.disable {
  186. opacity: 0.5;
  187. }
  188. .lab {
  189. font-size: 28rpx;
  190. font-weight: 500;
  191. }
  192. .time {
  193. font-size: 24rpx;
  194. margin-top: 4rpx;
  195. }
  196. }
  197. }
  198. }
  199. .btn {
  200. width: 47%;
  201. height: 72rpx;
  202. background: #1989FA;
  203. border-radius: 8rpx;
  204. font-size: 28rpx;
  205. color: #fff;
  206. text-align: center;
  207. line-height: 72rpx;
  208. margin: 108rpx auto 50rpx auto;
  209. }
  210. </style>