Main.vue 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129
  1. <template>
  2. <div class="pages">
  3. <Headside></Headside>
  4. <div class="userList">
  5. <ul>
  6. <li v-for="(s,i) in students" :class="studentsClassName[i].name" v-show="students">
  7. <div class="ltLi" v-if="students.length == 1"></div>
  8. <div class="centerLi">
  9. <div class="topLi">
  10. <div class="cla">
  11. <span>{{ s.percent }}</span><s>%</s>
  12. </div>
  13. <div class="human">
  14. <!-- <img src="../static/img/head.png" height="300" width="300"/>-->
  15. <img :src="s.head" height="300" width="300"/>
  16. <span class="name">{{ s.name }}</span>
  17. </div>
  18. <div class="heartJump">
  19. <span>{{ s.heartJump }}</span><img src="../static/img/heart.png" width="53"/>
  20. </div>
  21. </div>
  22. <div class="bottomLi">
  23. <div class="btcla">
  24. 卡路里 {{ s.calc }}
  25. </div>
  26. <div class="btck">
  27. 步数 {{ s.step }}
  28. </div>
  29. <div class="step">
  30. CK {{ s.ck }}
  31. </div>
  32. </div>
  33. </div>
  34. <div class="rtLi" v-if="students.length == 1"></div>
  35. </li>
  36. </ul>
  37. </div>
  38. <div class="levelIcon">
  39. <ul>
  40. <li>
  41. <span class="cube">
  42. <div>
  43. 0%-<br>
  44. 39%
  45. </div>
  46. </span>
  47. <em>激活放松</em>
  48. </li>
  49. <li>
  50. <span class="cube">
  51. <div>
  52. 40%-<br>54% </div>
  53. </span>
  54. <em>动态热身</em>
  55. </li>
  56. <li>
  57. <span class="cube">
  58. <div>
  59. 55%-<br>69% </div>
  60. </span>
  61. <em>脂肪燃烧</em>
  62. </li>
  63. <li>
  64. <span class="cube">
  65. <div>
  66. 70%-<br>79% </div>
  67. </span>
  68. <em>糖分消耗</em>
  69. </li>
  70. <li>
  71. <span class="cube">
  72. <div>
  73. 80%-<br>89% </div>
  74. </span>
  75. <em>心肺训练</em>
  76. </li>
  77. <li>
  78. <span class="cube">
  79. <div>
  80. ≥90% </div>
  81. </span>
  82. <em>峰值锻炼</em>
  83. </li>
  84. </ul>
  85. </div>
  86. <el-dialog
  87. title=""
  88. :visible.sync="dialogVisible"
  89. width="36%"
  90. :show-close="false"
  91. >
  92. <div class="eggContainer">
  93. <h5>单次CK值(新个人记录)</h5>
  94. <div class="dgCenter">
  95. <div class="dghead">
  96. <!-- <img src="../static/img/head.png" height="147" width="147"/>-->
  97. <img :src="dialogMsg.head" height="147" width="147"/>
  98. <s>{{dialogMsg.name}}</s>
  99. </div>
  100. <div class="score">
  101. <em>{{dialogMsg.ck}}</em>
  102. <span>
  103. 打破了历史记录{{dialogMsg.topCk}}
  104. </span>
  105. </div>
  106. </div>
  107. </div>
  108. </el-dialog>
  109. </div>
  110. </template>
  111. <script>
  112. import Headside from '@/components/Headside'
  113. import {getUserList} from '@/api/getApiRes'
  114. let qs = require('qs');
  115. export default {
  116. name: "Main",
  117. data() {
  118. return {
  119. thisClassName: '',
  120. studentsClassName: [],
  121. students: [],
  122. single: [],
  123. dialogVisible: false,
  124. dialogMsg: '',
  125. }
  126. },
  127. mounted() {
  128. // this.colorType(91);
  129. this.GetgetUserList()
  130. },
  131. methods: {
  132. // 启动一个成就彩蛋
  133. createEgg(msg) {
  134. this.OpenEgg(msg)
  135. },
  136. OpenEgg(msg) {
  137. this.dialogMsg = msg;
  138. this.dialogVisible = true;
  139. // 倒计时5秒自动关闭
  140. let that = this;
  141. let totalTime = 5
  142. let clock = window.setInterval(() => {
  143. totalTime--
  144. if (totalTime < 0) {
  145. totalTime = 5;
  146. that.dialogVisible = false;
  147. }
  148. }, 1000)
  149. },
  150. GetgetUserList() {
  151. let that = this;
  152. let param = {
  153. token: localStorage.token,
  154. };
  155. let postdata = qs.stringify(param);
  156. getUserList(postdata).then(res => {
  157. let json = res;
  158. if (json.Code == 0) {
  159. that.students = json.Rs;
  160. that.giveClassName(json.Rs)
  161. // test 启动一个成就彩蛋
  162. this.createEgg(json.Rs[0]);
  163. } else {
  164. that.$message.error(json.Memo);
  165. }
  166. })
  167. },
  168. // 给每一个数据加类名,一次遍历全部赋值
  169. giveClassName(res) {
  170. let that = this;
  171. let numberClass = '';
  172. let colorClass = '';
  173. for (let i = 0; i < res.length; i++) {
  174. switch (true) {
  175. case res.length == 1:
  176. numberClass = 'max';
  177. break
  178. case res.length == 2:
  179. numberClass = 'two';
  180. break
  181. case res.length <= 6 && res.length > 1:
  182. numberClass = 'six';
  183. break
  184. case res.length <= 9 && res.length > 6:
  185. numberClass = 'nine';
  186. break
  187. case res.length <= 16 && res.length > 9:
  188. numberClass = 'sixteen';
  189. break
  190. case res.length > 16:
  191. numberClass = 'twenty';
  192. break
  193. }
  194. let per = parseInt(res[i].percent);
  195. switch (true) {
  196. case per >= 90:
  197. colorClass = 'red';
  198. break
  199. case per <= 89 && per > 80:
  200. colorClass = 'brown';
  201. break
  202. case per <= 79 && per > 70:
  203. colorClass = 'yellow';
  204. break
  205. case per <= 69 && per > 54:
  206. colorClass = 'green';
  207. break
  208. case per <= 54 && per > 39:
  209. colorClass = 'violet';
  210. break
  211. case per <= 39:
  212. colorClass = 'blue';
  213. break
  214. }
  215. that.studentsClassName[i] = {
  216. name: numberClass + ' ' + colorClass,
  217. }
  218. }
  219. },
  220. },
  221. components: {
  222. Headside
  223. }
  224. }
  225. </script>
  226. <style scoped>
  227. .pages {
  228. position: absolute;
  229. top: 0;
  230. left: 0;
  231. right: 0;
  232. bottom: 0;
  233. width: 100%;
  234. overflow: hidden;
  235. display: block;
  236. margin: 0 auto;
  237. background: url("../static/img/mainBg.png");
  238. background-size: 100%;
  239. background-repeat: no-repeat;
  240. }
  241. ul, li {
  242. list-style: none;
  243. margin: 0;
  244. padding: 0;
  245. }
  246. .userList {
  247. width: 96%;
  248. height: 80%;
  249. overflow: hidden;
  250. display: block;
  251. margin: 0 auto;
  252. }
  253. .userList {
  254. height: 100%;
  255. }
  256. .userList ul {
  257. width: 100%;
  258. overflow: hidden;
  259. display: block;
  260. margin: 0 auto;
  261. }
  262. .userList .max {
  263. width: 80%;
  264. height: 100%;
  265. overflow: visible;
  266. display: block;
  267. margin: 0 auto;
  268. }
  269. .max .ltLi {
  270. width: 5%;
  271. height: 545px;
  272. float: left;
  273. background: url("../static/img/ltCube.png");
  274. background-size: 100% 100%;
  275. background-repeat: no-repeat;
  276. }
  277. .max .rtLi {
  278. width: 5%;
  279. height: 545px;
  280. float: right;
  281. background: url("../static/img/rtCube.png");
  282. background-size: 100% 100%;
  283. background-repeat: no-repeat;
  284. }
  285. .max .centerLi {
  286. width: 90%;
  287. float: left;
  288. height: 545px;
  289. background: #028FE1;
  290. }
  291. .blue .centerLi {
  292. background: #028FE1;
  293. }
  294. .violet .centerLi {
  295. background: #6D26FA;
  296. }
  297. .green .centerLi {
  298. background: #0AB105;
  299. }
  300. .yellow .centerLi {
  301. background: #BACC01;
  302. }
  303. .brown .centerLi {
  304. background: #EA8813;
  305. }
  306. .red .centerLi {
  307. background: #CF1122;
  308. }
  309. .centerLi .top {
  310. width: 100%;
  311. overflow: hidden;
  312. display: block;
  313. margin: 0 auto;
  314. }
  315. .centerLi .bottom {
  316. width: 100%;
  317. overflow: hidden;
  318. display: block;
  319. margin: 0 auto;
  320. }
  321. .centerLi .cla {
  322. width: 30%;
  323. float: left;
  324. font-family: HeadLineA;
  325. font-weight: normal;
  326. font-size: 175px;
  327. text-align: center;
  328. color: #fff;
  329. line-height: 360px;
  330. }
  331. .centerLi .cla s {
  332. position: relative;
  333. top: -100px;
  334. font-family: "PingFang SC";
  335. font-weight: 500;
  336. font-size: 54px;
  337. text-align: center;
  338. color: #fff;
  339. text-decoration: none;
  340. }
  341. .centerLi .heartJump {
  342. width: 30%;
  343. float: right;
  344. font-family: HeadLineA;
  345. font-weight: normal;
  346. font-size: 175px;
  347. text-align: center;
  348. color: #fff;
  349. line-height: 360px;
  350. }
  351. .centerLi .heartJump img {
  352. position: relative;
  353. top: -100px;
  354. font-family: "PingFang SC";
  355. font-weight: 500;
  356. font-size: 54px;
  357. text-align: center;
  358. color: #fff;
  359. text-decoration: none;
  360. }
  361. .centerLi .human {
  362. width: 40%;
  363. float: left;
  364. padding-top: 3%;
  365. overflow: hidden;
  366. }
  367. .human img {
  368. overflow: hidden;
  369. display: block;
  370. margin: 0 auto;
  371. border-radius: 250px;
  372. border: 3px solid #fff;
  373. }
  374. .human .name {
  375. position: relative;
  376. top: -25px;
  377. width: 40%;
  378. height: 70px;
  379. overflow: hidden;
  380. display: block;
  381. margin: 0 auto;
  382. border-radius: 35px;
  383. background: rgba(0, 0, 0, 0.8);
  384. opacity: 0.68;
  385. color: #fff;
  386. font-family: "PingFang SC";
  387. font-weight: 500;
  388. font-size: 43px;
  389. text-align: center;
  390. color: #fff;
  391. }
  392. .bottomLi {
  393. width: 100%;
  394. overflow: hidden;
  395. display: block;
  396. margin: 0 auto;
  397. font-family: HeadLineA;
  398. font-weight: normal;
  399. font-size: 50px;
  400. text-align: left;
  401. color: #fff;
  402. text-align: center;
  403. }
  404. .bottomLi .btcla {
  405. width: 30%;
  406. float: left;
  407. }
  408. .bottomLi .btck {
  409. width: 40%;
  410. float: left;
  411. }
  412. .bottomLi .step {
  413. width: 30%;
  414. float: right;
  415. }
  416. .levelIcon {
  417. position: absolute;
  418. bottom: 5px;
  419. width: 100%;
  420. overflow: hidden;
  421. display: block;
  422. margin: 0 auto;
  423. height: 120px;
  424. padding-bottom: 5px;
  425. }
  426. .levelIcon ul {
  427. width: 96%;
  428. height: 100%;
  429. overflow: hidden;
  430. display: block;
  431. margin: 0 auto;
  432. }
  433. .levelIcon li {
  434. width: 14.666666666667%;
  435. height: 100%;
  436. float: left;
  437. padding-left: 2%;
  438. }
  439. .levelIcon li:nth-child(1) {
  440. padding-left: 0;
  441. }
  442. .levelIcon li span {
  443. width: 119px;
  444. height: 119px;
  445. overflow: hidden;
  446. float: left;
  447. background: url("../static/img/l1.png");
  448. background-repeat: no-repeat;
  449. background-size: 100% 100%;
  450. background-position: top center;
  451. font-family: "PingFang SC";
  452. font-weight: normal;
  453. font-size: 22px;
  454. letter-spacing: -0.05em;
  455. text-align: center;
  456. color: #fff;
  457. line-height: 35px;
  458. }
  459. .levelIcon li span div {
  460. width: 100%;
  461. overflow: hidden;
  462. display: block;
  463. margin: 0 auto;
  464. padding-top: 17%;
  465. }
  466. .levelIcon li:nth-child(2) span {
  467. background: url("../static/img/l2.png");
  468. background-size: 100% 100%;
  469. background-position: top center;
  470. }
  471. .levelIcon li:nth-child(3) span {
  472. background: url("../static/img/l3.png");
  473. background-size: 100% 100%;
  474. background-position: top center;
  475. }
  476. .levelIcon li:nth-child(4) span {
  477. background: url("../static/img/l4.png");
  478. background-size: 100% 100%;
  479. background-position: top center;
  480. }
  481. .levelIcon li:nth-child(5) span {
  482. background: url("../static/img/l5.png");
  483. background-size: 100% 100%;
  484. background-position: top center;
  485. }
  486. .levelIcon li:nth-child(6) span {
  487. background: url("../static/img/l6.png");
  488. background-size: 100% 100%;
  489. background-position: top center;
  490. }
  491. .levelIcon li:nth-child(6) span div {
  492. margin-top: 13%;
  493. }
  494. .levelIcon li em {
  495. float: right;
  496. width: 130px;
  497. height: 42px;
  498. border-radius: 21px;
  499. background: rgba(2, 143, 225, 0.16);
  500. border: 1px solid #028fe1;
  501. box-shadow: 0px 0px 5px #028fe1;
  502. font-family: "PingFang SC";
  503. font-weight: normal;
  504. font-size: 24px;
  505. text-align: center;
  506. color: #fff;
  507. font-style: normal;
  508. line-height: 42px;
  509. margin-top: 15%;
  510. margin-left: 1%;
  511. }
  512. .levelIcon li:nth-child(2) em {
  513. width: 130px;
  514. height: 42px;
  515. border-radius: 21px;
  516. background: rgba(109, 38, 250, 0.16);
  517. border: 1px solid #6d26fa;
  518. box-shadow: 0px 0px 5px #6d26fa;
  519. }
  520. .levelIcon li:nth-child(3) em {
  521. width: 130px;
  522. height: 42px;
  523. border-radius: 21px;
  524. background: rgba(10, 177, 5, 0.16);
  525. border: 1px solid #0ab105;
  526. box-shadow: 0px 0px 5px #0ab105;
  527. }
  528. .levelIcon li:nth-child(4) em {
  529. width: 130px;
  530. height: 42px;
  531. border-radius: 21px;
  532. background: rgba(186, 204, 1, 0.16);
  533. border: 1px solid #bacc01;
  534. box-shadow: 0px 0px 5px #bacc01;
  535. }
  536. .levelIcon li:nth-child(5) em {
  537. width: 130px;
  538. height: 42px;
  539. border-radius: 21px;
  540. background: rgba(234, 136, 19, 0.16);
  541. border: 1px solid #ea8813;
  542. box-shadow: 0px 0px 5px #ea8813;
  543. }
  544. .levelIcon li:nth-child(6) em {
  545. width: 130px;
  546. height: 42px;
  547. border-radius: 21px;
  548. background: rgba(209, 17, 34, 0.16);
  549. border: 1px solid #d11122;
  550. box-shadow: 0px 0px 5px #d11122;
  551. }
  552. .long {
  553. width: 198px;
  554. position: relative;
  555. bottom: 198px;
  556. right: -70px;
  557. float: right;
  558. z-index: 222;
  559. overflow: visible;
  560. }
  561. /*two*/
  562. .two {
  563. width: 48%;
  564. height: 475px;
  565. float: left;
  566. border: 2px solid #fff;
  567. }
  568. .two:nth-child(2) {
  569. float: right;
  570. }
  571. .two .centerLi .cla {
  572. font-family: HeadLineA;
  573. font-weight: normal;
  574. font-size: 180px;
  575. letter-spacing: -0.05em;
  576. height: 310px;
  577. line-height: 310px;
  578. }
  579. .two .centerLi .cla s {
  580. font-family: HeadLineA;
  581. font-weight: normal;
  582. font-size: 38px;
  583. letter-spacing: -0.05em;
  584. top: -120px;
  585. }
  586. .two .human {
  587. padding-top: 8%;
  588. }
  589. .two img {
  590. width: 280px;
  591. height: 280px;
  592. }
  593. .two .name {
  594. width: 290px;
  595. height: 60px;
  596. font-family: "PingFang SC";
  597. font-weight: 500;
  598. font-size: 40px;
  599. text-align: center;
  600. color: #fff;
  601. line-height: 60px;
  602. }
  603. .two .centerLi .heartJump {
  604. font-family: HeadLineA;
  605. font-weight: normal;
  606. font-size: 140px;
  607. letter-spacing: -0.05em;
  608. text-align: center;
  609. color: #fff;
  610. height: 310px;
  611. line-height: 310px;
  612. }
  613. .two .centerLi .heartJump img {
  614. width: 25px;
  615. height: 25px;
  616. top: -110px;
  617. }
  618. .two .bottomLi {
  619. font-family: HeadLineA;
  620. font-weight: normal;
  621. font-size: 40px;
  622. color: #fff;
  623. padding-bottom: 5px;
  624. }
  625. /*six*/
  626. .six {
  627. width: 31%;
  628. float: left;
  629. margin-right: 2%;
  630. margin-bottom: 2%;
  631. border: 2px solid #fff;
  632. }
  633. .six:nth-child(3) {
  634. margin-right: 0
  635. }
  636. .six:nth-child(6) {
  637. margin-right: 0
  638. }
  639. .six .centerLi .cla {
  640. font-family: HeadLineA;
  641. font-weight: normal;
  642. font-size: 100px;
  643. letter-spacing: -0.05em;
  644. height: 220px;
  645. line-height: 220px;
  646. }
  647. .six .centerLi .cla s {
  648. font-family: HeadLineA;
  649. font-weight: normal;
  650. font-size: 40px;
  651. letter-spacing: -0.05em;
  652. top: -60px;
  653. }
  654. .six .human {
  655. padding-top: 6%;
  656. }
  657. .six img {
  658. width: 160px;
  659. height: 160px;
  660. }
  661. .six .name {
  662. width: 180px;
  663. height: 40px;
  664. font-family: "PingFang SC";
  665. font-weight: 500;
  666. font-size: 30px;
  667. text-align: center;
  668. color: #fff;
  669. line-height: 40px;
  670. }
  671. .six .centerLi .heartJump {
  672. font-family: HeadLineA;
  673. font-weight: normal;
  674. font-size: 100px;
  675. letter-spacing: -0.05em;
  676. text-align: center;
  677. color: #fff;
  678. height: 220px;
  679. line-height: 220px;
  680. }
  681. .six .centerLi .heartJump img {
  682. width: 25px;
  683. height: 25px;
  684. top: -60px;
  685. }
  686. .six .bottomLi {
  687. font-family: HeadLineA;
  688. font-weight: normal;
  689. font-size: 32px;
  690. color: #fff;
  691. padding-bottom: 15px;
  692. }
  693. /*nine*/
  694. .nine {
  695. width: 31.5%;
  696. float: left;
  697. margin-right: 2%;
  698. margin-bottom: 2%;
  699. border: 2px solid #fff;
  700. }
  701. .nine:nth-child(3) {
  702. margin-right: 0
  703. }
  704. .nine:nth-child(6) {
  705. margin-right: 0
  706. }
  707. .nine:nth-child(9) {
  708. margin-right: 0
  709. }
  710. .nine .centerLi .cla {
  711. font-family: HeadLineA;
  712. font-weight: normal;
  713. font-size: 79px;
  714. letter-spacing: -0.05em;
  715. height: 150px;
  716. line-height: 150px;
  717. }
  718. .nine .centerLi .cla s {
  719. font-family: HeadLineA;
  720. font-weight: normal;
  721. font-size: 36px;
  722. letter-spacing: -0.05em;
  723. top: -60px;
  724. }
  725. .nine .human {
  726. padding-top: 2%;
  727. }
  728. .nine img {
  729. width: 100px;
  730. height: 100px;
  731. }
  732. .nine .name {
  733. width: 120px;
  734. height: 30px;
  735. font-family: "PingFang SC";
  736. font-weight: 500;
  737. font-size: 24px;
  738. text-align: center;
  739. color: #fff;
  740. line-height: 30px;
  741. }
  742. .nine .centerLi .heartJump {
  743. font-family: HeadLineA;
  744. font-weight: normal;
  745. font-size: 79px;
  746. letter-spacing: -0.05em;
  747. text-align: center;
  748. color: #fff;
  749. height: 150px;
  750. line-height: 150px;
  751. }
  752. .nine .centerLi .heartJump img {
  753. width: 25px;
  754. height: 25px;
  755. top: -60px;
  756. }
  757. .nine .bottomLi {
  758. font-family: HeadLineA;
  759. font-weight: normal;
  760. font-size: 24px;
  761. color: #fff;
  762. padding-bottom: 5px;
  763. }
  764. /*sixteen*/
  765. .sixteen {
  766. width: 23.5%;
  767. float: left;
  768. margin-right: 0.3%;
  769. margin-bottom: 0.3%;
  770. border: 2px solid #fff;
  771. }
  772. .sixteen:nth-child(4) {
  773. margin-right: 0
  774. }
  775. .sixteen:nth-child(8) {
  776. margin-right: 0
  777. }
  778. .sixteen:nth-child(12) {
  779. margin-right: 0
  780. }
  781. .sixteen:nth-child(16) {
  782. margin-right: 0
  783. }
  784. .sixteen .centerLi .cla {
  785. font-family: HeadLineA;
  786. font-weight: normal;
  787. font-size: 49px;
  788. letter-spacing: -0.05em;
  789. height: 100px;
  790. line-height: 120px;
  791. }
  792. .sixteen .centerLi .cla s {
  793. font-family: HeadLineA;
  794. font-weight: normal;
  795. font-size: 30px;
  796. letter-spacing: -0.05em;
  797. top: -30px;
  798. }
  799. .sixteen .human {
  800. padding-top: 2%;
  801. height: 120px;
  802. overflow: hidden;
  803. }
  804. .sixteen img {
  805. width: 90px;
  806. height: 90px;
  807. }
  808. .sixteen .name {
  809. width: 100px;
  810. height: 26px;
  811. font-family: "PingFang SC";
  812. font-weight: 500;
  813. font-size: 20px;
  814. text-align: center;
  815. color: #fff;
  816. line-height: 26px;
  817. }
  818. .sixteen .centerLi .heartJump {
  819. font-family: HeadLineA;
  820. font-weight: normal;
  821. font-size: 49px;
  822. letter-spacing: -0.05em;
  823. text-align: center;
  824. color: #fff;
  825. height: 100px;
  826. line-height: 120px;
  827. }
  828. .sixteen .centerLi .heartJump img {
  829. width: 20px;
  830. height: 20px;
  831. top: -30px;
  832. }
  833. .sixteen .bottomLi {
  834. font-family: HeadLineA;
  835. font-weight: normal;
  836. font-size: 22px;
  837. color: #fff;
  838. padding-bottom: 5px;
  839. }
  840. /*twenty*/
  841. .twenty {
  842. width: 19.5%;
  843. float: left;
  844. margin-right: 0.3%;
  845. margin-bottom: 0.3%;
  846. border: 2px solid #fff;
  847. }
  848. .twenty:nth-child(5) {
  849. margin-right: 0
  850. }
  851. .twenty:nth-child(10) {
  852. margin-right: 0
  853. }
  854. .twenty:nth-child(15) {
  855. margin-right: 0
  856. }
  857. .twenty:nth-child(20) {
  858. margin-right: 0
  859. }
  860. .twenty .centerLi .cla {
  861. font-family: HeadLineA;
  862. font-weight: normal;
  863. font-size: 40px;
  864. letter-spacing: -0.05em;
  865. height: 90px;
  866. line-height: 90px;
  867. }
  868. .twenty .centerLi .cla s {
  869. font-family: HeadLineA;
  870. font-weight: normal;
  871. font-size: 16px;
  872. letter-spacing: -0.05em;
  873. top: -20px;
  874. }
  875. .twenty .human {
  876. padding-top: 2%;
  877. height: 110px;
  878. overflow: hidden;
  879. }
  880. .twenty img {
  881. width: 90px;
  882. height: 90px;
  883. }
  884. .twenty .name {
  885. width: 80px;
  886. height: 24px;
  887. font-family: "PingFang SC";
  888. font-weight: 500;
  889. font-size: 16px;
  890. text-align: center;
  891. color: #fff;
  892. line-height: 24px;
  893. }
  894. .twenty .centerLi .heartJump {
  895. font-family: HeadLineA;
  896. font-weight: normal;
  897. font-size: 40px;
  898. letter-spacing: -0.05em;
  899. text-align: center;
  900. color: #fff;
  901. height: 90px;
  902. line-height: 90px;
  903. }
  904. .twenty .centerLi .heartJump img {
  905. width: 14px;
  906. height: 14px;
  907. top: -20px;
  908. }
  909. .twenty .bottomLi {
  910. font-family: HeadLineA;
  911. font-weight: normal;
  912. font-size: 18px;
  913. color: #fff;
  914. padding-bottom: 5px;
  915. }
  916. /*成就彩蛋*/
  917. /deep/ .el-dialog {
  918. background: url("../static/img/dialog.png");
  919. background-position: top center;
  920. background-repeat: no-repeat;
  921. background-size: 100%;
  922. min-height: 50%;
  923. box-shadow: none;
  924. }
  925. .eggContainer {
  926. width: 87%;
  927. overflow: hidden;
  928. margin: 0 auto;
  929. float: left;
  930. }
  931. .eggContainer h5 {
  932. font-family: Roboto;
  933. font-weight: normal;
  934. font-size: 36px;
  935. text-align: center;
  936. color: #fff;
  937. margin: 0;
  938. margin-bottom: 5%;
  939. }
  940. .eggContainer .dgCenter {
  941. width: 90%;
  942. overflow: hidden;
  943. display: block;
  944. margin: 0 auto;
  945. }
  946. .dgCenter .dghead {
  947. width: 40%;
  948. float: left;
  949. }
  950. .dghead img {
  951. width: 140px;
  952. height: 140px;
  953. overflow: hidden;
  954. display: block;
  955. margin: 0 auto;
  956. padding: 3px;
  957. border-radius: 250px;
  958. border: 2px solid #fff;
  959. }
  960. .dghead s {
  961. font-family: Roboto;
  962. font-weight: normal;
  963. font-size: 30px;
  964. text-align: center;
  965. color: #fff;
  966. font-style: normal;
  967. text-decoration: none;
  968. margin-top: 10px;
  969. }
  970. .score {
  971. width: 60%;
  972. float: right;
  973. }
  974. .score em {
  975. width: 100%;
  976. overflow: hidden;
  977. display: block;
  978. margin: 0 auto;
  979. font-family: Roboto;
  980. font-weight: bold;
  981. font-size: 90px;
  982. text-align: center;
  983. color: #fff;
  984. font-style: normal;
  985. height: 150px;
  986. line-height: 150px;
  987. }
  988. .score span {
  989. width: 100%;
  990. overflow: hidden;
  991. display: block;
  992. margin: 0 auto;
  993. font-family: Roboto;
  994. font-weight: normal;
  995. font-size: 30px;
  996. color: #fff;
  997. text-align: center;
  998. }
  999. </style>