classCall.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <template>
  2. <view>
  3. <u-navbar back-text="点名签到"></u-navbar>
  4. <view class="main">
  5. <u-cell-group>
  6. <u-cell-item title="班级名称" value="芭蕾舞新生班" :arrow="false"></u-cell-item>
  7. <u-cell-item title="上课时间" value="2023-01-03 08:30-10:00" :arrow="false"></u-cell-item>
  8. <u-cell-item title="上课教室" value="二楼舞蹈一教室" :arrow="false"></u-cell-item>
  9. <u-cell-item class="teacher" title="任课老师" value="夏奕琳" ></u-cell-item>
  10. <u-cell-item title="学员总数" value="20人" :arrow="false"></u-cell-item>
  11. <u-cell-item title="点名结果批量设置" value="到课" ></u-cell-item>
  12. </u-cell-group>
  13. </view>
  14. <view class="student-details">
  15. <view class="photo">
  16. <img src="../../../assets/img/photo@1x.png" alt="">
  17. </view>
  18. <view class="details">
  19. <view class="name-tel">
  20. <view class="name">
  21. 周梓轩
  22. </view>
  23. <view class="tel">
  24. 17700112233
  25. </view>
  26. </view>
  27. <view class="class-leave">
  28. <view class="class">
  29. 剩余课时<text>40</text>
  30. </view>
  31. <view class="leave">
  32. 已请假<text>1</text>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="to-class">
  37. 到课<u-icon name="arrow-right" color="#cccccc"></u-icon>
  38. </view>
  39. </view>
  40. <view class="student-details">
  41. <view class="photo">
  42. <img src="../../../assets/img/photo@1x.png" alt="">
  43. </view>
  44. <view class="details">
  45. <view class="name-tel">
  46. <view class="name">
  47. 王紫瑄
  48. </view>
  49. <view class="tel">
  50. 17700112233
  51. </view>
  52. </view>
  53. <view class="class-leave">
  54. <view class="class">
  55. 剩余课时<text>40</text>
  56. </view>
  57. <view class="leave">
  58. 已请假<text>11</text>
  59. </view>
  60. </view>
  61. </view>
  62. <view class="to-class">
  63. 到课<u-icon name="arrow-right" color="#cccccc"></u-icon>
  64. </view>
  65. </view>
  66. <!-- 底部 -->
  67. <view class="bottom">
  68. <view class="sign-result">
  69. <view class="title">
  70. 签到结果
  71. </view>
  72. <view class="result">
  73. <view class="item arrive">
  74. 到课<text>16</text>
  75. </view>
  76. <view class="item leave">
  77. 请假<text>16</text>
  78. </view>
  79. <view class="item truant">
  80. 旷课<text>16</text>
  81. </view>
  82. <view class="item make-up">
  83. 补课<text>16</text>
  84. </view>
  85. </view>
  86. </view>
  87. <button @click="save()">保存</button>
  88. </view>
  89. </view>
  90. </template>
  91. <script>
  92. export default {
  93. data() {
  94. return {
  95. }
  96. },
  97. methods: {
  98. save() {
  99. uni.navigateBack({
  100. url: '/pages/teacher/callNames/callNames'
  101. })
  102. },
  103. }
  104. }
  105. </script>
  106. <style lang="scss" scoped>
  107. .main{
  108. padding-left: 12px;
  109. background-color: #fff;
  110. margin-bottom: 12px;
  111. }
  112. /deep/.u-cell_title{
  113. color: rgba(119, 119, 119, 1);
  114. }
  115. /deep/.u-cell__value{
  116. color: #333333;
  117. }
  118. .teacher{
  119. /deep/.u-cell__value{
  120. color: #00BAC8;
  121. }
  122. }
  123. .student-details{
  124. padding: 12px 16px;
  125. background-color: #fff;
  126. display: flex;
  127. position: relative;
  128. border-bottom: 1px solid rgba(229, 231, 234, 1);;
  129. .photo{
  130. width: 56px;
  131. height: 56px;
  132. border-radius: 4px;
  133. overflow: hidden;
  134. margin-right: 11px;
  135. img{
  136. width: 100%;
  137. height: 100%;
  138. }
  139. }
  140. .details{
  141. display: flex;
  142. flex-direction: column;
  143. justify-content: space-around;
  144. .name-tel{
  145. display:flex;
  146. .name{
  147. margin-right: 12px;
  148. color: rgba(51, 51, 51, 1);
  149. font-size: 18px;
  150. }
  151. .tel{
  152. color: rgba(119, 119, 119, 1);
  153. }
  154. }
  155. .class-leave{
  156. color: rgba(119, 119, 119, 1);
  157. display: flex;
  158. .class{
  159. margin-right: 12px;
  160. line-height: 14px;
  161. display: flex;
  162. align-items: center;
  163. }
  164. .leave{
  165. display: flex;
  166. align-items: center;
  167. }
  168. text{
  169. display: inline-block;
  170. width: 16px;
  171. height: 16px;
  172. line-height: 16px;
  173. border-radius: 4px;
  174. background-color: rgba(153, 153, 153, 1);
  175. color: rgba(255, 255, 255, 1);
  176. font-size: 12px;
  177. text-align: center;
  178. margin-left: 4px;
  179. }
  180. }
  181. }
  182. .to-class{
  183. color: #333333;
  184. position: absolute;
  185. bottom: 34rpx;
  186. right: 24rpx;
  187. }
  188. }
  189. // 底部
  190. .bottom{
  191. padding: 12px 16px;
  192. background-color: #fff;
  193. position: fixed;
  194. bottom: 0;
  195. left: 0;
  196. right: 0;
  197. .sign-result{
  198. display: flex;
  199. justify-content: space-between;
  200. padding-bottom: 22rpx;
  201. border-bottom: 2rpx solid rgba(229, 231, 234, 1);
  202. .title{
  203. color: rgba(119, 119, 119, 1);
  204. line-height: 40rpx;
  205. }
  206. .result{
  207. display: flex;
  208. justify-content: space-between;
  209. .item{
  210. font-size: 32rpx;
  211. display: flex;
  212. align-items: center;
  213. margin-left: 24rpx;
  214. text{
  215. display: inline-block;
  216. width: 40rpx;
  217. height: 40rpx;
  218. line-height: 40rpx;
  219. border-radius: 8rpx;
  220. background-color: rgba(22, 132, 252, 1);
  221. color: rgba(255, 255, 255, 1);
  222. font-size: 24rpx;
  223. text-align: center;
  224. margin-left: 6rpx;
  225. }
  226. }
  227. .arrive{
  228. color: rgba(22, 132, 252, 1);
  229. }
  230. .leave{
  231. color: rgba(129, 97, 255, 1);
  232. text{
  233. background-color: rgba(129, 97, 255, 1);
  234. }
  235. }
  236. .truant{
  237. color: rgba(255, 61, 0, 1);
  238. text{
  239. background-color: rgba(255, 61, 0, 1);
  240. }
  241. }
  242. .make-up{
  243. color: rgba(0, 187, 170, 1);
  244. text{
  245. background-color: rgba(0, 187, 170, 1);
  246. }
  247. }
  248. }
  249. }
  250. button{
  251. background-color: rgba(13, 186, 199, 1);
  252. color: rgba(255, 255, 255, 1);
  253. font-size: 16px;
  254. margin-top: 10px;
  255. }
  256. }
  257. </style>