studentDetails.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. <template>
  2. <view>
  3. <u-navbar title="学员详情"></u-navbar>
  4. <view class="student-card">
  5. <view class="title">
  6. <view><img src="../../../assets/img/fas fa-graduation-cap@1x.png" alt=""></view>
  7. <view >
  8. 学员详情
  9. </view>
  10. </view>
  11. <view class="details">
  12. <view class="photo">
  13. <img src="../../../assets/img/photo@1x.png" alt="">
  14. </view>
  15. <view class="information">
  16. <view class="name">
  17. 周梓轩
  18. </view>
  19. <view class="item">
  20. <view class="item-name">
  21. 年龄6岁1个月
  22. </view>
  23. <view class="item-content">
  24. 年龄6岁1个月
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item-name">
  29. 联系人手机号
  30. </view>
  31. <view class="item-content">
  32. 17712939405
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="item-name">
  37. 第二联系人手机号
  38. </view>
  39. <view class="item-content">
  40. 17712905129
  41. </view>
  42. </view>
  43. <view class="item">
  44. <view class="item-name">
  45. 接送家长姓名
  46. </view>
  47. <view class="item-content">
  48. 周勇
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="tab">
  55. <u-subsection mode="subsection" :list="list" :current="curNow" @change="sectionChange" height="64" active-color="#0DBAC7" ></u-subsection>
  56. </view>
  57. <view class="course" v-if="this.curNow==0">
  58. <view class="details-box" @click="gotoUrl('pages/teacher/myClass/classInfos')">
  59. <view class="title-box">
  60. <view class="title">
  61. 芭蕾舞新生班
  62. </view>
  63. <view class="location-time">
  64. <view class="location">
  65. 文艺部
  66. </view>
  67. <view class="location">
  68. 中国舞项目
  69. </view>
  70. </view>
  71. </view>
  72. <view class="number">
  73. 学员数 <text>20</text><u-icon name="arrow-right"></u-icon>
  74. </view>
  75. </view>
  76. <view class="details-box">
  77. <view class="title-box">
  78. <view class="title">
  79. 钢琴一对一新生班
  80. </view>
  81. <view class="location-time">
  82. <view class="location">
  83. 文艺部
  84. </view>
  85. <view class="location">
  86. 钢琴项目
  87. </view>
  88. </view>
  89. </view>
  90. <view class="number">
  91. 学员数 <text>1</text><u-icon name="arrow-right"></u-icon>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="record" v-if="this.curNow==1">
  96. <view class="record-card">
  97. <view class="title-time">
  98. <view class="title">
  99. 芭蕾舞新生班
  100. </view>
  101. <view class="time">
  102. 2023-01-05 08:30-10:00
  103. </view>
  104. </view>
  105. <view class="condition">
  106. 到课
  107. </view>
  108. </view>
  109. <view class="record-card">
  110. <view class="title-time">
  111. <view class="title">
  112. 芭蕾舞新生班
  113. </view>
  114. <view class="time">
  115. 2023-01-05 08:30-10:00
  116. </view>
  117. </view>
  118. <view class="condition leave">
  119. 请假
  120. </view>
  121. </view>
  122. <view class="record-card">
  123. <view class="title-time">
  124. <view class="title">
  125. 芭蕾舞新生班
  126. </view>
  127. <view class="time">
  128. 2023-01-05 08:30-10:00
  129. </view>
  130. </view>
  131. <view class="condition truant">
  132. 旷课
  133. </view>
  134. </view>
  135. <button class="btn" @click="gotoUrl('pages/teacher/myClass/signRecord')">查看全部签到记录</button>
  136. </view>
  137. <view class="thermometry" v-if="this.curNow==2">
  138. <view class="main">
  139. <view class="item" @click="gotoUrl('pages/teacher/myClass/temperatureRecordDetails')">
  140. <view class="date">
  141. 2023-01-03 08:47
  142. </view>
  143. <view class="temperature">
  144. <view class="text">
  145. 正常 36.3
  146. </view>
  147. <view class="icon">
  148. <u-icon name="arrow-right" color="#c8c8c8"></u-icon>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="item">
  153. <view class="date">
  154. 2023-01-03 08:47
  155. </view>
  156. <view class="temperature">
  157. <view class="text abnormal">
  158. 异常 38.3
  159. </view>
  160. <view class="icon">
  161. <u-icon name="arrow-right" color="#c8c8c8"></u-icon>
  162. </view>
  163. </view>
  164. </view>
  165. <view class="item">
  166. <view class="date">
  167. 2023-01-03 08:47
  168. </view>
  169. <view class="temperature">
  170. <view class="text abnormal">
  171. 异常 37.3
  172. </view>
  173. <view class="icon">
  174. <u-icon name="arrow-right" color="#c8c8c8"></u-icon>
  175. </view>
  176. </view>
  177. </view>
  178. <view class="item" v-for="item in 5">
  179. <view class="date">
  180. 2023-01-03 08:47
  181. </view>
  182. <view class="temperature">
  183. <view class="text ">
  184. 正常 36.3
  185. </view>
  186. <view class="icon">
  187. <u-icon name="arrow-right" color="#c8c8c8"></u-icon>
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <button class="btn" @click="gotoUrl('pages/teacher/myClass/temperatureRecord')">查看全部测温记录</button>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. export default {
  198. data() {
  199. return {
  200. list: [{
  201. name: '报名课程'
  202. }, {
  203. name: '签到记录',
  204. },{
  205. name:'测温记录'
  206. }],
  207. curNow: 0
  208. }
  209. },
  210. methods: {
  211. sectionChange(index) {
  212. this.curNow = index;
  213. },
  214. }
  215. }
  216. </script>
  217. <style lang="scss" scoped>
  218. .student-card{
  219. margin: 24rpx 32rpx;
  220. padding: 40rpx 32rpx 20rpx 32rpx;
  221. background-color: #fff;
  222. border-radius: 12px;
  223. .title{
  224. display: flex;
  225. align-items: center;
  226. color: rgba(51, 51, 51, 1);
  227. font-weight: bold;
  228. img{
  229. vertical-align: middle;
  230. margin-right: 16rpx;
  231. }
  232. }
  233. .details{
  234. margin-top: 40rpx;
  235. display: flex;
  236. .photo{
  237. width: 80px;
  238. height: 80px;
  239. border-radius: 8px;
  240. margin-right: 32rpx;
  241. overflow: hidden;
  242. img{
  243. width: 100%;
  244. height: 100%;
  245. }
  246. }
  247. }
  248. .information{
  249. .name{
  250. color: rgba(51, 51, 51, 1);
  251. font-size: 18px;
  252. font-weight: bold;
  253. margin-bottom: 20rpx;
  254. }
  255. .item{
  256. display: flex;
  257. margin-bottom: 16rpx;
  258. justify-content: space-between;
  259. .item-name{
  260. color: rgba(119, 119, 119, 1);
  261. }
  262. .item-content{
  263. color: rgba(51, 51, 51, 1);
  264. margin-left: 16rpx;
  265. }
  266. }
  267. }
  268. }
  269. .tab{
  270. padding: 0 32rpx;
  271. ::v-deep.u-subsection{
  272. border-radius: 50px !important;
  273. background-color: #fff !important;
  274. }
  275. ::v-deep.u-item{
  276. border: none !important;
  277. }
  278. }
  279. .details-box{
  280. margin: 0 32rpx;
  281. margin-top: 12px;
  282. background-color: #fff;
  283. padding: 12px ;
  284. border-radius: 12px;
  285. display: flex;
  286. align-items: center;
  287. justify-content: space-between;
  288. .title-box{
  289. width: 68%;
  290. .title{
  291. color: rgba(51, 51, 51, 1);
  292. font-size: 36rpx;
  293. font-weight: bold;
  294. width: 100%;
  295. white-space: nowrap;
  296. overflow: hidden;
  297. text-overflow: ellipsis;
  298. }
  299. }
  300. .location-time{
  301. display: flex;
  302. margin-top: 8px;
  303. .location,.time{
  304. line-height: 20px;
  305. border-radius: 4px;
  306. background-color: rgba(241, 243, 244, 1);
  307. color: rgba(136, 133, 133, 1);
  308. padding: 0px 8px;
  309. margin-right: 8px;
  310. font-size: 24rpx
  311. }
  312. }
  313. }
  314. .number{
  315. color: rgba(119, 119, 119, 1);
  316. font-size: 32rpx;
  317. text-align: right;
  318. text{
  319. display: inline-block;
  320. text-align: center;
  321. width: 40rpx;
  322. line-height: 40rpx;
  323. border-radius: 8rpx;
  324. background-color: rgba(13, 186, 199, 1);
  325. color: rgba(255, 255, 255, 1);
  326. font-size: 28rpx;
  327. margin-left: 8rpx;
  328. }
  329. }
  330. .record{
  331. margin:0 16px;
  332. .record-card{
  333. margin-top: 12px;
  334. background-color: #fff;
  335. border-radius: 12px;
  336. padding: 12px;
  337. display: flex;
  338. justify-content: space-between;
  339. .title-time{
  340. color: rgba(51, 51, 51, 1);
  341. .title{
  342. font-weight: bold;
  343. font-size: 18px;
  344. }
  345. .time{
  346. margin-top: 16rpx;
  347. font-size: 12px;
  348. }
  349. }
  350. .condition{
  351. color:#0DBAC7;
  352. font-size: 16px;
  353. display: flex;
  354. align-items: center;
  355. }
  356. .leave{
  357. color: rgba(129, 97, 255, 1);
  358. }
  359. .truant{
  360. color: rgba(255, 61, 0, 1);
  361. }
  362. }
  363. }
  364. .btn{
  365. color: rgba(13, 186, 199, 1);
  366. height: 40px;
  367. line-height: 40px;
  368. border-radius: 12px;
  369. background-color: #fff;
  370. margin-top: 12px;
  371. font-size: 14px
  372. }
  373. .thermometry{
  374. padding: 0 12px;
  375. .main{
  376. border-radius: 12px;
  377. background-color: #fff;
  378. margin-top: 12px;
  379. padding: 0px 13px 0 13px;
  380. .item{
  381. height: 44px;
  382. line-height: 44px;
  383. display: flex;
  384. justify-content: space-between;
  385. border-bottom: 1px solid rgba(229, 231, 234, 1);
  386. .date{
  387. color: rgba(51, 51, 51, 1);
  388. }
  389. .temperature{
  390. display: flex;
  391. .text{
  392. color: rgba(56, 158, 13, 1);
  393. }
  394. .abnormal{
  395. color: rgba(238, 49, 56, 1);
  396. }
  397. }
  398. }
  399. }
  400. }
  401. </style>