江西小程序管理端
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.

238 lines
4.9 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">
  56. <view class="text">4/4</view>
  57. <view class="icon right">
  58. <u-icon name="arrow-right" :size="12" :color="'#fff'"></u-icon>
  59. </view>
  60. </view>
  61. <view class="time">06:00-07:00</view>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="btn_row">
  67. <view class="btnBorder btn" @click="changeStep(1)">管理排课计划</view>
  68. <view class="btnBg btn" @click="changeStep(2)">编辑排课信息</view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. data() {
  75. return {
  76. dateArr: [
  77. {week: '一', num: '08'},
  78. {week: '二', num: '09'},
  79. {week: '三', num: '10'},
  80. {week: '四', num: '11'},
  81. {week: '五', num: '12'},
  82. ]
  83. }
  84. },
  85. methods: {
  86. changeStep(val) {
  87. if(val==1) {
  88. this.$goPage('/pages/recordEntry/operate/mySchedule/plan/plan')
  89. }
  90. // this.$emit('changeStep', val)
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .card {
  97. width: 100%;
  98. margin-bottom: 24rpx;
  99. overflow: hidden;
  100. .dateBox {
  101. padding: 36rpx 0 40rpx 0;
  102. .month-row {
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. margin-bottom: 36rpx;
  107. .month {
  108. font-size: 32rpx;
  109. color: $themC;
  110. }
  111. .arrow {
  112. margin-left: 6rpx;
  113. }
  114. }
  115. .date_row {
  116. width: 100%;
  117. height: 100rpx;
  118. position: relative;
  119. .icon {
  120. width: 40rpx;
  121. height: 40rpx;
  122. background: rgba(51,51,51,0.18);
  123. backdrop-filter: blur(4rpx);
  124. position: absolute;
  125. top: 50%;
  126. transform: translateY(-50%);
  127. display: flex;
  128. align-items: center;
  129. justify-content: center;
  130. border-radius: 50%;
  131. &.left {
  132. left: 16rpx;
  133. }
  134. &.right {
  135. right: 16rpx;
  136. }
  137. }
  138. .dateArr {
  139. display: flex;
  140. padding: 0 70rpx;
  141. justify-content: space-between;
  142. .date {
  143. width: 74rpx;
  144. height: 100rpx;
  145. border-radius: 16rpx;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. justify-content: center;
  150. font-size: 28rpx;
  151. color: #333;
  152. &.active {
  153. background: rgba(25,137,250,0.1);
  154. border: 2rpx solid #1989FA;
  155. color: $themC;
  156. }
  157. .week {
  158. }
  159. .num {
  160. margin-top: 4rpx;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. }
  167. .card {
  168. .timeCon {
  169. padding: 0 24rpx 40rpx 24rpx;
  170. }
  171. .h2 {
  172. line-height: 90rpx;
  173. font-weight: 500;
  174. color: #333;
  175. }
  176. .time_box {
  177. display: flex;
  178. flex-wrap: wrap;
  179. justify-content: space-between;
  180. .time_item {
  181. width: 30%;
  182. height: 120rpx;
  183. background: #F8F8F8;
  184. border-radius: 12rpx;
  185. display: flex;
  186. flex-direction: column;
  187. justify-content: center;
  188. align-items: center;
  189. border-radius: 12rpx;
  190. color: #333;
  191. &.active {
  192. background: rgba(25,137,250,0.1);
  193. border: 2rpx solid #1989FA;
  194. color: $themC;
  195. }
  196. &.disable {
  197. opacity: 0.5;
  198. }
  199. .lab {
  200. font-size: 28rpx;
  201. font-weight: 500;
  202. display: flex;
  203. align-items: center;
  204. margin-bottom: 6rpx;
  205. .icon {
  206. margin-left: 10rpx;
  207. background: rgba(51,51,51,0.18);
  208. border-radius: 50%;
  209. padding: 4rpx;
  210. }
  211. }
  212. .time {
  213. font-size: 24rpx;
  214. margin-top: 4rpx;
  215. }
  216. }
  217. }
  218. }
  219. .btn_row {
  220. display: flex;
  221. justify-content: space-between;
  222. .btn {
  223. width: 47%;
  224. }
  225. }
  226. </style>