index.vue 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082
  1. <template>
  2. <div class="content">
  3. <div class="d-flex mb20">
  4. <div class="content-box Info">
  5. <div style="width: 100%; height: 150px; position: relative">
  6. <img
  7. style="
  8. width: calc(100% - 42px);
  9. height: 128px;
  10. margin: 20px 0 0 20px;
  11. position: absolute;
  12. "
  13. src="@/assets/bg.png"
  14. alt=""
  15. />
  16. <img
  17. style="
  18. width: 105px;
  19. height: 105px;
  20. border-radius: 105px;
  21. position: absolute;
  22. top: 50%;
  23. left: 50%;
  24. margin-left: -52px;
  25. "
  26. :src="jcxxInfo.xdx_sczp"
  27. alt=""
  28. />
  29. </div>
  30. <div style="text-align: center; margin-top: 50px">
  31. <p
  32. style="
  33. font-size: 20px;
  34. font-family: PingFangSC, PingFangSC-Semibold;
  35. font-weight: 600;
  36. "
  37. >
  38. {{ jcxxInfo.xdx_xsxm }}
  39. </p>
  40. <p
  41. style="
  42. font-size: 14px;
  43. font-family: PingFang, PingFang-Bold;
  44. font-weight: 700;
  45. color: #8083a3;
  46. margin-bottom: 10px;
  47. "
  48. >
  49. 学籍号:{{ jcxxInfo.xdx_xsxh }}
  50. </p>
  51. </div>
  52. <div>
  53. <ul>
  54. <li>性别</li>
  55. <li>{{ jcxxInfo.xdx_xb_option_n }}</li>
  56. </ul>
  57. <ul>
  58. <li>民族</li>
  59. <li>{{ jcxxInfo.xdx_mz }}</li>
  60. </ul>
  61. <ul>
  62. <li>出生年月</li>
  63. <li>{{ jcxxInfo.xdx_csrq }}</li>
  64. </ul>
  65. <ul>
  66. <li>血型</li>
  67. <li>{{ jcxxInfo.xdx_xx }}</li>
  68. </ul>
  69. </div>
  70. <div>
  71. <ul>
  72. <li>身份证号码</li>
  73. <li>{{ jcxxInfo.xdx_zjhm }}</li>
  74. </ul>
  75. <ul>
  76. <li>户籍所在地</li>
  77. <li>{{ jcxxInfo.xdx_jtzz }}</li>
  78. </ul>
  79. <ul>
  80. <li>家庭住址</li>
  81. <li>{{ jcxxInfo.xdx_xxdz }}</li>
  82. </ul>
  83. </div>
  84. </div>
  85. <div class="ml20 content-box student-body-health" style="height: 709px">
  86. <div>
  87. <span>学生体质健康</span>
  88. <!-- <a>查看更多</a> -->
  89. </div>
  90. <div>
  91. <div>
  92. <img src="@/assets/icon-heart.png" alt="" />
  93. <div>
  94. <span>{{ tzjkInfo.xtj_jcxl }}</span>
  95. <span>基础心率</span>
  96. </div>
  97. </div>
  98. <div>
  99. <img src="@/assets/icon-BMI.png" alt="" />
  100. <div>
  101. <span>{{ tzjkInfo.xtj_bmi }}</span>
  102. <span>BMI</span>
  103. </div>
  104. </div>
  105. <div>
  106. <img src="@/assets/icon-scale.png" alt="" />
  107. <div>
  108. <span>{{ tzjkInfo.xtj_tzl }}</span>
  109. <span>体脂率</span>
  110. </div>
  111. </div>
  112. <div>
  113. <img src="@/assets/icon-lung.png" alt="" />
  114. <div>
  115. <span>{{ tzjkInfo.xtj_fhl }}</span>
  116. <span>肺活量</span>
  117. </div>
  118. </div>
  119. </div>
  120. <div>
  121. <span></span>
  122. <div>
  123. <div class="tzjk-info">
  124. <img src="@/assets/icon-vision.png" />
  125. <span>{{ tzjkInfo.xtj_sl }}</span>
  126. </div>
  127. <div>视力</div>
  128. </div>
  129. <div>
  130. <div class="tzjk-info">
  131. <img src="@/assets/icon-backrun.png" />
  132. <span>{{ tzjkInfo.xtj_wfp }}</span>
  133. </div>
  134. <div>往返跑</div>
  135. </div>
  136. <div class="tzjk-info">
  137. <div>
  138. <img src="@/assets/icon-longrun.png" />
  139. <span>{{ tzjkInfo.xtj_nlp }}</span>
  140. </div>
  141. <div>耐力跑成绩</div>
  142. </div>
  143. <div class="tzjk-info">
  144. <div>
  145. <img src="@/assets/icon-shortrun.png" />
  146. <span>{{ tzjkInfo.xtj_50mp }}</span>
  147. </div>
  148. <div>50米跑</div>
  149. </div>
  150. <div class="tzjk-info">
  151. <div>
  152. <img src="@/assets/icon-situp.png" />
  153. <span>{{ tzjkInfo.xtj_1fzywqz }}</span>
  154. </div>
  155. <div>1分钟仰卧起坐</div>
  156. </div>
  157. <div class="tzjk-info">
  158. <div>
  159. <img src="@/assets/icon-jump.png" />
  160. <span>{{ tzjkInfo.xtj_ldty }}</span>
  161. </div>
  162. <div>立定跳远</div>
  163. </div>
  164. <div class="tzjk-info">
  165. <div>
  166. <img src="@/assets/icon-skip.png" />
  167. <span>{{ tzjkInfo.xtj_1fzts }}</span>
  168. </div>
  169. <div>1分钟跳绳</div>
  170. </div>
  171. <div class="tzjk-info">
  172. <div>
  173. <img src="@/assets/icon-pullup.png" />
  174. <span>{{ tzjkInfo.xtj_ytxs }}</span>
  175. </div>
  176. <div>引体向上</div>
  177. </div>
  178. <div class="tzjk-info">
  179. <div>
  180. <img src="@/assets/icon-sit.png" />
  181. <span>{{ tzjkInfo.xtj_zwtqq }}</span>
  182. </div>
  183. <div>坐位体前屈</div>
  184. </div>
  185. <div class="tzjk-info">
  186. <div>
  187. <img src="@/assets/icon-ball.png" />
  188. <span>{{ tzjkInfo.xtj_sxq }}</span>
  189. </div>
  190. <div>实心球</div>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. <!-- <div class="d-flex mb20">
  196. <div class="content-box badge">
  197. <div class="title">徽章</div>
  198. <div class="badge" style="height: 300px">
  199. <ul>
  200. <li>
  201. <img src="@/assets/icon-badgeone.png" alt="" />
  202. <p>徽章一</p>
  203. </li>
  204. <li>
  205. <img src="@/assets/icon-btwo.png" alt="" />
  206. <p>徽章二</p>
  207. </li>
  208. <li>
  209. <img src="@/assets/icon-third.png" alt="" />
  210. <p>徽章三</p>
  211. </li>
  212. <li>
  213. <img src="@/assets/icon-forth.png" alt="" />
  214. <p>徽章四</p>
  215. </li>
  216. <li>
  217. <img src="@/assets/icon-bfive.png" alt="" />
  218. <p>徽章五</p>
  219. </li>
  220. <li>
  221. <img src="@/assets/icon-gray.png" alt="" />
  222. <p>徽章六</p>
  223. </li>
  224. </ul>
  225. </div>
  226. </div>
  227. <div class="ml20 content-box habit-formation">
  228. <div class="title">习惯养成</div>
  229. <div class="mt15 text-right" style="height: 300px" id="radarBox"></div>
  230. </div>
  231. </div>
  232. <div class="d-flex mb20">
  233. <div class="content-box study-score">
  234. <div class="title">
  235. <span>学习及成绩</span>
  236. <div>
  237. <div class="left-icon">
  238. <i class="el-icon-arrow-left"></i>
  239. </div>
  240. <div class="right-icon">
  241. <i class="el-icon-arrow-right"></i>
  242. </div>
  243. </div>
  244. </div>
  245. <div class="student-score-content">
  246. <div
  247. v-for="(item, index) in oneToTwo(studyScoreData, 4)"
  248. :key="index"
  249. class="row-card"
  250. >
  251. <div>
  252. <div v-for="(item2, index2) in item" :key="index2" class="card">
  253. <div class="top-section">
  254. <img :src="item2.image" width="74px" height="74px" alt="" />
  255. <div>
  256. <span>{{ item2.name }}</span>
  257. <span>{{ item2.percent }}</span>
  258. </div>
  259. </div>
  260. <div class="bottom-section">
  261. <span>平时:{{ item2.normal }}</span>
  262. <span>期末:{{ item2.final }}</span>
  263. <span
  264. >趋势:
  265. <img :src="item2.trend" width="96px" height="48px" alt=""
  266. /></span>
  267. <span>总评:{{ item2.total }}</span>
  268. </div>
  269. </div>
  270. </div>
  271. <span class="split-line" v-if="index === 0"></span>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="d-flex mb20" style="height: 500px">
  277. <div class="content-box social-practice">
  278. <div class="title" style="border-bottom: none">社会实践</div>
  279. <table>
  280. <tr>
  281. <th>活动名称</th>
  282. <th>时间</th>
  283. <th>评价</th>
  284. </tr>
  285. <tr>
  286. <td>社会实践一</td>
  287. <td>2021年12月28日</td>
  288. <td>优秀</td>
  289. </tr>
  290. <tr>
  291. <td>社会实践一</td>
  292. <td>2021年12月28日</td>
  293. <td>中等</td>
  294. </tr>
  295. <tr>
  296. <td>社会实践三</td>
  297. <td>2021年12月28日</td>
  298. <td>良好</td>
  299. </tr>
  300. <tr>
  301. <td>社会实践四</td>
  302. <td>2021年12月28日</td>
  303. <td>优秀</td>
  304. </tr>
  305. </table>
  306. </div>
  307. <div class="ml20 content-box class-duty">
  308. <div class="title">班级值日</div>
  309. <div style="margin-bottom: 30px">
  310. <el-calendar v-model="calendar"> </el-calendar>
  311. </div>
  312. <div class="date">
  313. <div
  314. style="
  315. width: 13px;
  316. height: 70px;
  317. display: inline-block;
  318. border-radius: 10px 0 0 10px;
  319. background-color: #e8523f;
  320. "
  321. ></div>
  322. <div style="display: inline-block; vertical-align: top">
  323. <p
  324. style="
  325. margin: 12px;
  326. font-size: 14px;
  327. font-family: PingFangSC, PingFangSC-Semibold;
  328. font-weight: 600;
  329. color: #383d4a;
  330. "
  331. >
  332. 班级值日
  333. </p>
  334. <span
  335. style="
  336. margin-left: 10px;
  337. font-family: PingFangSC, PingFangSC-Semibold;
  338. font-size: 12px;
  339. font-weight: 400;
  340. text-align: left;
  341. color: #4d4d4d;
  342. "
  343. class="el-icon-time"
  344. >7 Dec, 2019 | 10:00 AM</span
  345. >
  346. </div>
  347. </div>
  348. </div>
  349. </div>
  350. <div class="d-flex mb20" style="height: 420px">
  351. <div class="content-box specialty-display">
  352. <div class="title">特长展示</div>
  353. <ul>
  354. <li>
  355. <span class="dot green"></span>
  356. <span>特长一</span>
  357. <span>80%</span>
  358. <el-progress
  359. class="progress"
  360. :percentage="80"
  361. color="#5FDCB3"
  362. :show-text="false"
  363. ></el-progress>
  364. </li>
  365. <li>
  366. <span class="dot green"></span>
  367. <span>特长二</span>
  368. <span>75%</span>
  369. <el-progress
  370. class="progress"
  371. :percentage="75"
  372. color="#5FDCB3"
  373. :show-text="false"
  374. ></el-progress>
  375. </li>
  376. <li>
  377. <span class="dot orange"></span>
  378. <span>特长三</span>
  379. <span>65%</span>
  380. <el-progress
  381. class="progress"
  382. :percentage="65"
  383. color="#EF8354"
  384. :show-text="false"
  385. ></el-progress>
  386. </li>
  387. <li>
  388. <span class="dot orange"></span>
  389. <span>特长四</span>
  390. <span>50%</span>
  391. <el-progress
  392. class="progress"
  393. :percentage="50"
  394. color="#EF8354"
  395. :show-text="false"
  396. ></el-progress>
  397. </li>
  398. <li>
  399. <span class="dot pink"></span>
  400. <span>特长五</span>
  401. <span>25%</span>
  402. <el-progress
  403. class="progress"
  404. :percentage="25"
  405. color="#FBB0BF"
  406. :show-text="false"
  407. ></el-progress>
  408. </li>
  409. </ul>
  410. </div>
  411. <div class="ml20 content-box participate-activities">
  412. <div>
  413. <div class="title" style="border-bottom: none">
  414. 参加活动 <span>查看全部</span>
  415. </div>
  416. </div>
  417. <table>
  418. <tr>
  419. <th>活动名称</th>
  420. <th>类型</th>
  421. <th>时间</th>
  422. </tr>
  423. <tr>
  424. <td>足球赛</td>
  425. <td>体育</td>
  426. <td>2021年12月28日</td>
  427. </tr>
  428. <tr>
  429. <td>演讲</td>
  430. <td>文学</td>
  431. <td>2021年12月28日</td>
  432. </tr>
  433. <tr>
  434. <td>数学竞赛</td>
  435. <td>竞赛</td>
  436. <td>2021年12月28日</td>
  437. </tr>
  438. <tr>
  439. <td>美术</td>
  440. <td>美术</td>
  441. <td>2021年12月28日</td>
  442. </tr>
  443. </table>
  444. </div>
  445. </div> -->
  446. </div>
  447. </template>
  448. <script>
  449. import { xjk_list, xslb_list, xs_detail, xjk_detail, xslb_detail } from "./api";
  450. import * as echarts from "echarts";
  451. export default {
  452. name: "index",
  453. data() {
  454. return {
  455. calendar: new Date(),
  456. limit: 10,
  457. total: 12,
  458. cur_page: 1,
  459. keyword: "",
  460. jcxxInfo: {},
  461. tzjkInfo: {},
  462. xsInfo: {},
  463. firstForm: {
  464. grade: "",
  465. class: "",
  466. },
  467. xtj_xsxh: "",
  468. xdx_xsxh: "",
  469. xdxx_xsxh: "",
  470. studyScoreData: [
  471. {
  472. image: new URL("../../../../../../assets/Pie.png", import.meta.url),
  473. percent: "75%",
  474. name: "语文",
  475. normal: "良好",
  476. final: "优秀",
  477. trend: new URL("../../../../../../assets/Graph.png", import.meta.url),
  478. total: "优秀",
  479. },
  480. {
  481. image: new URL("../../../../../../assets/Pie_2.png", import.meta.url),
  482. percent: "25%",
  483. name: "数学",
  484. normal: "优秀",
  485. final: "--",
  486. trend: new URL(
  487. "../../../../../../assets/Graph_2.png",
  488. import.meta.url
  489. ),
  490. total: "--",
  491. },
  492. {
  493. image: new URL("../../../../../../assets/Pie_1.png", import.meta.url),
  494. percent: "50%",
  495. name: "外语",
  496. normal: "良好",
  497. final: "良好",
  498. trend: new URL(
  499. "../../../../../../assets/Graph_1.png",
  500. import.meta.url
  501. ),
  502. total: "良好",
  503. },
  504. {
  505. image: new URL("../../../../../../assets/Pie_3.png", import.meta.url),
  506. percent: "50%",
  507. name: "体育",
  508. normal: "优秀",
  509. final: "优秀",
  510. trend: new URL(
  511. "../../../../../../assets/Graph_3.png",
  512. import.meta.url
  513. ),
  514. total: "优秀",
  515. },
  516. {
  517. image: new URL("../../../../../../assets/Pie_1.png", import.meta.url),
  518. percent: "50%",
  519. name: "物理",
  520. normal: "良好",
  521. final: "良好",
  522. trend: new URL(
  523. "../../../../../../assets/Graph_1.png",
  524. import.meta.url
  525. ),
  526. total: "良好",
  527. },
  528. {
  529. image: new URL("../../../../../../assets/Pie_3.png", import.meta.url),
  530. percent: "50%",
  531. name: "化学",
  532. normal: "良好",
  533. final: "优秀",
  534. trend: new URL(
  535. "../../../../../../assets/Graph_3.png",
  536. import.meta.url
  537. ),
  538. total: "优秀",
  539. },
  540. {
  541. image: new URL("../../../../../../assets/Pie.png", import.meta.url),
  542. percent: "75%",
  543. name: "生物",
  544. normal: "良好",
  545. final: "优秀",
  546. trend: new URL("../../../../../../assets/Graph.png", import.meta.url),
  547. total: "优秀",
  548. },
  549. {
  550. image: new URL("../../../../../../assets/Pie_2.png", import.meta.url),
  551. percent: "25%",
  552. name: "地理",
  553. normal: "优秀",
  554. final: "--",
  555. trend: new URL(
  556. "../../../../../../assets/Graph_2.png",
  557. import.meta.url
  558. ),
  559. total: "--",
  560. },
  561. ],
  562. };
  563. },
  564. methods: {
  565. oneToTwo(arr, size) {
  566. let arr2 = [];
  567. for (let i = 0; i < arr.length; i = i + size) {
  568. arr2.push(arr.slice(i, i + size));
  569. }
  570. return arr2; // 新的二维数组
  571. },
  572. getRadar() {
  573. var chartDom = document.getElementById("radarBox");
  574. var myChart = echarts.init(chartDom);
  575. var option;
  576. option = {
  577. radar: {
  578. center: ["50%", "50%"], //位置
  579. radius: "75%", //大小
  580. indicator: [
  581. { text: "9分认真听课" },
  582. { text: "5分自我形象" },
  583. { text: "5分礼貌" },
  584. { text: "8分勤奋" },
  585. { text: "4分卫生" },
  586. ],
  587. axisName: {
  588. color: "#000000",
  589. fontSize: "14px",
  590. fontFamily: "SourceHanSansCN, SourceHanSansCN-Normal",
  591. },
  592. },
  593. series: [
  594. {
  595. name: "",
  596. type: "radar",
  597. data: [
  598. {
  599. value: [130, 60, 100, 50, 60],
  600. name: "",
  601. },
  602. ],
  603. symbol: "none",
  604. lineStyle: {
  605. width: 4,
  606. color: "#00BF7B",
  607. }, //设置线
  608. areaStyle: {
  609. color: "#00BF7B",
  610. opacity: "0.3",
  611. }, // 设置封闭区域阴影面积,
  612. },
  613. ],
  614. };
  615. option && myChart.setOption(option);
  616. },
  617. jcxxData() {
  618. let data = {
  619. xdx_xsxh: this.xdxx_xsxh,
  620. };
  621. xjk_detail(data).then((res) => {
  622. if (res.code == 1) {
  623. if (Object.keys(res.data.one_info).length != 0) {
  624. this.jcxxInfo = res.data.one_info;
  625. let a = this.jcxxInfo.xdx_sczp.indexOf("|");
  626. this.jcxxInfo.xdx_sczp = this.jcxxInfo.xdx_sczp.substring(0, a);
  627. if (Object.keys(res.data.one_info.tzxx_info).length != 0) {
  628. this.tzjkInfo = res.data.one_info.tzxx_info;
  629. } else {
  630. this.$message({
  631. message: "暂未上传该生体质健康信息",
  632. type: "error",
  633. });
  634. }
  635. } else {
  636. this.$message({
  637. message: "暂未上传该生学籍卡信息",
  638. type: "error",
  639. });
  640. }
  641. }
  642. });
  643. },
  644. // tzjkData() {
  645. // let data = {
  646. // xtj_xsxh: this.xdxx_xsxh,
  647. // };
  648. // xslb_detail(data).then((res) => {
  649. // if (res.code == 1) {
  650. // this.tzjkInfo = res.data.one_info;
  651. // }
  652. // });
  653. // },
  654. },
  655. mounted() {
  656. if (this.$route.params.xdxx_xsxh != "") {
  657. this.xdxx_xsxh = this.$route.params.xdxx_xsxh;
  658. // this.tzjkData();
  659. this.jcxxData();
  660. // this.getRadar();
  661. }
  662. },
  663. };
  664. </script>
  665. <style lang="scss" scoped>
  666. //基本信息
  667. .Info div:nth-child(3) {
  668. display: flex;
  669. flex-wrap: wrap;
  670. margin: 0 auto;
  671. ul {
  672. width: calc(50% - 47px);
  673. height: 50px;
  674. border: 1px dashed #dadada;
  675. border-radius: 12px;
  676. margin-left: 20px;
  677. margin-bottom: 20px;
  678. padding: 0px 0 0 15px;
  679. & :nth-child(1) {
  680. font-size: 12px;
  681. font-family: PingFangSC, PingFangSC-Semibold;
  682. font-weight: 600;
  683. text-align: left;
  684. color: #9a9a9a;
  685. margin-bottom: 5px;
  686. }
  687. &:nth-child(2) {
  688. font-size: 14px;
  689. font-family: PingFang, PingFang-Medium;
  690. font-weight: 500;
  691. color: #000000;
  692. }
  693. }
  694. }
  695. .Info div:nth-child(4) {
  696. ul {
  697. width: calc(100% - 57px);
  698. height: 50px;
  699. border: 1px dashed #dadada;
  700. border-radius: 12px;
  701. margin-left: 20px;
  702. margin-bottom: 20px;
  703. padding: 0px 0 0 15px;
  704. & :nth-child(1) {
  705. font-size: 12px;
  706. font-family: PingFangSC, PingFangSC-Semibold;
  707. font-weight: 600;
  708. text-align: left;
  709. color: #9a9a9a;
  710. margin-bottom: 5px;
  711. }
  712. &:nth-child(2) {
  713. font-size: 14px;
  714. font-family: PingFang, PingFang-Medium;
  715. font-weight: 500;
  716. color: #000000;
  717. }
  718. }
  719. }
  720. //体质健康
  721. .student-body-health {
  722. & > div:nth-child(1) {
  723. display: flex;
  724. justify-content: space-between;
  725. padding: 15px 20px 15px 20px;
  726. border-bottom: 1px solid #e4e6e8;
  727. & :nth-child(1) {
  728. font-size: 18px;
  729. font-family: PingFangSC, PingFangSC-Semibold;
  730. font-weight: 600;
  731. color: #171721;
  732. }
  733. & :nth-child(2) {
  734. font-size: 14px;
  735. font-family: PingFangSC, PingFangSC-Regular;
  736. font-weight: 400;
  737. color: #265cd4;
  738. }
  739. }
  740. & > div:nth-child(2) {
  741. margin-top: 25px;
  742. display: flex;
  743. flex-wrap: wrap;
  744. & > div:nth-child(1) {
  745. margin-left: 20px;
  746. border-bottom: 1px solid #5f5f5f53;
  747. border-right: 1px solid #5f5f5f53;
  748. }
  749. & > div:nth-child(3) {
  750. margin-left: 20px;
  751. }
  752. & > div:nth-child(4) {
  753. border-top: 1px solid #5f5f5f53;
  754. border-left: 1px solid #5f5f5f53;
  755. }
  756. & > div {
  757. padding: 45px;
  758. display: flex;
  759. width: calc(50% - 112px);
  760. align-items: center;
  761. justify-content: center;
  762. div {
  763. display: flex;
  764. flex-direction: column;
  765. padding-left: 30px;
  766. & :nth-child(1) {
  767. display: inline-block;
  768. width: 100px;
  769. font-size: 20px;
  770. font-family: PingFangSC, PingFangSC-Semibold;
  771. font-weight: 600;
  772. color: #171721;
  773. }
  774. & :nth-child(2) {
  775. font-size: 14px;
  776. font-family: PingFangSC, PingFangSC-Regular;
  777. font-weight: 400;
  778. color: #8083a3;
  779. }
  780. }
  781. }
  782. }
  783. & > div:nth-child(3) {
  784. & > span {
  785. height: 1px;
  786. display: block;
  787. background-color: #5f5f5f53;
  788. width: 90%;
  789. margin: 0 5%;
  790. }
  791. margin-top: 10px;
  792. display: flex;
  793. flex-wrap: wrap;
  794. & > div:nth-child(even) {
  795. padding-left: 35px;
  796. & > div:nth-child(2) {
  797. padding-right: 20px;
  798. border-right: 1px solid #5f5f5f53;
  799. }
  800. }
  801. & > div {
  802. display: flex;
  803. flex-direction: row;
  804. padding: 20px 5px;
  805. justify-content: space-between;
  806. width: calc(50% - 45px);
  807. align-items: center;
  808. & > div:nth-child(1) {
  809. display: flex;
  810. align-items: center;
  811. font-size: 20px;
  812. font-family: PingFangSC, PingFangSC-Semibold;
  813. font-weight: 600;
  814. color: #171721;
  815. }
  816. & > div:nth-child(2) {
  817. font-size: 14px;
  818. font-family: PingFangSC, PingFangSC-Regular;
  819. font-weight: 400;
  820. color: #8083a3;
  821. }
  822. }
  823. }
  824. }
  825. //通用
  826. .content {
  827. background: #f2f6fc;
  828. // height: 2500px;
  829. width: 100%;
  830. margin: -10px;
  831. padding-right: 20px;
  832. padding-bottom: 20px;
  833. }
  834. .content-box {
  835. width: 100%;
  836. background: #fff;
  837. border-radius: 6px;
  838. .title {
  839. box-sizing: border-box;
  840. width: 100%;
  841. font-size: 18px;
  842. border-bottom: 1px solid #e4e6e8;
  843. padding: 15px 0 15px 20px;
  844. font-family: PingFangSC, PingFangSC-Semibold;
  845. font-weight: 600;
  846. color: #171721;
  847. }
  848. }
  849. //布局
  850. .Info,
  851. .class-duty,
  852. .specialty-display {
  853. width: 40%;
  854. }
  855. .student-body-health,
  856. .social-practice,
  857. .participate-activities {
  858. width: 60%;
  859. }
  860. //学习及成绩
  861. .study-score {
  862. .title {
  863. display: flex;
  864. flex-direction: row;
  865. justify-content: space-between;
  866. span {
  867. font-size: 18px;
  868. font-family: PingFangSC, PingFangSC-Semibold;
  869. font-weight: 600;
  870. color: #171721;
  871. }
  872. & > div {
  873. display: flex;
  874. flex-direction: row;
  875. flex-wrap: wrap;
  876. }
  877. .left-icon,
  878. .right-icon {
  879. background-color: #f0f2f5;
  880. margin: 0 5px;
  881. cursor: pointer;
  882. }
  883. .right-icon {
  884. margin-right: 30px;
  885. }
  886. }
  887. .student-score-content {
  888. .row-card {
  889. display: flex;
  890. flex-direction: column;
  891. margin: 30px 30px 30px 100px;
  892. & > div {
  893. display: flex;
  894. flex-direction: row;
  895. .card {
  896. width: 25%;
  897. .top-section {
  898. display: flex;
  899. flex-direction: row;
  900. align-items: center;
  901. div {
  902. display: flex;
  903. flex-direction: column;
  904. padding-left: 20px;
  905. }
  906. span:nth-child(1) {
  907. font-size: 20px;
  908. font-family: PingFangSC, PingFangSC-Semibold;
  909. font-weight: 600;
  910. color: #171721;
  911. }
  912. span:nth-child(2) {
  913. font-size: 14px;
  914. font-family: PingFangSC, PingFangSC-Regular;
  915. font-weight: 400;
  916. text-align: left;
  917. color: #8083a3;
  918. }
  919. }
  920. .bottom-section {
  921. display: flex;
  922. flex-direction: column;
  923. span {
  924. display: inline-block;
  925. font-size: 14px;
  926. font-family: PingFangSC, PingFangSC-Regular;
  927. font-weight: 400;
  928. color: #8083a3;
  929. }
  930. span:nth-last-child(1) {
  931. font-size: 16px;
  932. font-family: PingFangSC, PingFangSC-Medium;
  933. font-weight: 500;
  934. color: #000000;
  935. line-height: 36px;
  936. }
  937. }
  938. }
  939. }
  940. & > span {
  941. margin-top: 30px;
  942. width: 90%;
  943. height: 1px;
  944. background-color: #e4e6e8;
  945. }
  946. }
  947. }
  948. }
  949. //徽章
  950. .badge {
  951. width: 100%;
  952. }
  953. .badge img {
  954. width: 54px;
  955. height: 60px;
  956. }
  957. .badge li {
  958. width: 25%;
  959. margin-top: 30px;
  960. float: left;
  961. height: 120px;
  962. text-align: center;
  963. }
  964. //特长展示
  965. .specialty-display li {
  966. height: 60px;
  967. width: 100%;
  968. text-align: left;
  969. margin-top: 10px;
  970. }
  971. .progress {
  972. width: 80%;
  973. margin-left: 40px;
  974. margin-right: 200px;
  975. }
  976. .specialty-display li span:nth-child(3) {
  977. padding-left: 250px;
  978. }
  979. //班级值日
  980. .date {
  981. width: 90%;
  982. height: 70px;
  983. border-radius: 10px;
  984. margin: 0 auto;
  985. box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  986. }
  987. //参加活动
  988. .participate-activities div {
  989. position: relative;
  990. & > span {
  991. position: absolute;
  992. right: 20px;
  993. font-size: 12px;
  994. font-family: PingFangSC, PingFangSC-Regular;
  995. color: #9d9ab9;
  996. line-height: 17px;
  997. }
  998. }
  999. table {
  1000. width: 100%;
  1001. }
  1002. tr td,
  1003. th {
  1004. width: 33%;
  1005. font-size: 14px;
  1006. font-family: PingFangSC, PingFangSC-Semibold;
  1007. font-weight: 600;
  1008. text-align: left;
  1009. color: #050026;
  1010. line-height: 20px;
  1011. padding: 25px 0;
  1012. border-bottom: 1px dashed #9d9ab9;
  1013. &:first-child {
  1014. padding-left: 30px;
  1015. }
  1016. }
  1017. tr th {
  1018. color: #9d9ab9;
  1019. }
  1020. .dot {
  1021. display: inline-block;
  1022. vertical-align: middle;
  1023. width: 10px;
  1024. height: 10px;
  1025. margin: 13px 13px 13px 27px;
  1026. border-radius: 50%;
  1027. &.green {
  1028. background: #5fdcb3;
  1029. }
  1030. &.orange {
  1031. background: #ef8354;
  1032. }
  1033. &.pink {
  1034. background: #fbb0bf;
  1035. }
  1036. }
  1037. </style>
  1038. <style >
  1039. /* 班级值日日历 */
  1040. .el-calendar-table .el-calendar-day {
  1041. height: 36px;
  1042. }
  1043. .el-calendar-table thead th {
  1044. padding: 10px 0;
  1045. color: #606266;
  1046. font-weight: 400;
  1047. }
  1048. .el-calendar__body {
  1049. padding: 12px 20px 0px;
  1050. }
  1051. </style>