pk.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  1. <template>
  2. <div class="pages">
  3. <Headside></Headside>
  4. <div class="pk-detail-con">
  5. <img src="../static/img/pk/left_power.png" class="lp_icon"/>
  6. <div class="progress">
  7. <div class="progress-bar" :style="{width: classInfo.pkVal}">
  8. <i class="lightning"></i>
  9. </div>
  10. </div>
  11. <img src="../static/img/pk/right_power.png" class="rp_icon"/>
  12. </div>
  13. <div class="pk_container">
  14. <div class="lt">
  15. <ul>
  16. <li :class="RedstudentsClassName" v-for="(s,i) in Redstudents">
  17. <div class="bg">
  18. <h5>{{ s.Name }}</h5>
  19. <div class="user">
  20. <div class="ult">
  21. <em>
  22. <div v-if="s.activePercent != 0">
  23. {{ s.activePercent}}
  24. </div>
  25. <div class="plus" v-if="s.activePercent == 0">
  26. ---
  27. </div>
  28. <s>%</s>
  29. </em>
  30. </div>
  31. <div class="umd">
  32. <div class="circle">
  33. <img src="../static/img/people/flyhead.png"/>
  34. </div>
  35. </div>
  36. <div class="urt">
  37. <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) > 100">{{
  38. s.realHr }}</em>
  39. <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) <= 100">{{
  40. s.realHr }}</em>
  41. <em class="plus" v-if="s.realHr == 0"> --- </em>
  42. <img src="../static/img/heart.svg" class=""/>
  43. </div>
  44. </div>
  45. <div class="bottomLi">
  46. <div class="btcla">
  47. <img src="../static/img/s1.svg"/>
  48. <span>{{ s.Cle |fmtFloat }}</span>
  49. </div>
  50. <div class="btck">
  51. <img src="../static/img/s2.svg"/>
  52. <span>{{ s.Steps }}</span>
  53. </div>
  54. <div class="step">
  55. <img src="../static/img/ck.svg"/>
  56. <span>{{ s.Ck |fmtFloat}}</span>
  57. </div>
  58. </div>
  59. </div>
  60. </li>
  61. </ul>
  62. </div>
  63. <div class="md">
  64. <div class="partInfo">
  65. <span class="title rtitle">
  66. <img src="../static/img/pk/rfight.png"/>
  67. ck值
  68. </span>
  69. <span class="title btitle">
  70. <img src="../static/img/pk/bfight.png"/>
  71. ck值
  72. </span>
  73. </div>
  74. <div class="cubelist">
  75. <div class="cubes rcube">
  76. <em>红队</em>
  77. </div>
  78. <img class="vs" src="../static/img/pk/vs.png"/>
  79. <div class="cubes bcube">
  80. <em>蓝队</em>
  81. </div>
  82. </div>
  83. <div class="teamScore">
  84. <div class="lt">{{classInfo.redSum}}</div>
  85. <div class="rt">{{classInfo.blueSum}}</div>
  86. </div>
  87. <div class="bottomInfo">
  88. <span class="names">
  89. {{classInfo.name}}
  90. </span>
  91. <div class="teacher">
  92. <span>教练:{{classInfo.teacher}}</span>
  93. <span>人数:{{classInfo.num}}</span>
  94. </div>
  95. <div class="classTime">
  96. {{classInfo.endTime}}
  97. </div>
  98. </div>
  99. </div>
  100. <div class="rt">
  101. <ul>
  102. <li :class="BluestudentsClassName" v-for="(s,i) in Bluestudents">
  103. </li>
  104. </ul>
  105. </div>
  106. </div>
  107. </div>
  108. </template>
  109. <script>
  110. import '../libs/rem';
  111. import Headside from '@/components/Headside'
  112. import {getHello} from '@/api/getApiRes'
  113. import '../libs/rem';
  114. let qs = require('qs');
  115. export default {
  116. data() {
  117. return {
  118. trueDate: true,//真实数据 true false
  119. studentsClassName: [],
  120. RedstudentsClassName: '',
  121. BluestudentsClassName: '',
  122. Redstudents: [],
  123. Bluestudents: [],
  124. classInfo: {
  125. name: '竞技课程',
  126. teacher: '凯瑞根',
  127. num: '0',
  128. btTime: '2020-11-13 09:00:00',//时间戳
  129. endTime: '00:00:00',
  130. redSum: 0,
  131. blueSum: 0,
  132. pkVal: '50%'
  133. }
  134. }
  135. },
  136. mounted() {
  137. // this.timer = setInterval(() => {
  138. // this.GetgetUserList();
  139. // this.ClacClassTime();
  140. // }, 1000);
  141. this.GetgetUserList();
  142. },
  143. methods: {
  144. fakeNews() {
  145. let item = [];
  146. let nums = Math.random() * 100 + 1;
  147. this.fakeNums = 3;
  148. for (var i = 0; i < this.fakeNums; i++) {
  149. item.push(
  150. {
  151. "SvId": 1,
  152. "UserId": 1,
  153. "Cle": 999,
  154. "realHr": 112,
  155. "activePercent": 100,
  156. "Steps": 9999,
  157. "Name": "东南西北",
  158. "updateTime": 1604568915582,
  159. "Ck": nums,
  160. "head": 'flyhead.png'
  161. }
  162. )
  163. }
  164. return item;
  165. },
  166. GetgetUserList() {
  167. let that = this;
  168. let param = {
  169. token: localStorage.token,
  170. };
  171. this.giveClassName(this.fakeNews(), 1);
  172. this.Redstudents = this.fakeNews();
  173. this.giveClassName(this.fakeNews(), 2);
  174. this.Bluestudents = this.fakeNews();
  175. // 总人数
  176. this.classInfo.num = parseInt(this.Redstudents.length) + parseInt(this.Bluestudents.length);
  177. // this.giveClassName(this.Bluestudents,2);
  178. this.CalcTeamCk();
  179. return false
  180. let postdata = qs.stringify(param);
  181. getHello(postdata).then(res => {
  182. let json = res;
  183. if (json.Code == 0) {
  184. // 返回空值不处理
  185. if (that.times == 1) {
  186. that.students = json.Rs;
  187. if (!json.Rs) return false;
  188. that.times++;
  189. that.giveClassName(json.Rs);
  190. } else {
  191. if (localStorage.result != JSON.stringify(json.Rs)) {
  192. that.students = json.Rs;
  193. if (!json.Rs) return false
  194. }
  195. localStorage.res = JSON.stringify(json.Rs);
  196. that.giveClassName(json.Rs);
  197. }
  198. // test 启动一个成就彩蛋
  199. // this.createEgg(that.students[4]);
  200. } else {
  201. // 已下课
  202. console.log(json.Code);
  203. if (json.Code == '999') {
  204. that.$router.push({path: '/rank'});
  205. } else {
  206. // 已出错
  207. that.$message.error(json.Memo);
  208. }
  209. }
  210. })
  211. },
  212. giveClassName(res, type) {
  213. let that = this;
  214. let numberClass = '';
  215. switch (true) {
  216. case parseInt(res.length) <= 2 && parseInt(res.length) > 0:
  217. numberClass = 'two';
  218. break;
  219. case parseInt(res.length) == 3:
  220. numberClass = 'three';
  221. break;
  222. case parseInt(res.length) <= 4 && parseInt(res.length) > 2:
  223. numberClass = 'four';
  224. break;
  225. case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
  226. numberClass = 'four';
  227. break;
  228. case parseInt(res.length) <= 8 && parseInt(res.length) > 6:
  229. numberClass = 'eight';
  230. break;
  231. }
  232. if (type == 1) {
  233. that.RedstudentsClassName = numberClass;
  234. } else {
  235. that.BluestudentsClassName = numberClass;
  236. }
  237. },
  238. // 计算团队竞技课持续时间
  239. ClacClassTime() {
  240. let endtime = new Date(this.classInfo.btTime);//结束时间
  241. let today = new Date();//当前时间
  242. let delta_T = today.getTime() - endtime.getTime();//时间间隔
  243. if (delta_T < 0) {
  244. //clearInterval(auto);
  245. //show_time.innerHTML = "倒计时已经结束";
  246. }
  247. let total_days = delta_T / (24 * 60 * 60 * 1000);//总天数
  248. let total_show = Math.floor(total_days);//实际显示的天数
  249. let total_hours = (total_days - total_show) * 24;//剩余小时
  250. let hours_show = Math.floor(total_hours);//实际显示的小时数
  251. let total_minutes = (total_hours - hours_show) * 60;//剩余的分钟数
  252. let minutes_show = Math.floor(total_minutes);//实际显示的分钟数
  253. let total_seconds = (total_minutes - minutes_show) * 60;//剩余的分钟数
  254. let seconds_show = Math.floor(total_seconds);//实际显示的秒数
  255. hours_show = hours_show < 9 ? "0" + hours_show : hours_show;
  256. minutes_show = minutes_show < 9 ? "0" + minutes_show : minutes_show;
  257. seconds_show = seconds_show < 9 ? "0" + seconds_show : seconds_show;
  258. let str = hours_show + ":" + minutes_show + ":" + seconds_show;
  259. this.classInfo.endTime = str;
  260. },
  261. // 计算双方对抗强度加总
  262. CalcTeamCk() {
  263. let that = this;
  264. let Redsum = 0;
  265. let Bluesum = 0;
  266. let sumMax = 0;
  267. if (that.Redstudents) {
  268. that.Redstudents.map(function (i) {
  269. Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
  270. });
  271. }
  272. if (that.Bluestudents) {
  273. that.Bluestudents.map(function (i) {
  274. Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
  275. });
  276. }
  277. that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
  278. that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
  279. sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
  280. that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
  281. }
  282. },
  283. filters: {
  284. fmtNum(val) {
  285. if (val == 0) {
  286. return '--'
  287. } else {
  288. if (parseInt(val) < 0) return 0;
  289. if (parseInt(val) > 0) return val
  290. }
  291. },
  292. fmtFloat(val) {
  293. if (val == 0) {
  294. return '0'
  295. } else {
  296. return parseFloat(val).toFixed(1);
  297. }
  298. }
  299. },
  300. components: {
  301. Headside
  302. }
  303. }
  304. </script>
  305. <style scoped>
  306. .pages {
  307. position: absolute;
  308. top: 0;
  309. left: 0;
  310. right: 0;
  311. bottom: 0;
  312. width: 100%;
  313. overflow: hidden;
  314. display: block;
  315. margin: 0 auto;
  316. background-color: #028fe1;
  317. background: url("../static/img/pkBg.png");
  318. background-size: 100%;
  319. background-repeat: no-repeat;
  320. }
  321. * {
  322. font-family: vista;
  323. }
  324. ul, li {
  325. list-style: none;
  326. margin: 0;
  327. padding: 0;
  328. }
  329. em {
  330. font-style: normal;
  331. }
  332. .pk-detail-con {
  333. position: relative;
  334. top: 0.5rem;
  335. width: 98%;
  336. height: 0.6rem;
  337. display: block;
  338. margin: 0 auto;
  339. overflow: visible;
  340. }
  341. .progress {
  342. width: 100%;
  343. height: 0.3rem;
  344. overflow: visible;
  345. background-color: #60B7FF;
  346. border-radius: 19px;
  347. background-image: url("../static/img/pk/blue.png");
  348. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  349. /*background-size: 40px 40px;*/
  350. }
  351. .progress-bar {
  352. height: 0.3rem;
  353. text-align: left;
  354. background-color: #FF9960;
  355. -moz-transition: width .6s ease;
  356. -webkit-transition: width .6s ease;
  357. transition: width .6s ease;
  358. background-image: url("../static/img/pk/red.png");
  359. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  360. /*background-size: 40px 40px;*/
  361. }
  362. .progress, .progress-bar {
  363. /*background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  364. /*background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  365. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  366. }
  367. .lightning {
  368. position: relative;
  369. top: -0.5rem;
  370. width: 1rem;
  371. height: 1.3rem;
  372. float: right;
  373. margin-right: -0.5rem;
  374. background: url("../static/img/pk/light.png") no-repeat center;
  375. background-size: cover;
  376. }
  377. .lp_icon {
  378. position: absolute;
  379. left: -0.1rem;
  380. top: -0.2rem;
  381. width: 0.8rem;
  382. height: 0.8rem;
  383. float: left;
  384. }
  385. .rp_icon {
  386. position: absolute;
  387. right: 0;
  388. top: -0.2rem;
  389. width: 0.8rem;
  390. height: 0.8rem;
  391. float: right;
  392. }
  393. .pk_container {
  394. width: 98%;
  395. overflow: hidden;
  396. display: block;
  397. margin: 0 auto;
  398. }
  399. .pk_container .lt {
  400. width: 35%;
  401. float: left;
  402. }
  403. .pk_container .rt {
  404. width: 35%;
  405. float: right;
  406. }
  407. .pk_container .md {
  408. width: 30%;
  409. float: left;
  410. }
  411. .pk_container ul {
  412. width: 100%;
  413. overflow: hidden;
  414. display: block;
  415. margin: 0 auto;
  416. padding-top: 0.01rem;
  417. }
  418. .pk_container li {
  419. overflow: hidden;
  420. color: #fff;
  421. margin-bottom: 0.1rem;
  422. }
  423. .pk_container .lt li {
  424. overflow: hidden;
  425. }
  426. .pk_container .rt li {
  427. overflow: hidden;
  428. }
  429. .pk_container .lt .bg {
  430. border: 2px solid rgba(255, 255, 255, 0.3);
  431. background: rgba(233, 53, 18, 0.67);
  432. }
  433. .pk_container .rt .bg {
  434. border: 2px solid rgba(255, 255, 255, 0.3);
  435. background: rgba(7, 43, 188, 0.67);
  436. }
  437. .pk_container li .bg > h5 {
  438. font-family: vista;
  439. font-weight: 500;
  440. font-size: 0.3rem;
  441. text-align: center;
  442. color: #fff;
  443. margin: 0;
  444. margin-top: 0.1rem;
  445. margin-bottom: 0.1rem;
  446. }
  447. .pk_container li .user {
  448. width: 100%;
  449. overflow: hidden;
  450. display: block;
  451. margin: 0 auto;
  452. }
  453. .pk_container .user .ult {
  454. width: 33.333%;
  455. float: left;
  456. overflow: visible;
  457. flex-direction: column;
  458. }
  459. .pk_container .user .umd {
  460. width: 33.333%;
  461. float: left;
  462. overflow: hidden;
  463. flex-direction: column
  464. }
  465. .pk_container .user .urt {
  466. width: 33.333%;
  467. float: right;
  468. flex-direction: column;
  469. }
  470. .centerLi .slowJump {
  471. animation: mymove 3s infinite;
  472. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  473. animation-direction: alternate; /*轮流反向播放动画。*/
  474. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  475. /* Safari 和 Chrome */
  476. -webkit-animation: mymove 3s infinite;
  477. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  478. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  479. }
  480. .user .ult span {
  481. width: 100%;
  482. overflow: hidden;
  483. display: block;
  484. margin: 0 auto;
  485. font-family: "Source Han Sans CN";
  486. font-weight: normal;
  487. font-size: 0.3rem;
  488. text-align: center;
  489. }
  490. .user .ult em {
  491. width: 100%;
  492. overflow: hidden;
  493. display: block;
  494. margin: 0 auto;
  495. }
  496. .user .ult em div {
  497. width: 80%;
  498. overflow: hidden;
  499. float: right;
  500. text-align: right;
  501. padding-right: 0.3rem;
  502. font-size: 0.8rem;
  503. line-height: 1.6rem;
  504. }
  505. .user .ult s {
  506. position: relative;
  507. top: -1.2rem;
  508. right: 0rem;
  509. float: right;
  510. font-family: HeadLineA;
  511. font-weight: normal;
  512. font-size: 0.3rem;
  513. text-align: center;
  514. text-decoration: none;
  515. }
  516. .circle {
  517. width: 1.65rem;
  518. height: 1.65rem;
  519. overflow: hidden;
  520. display: block;
  521. margin: 0 auto;
  522. border-radius: 250px;
  523. padding-top: 0.09rem;
  524. }
  525. .user .umd img {
  526. width: 1.5rem;
  527. height: 1.5rem;
  528. overflow: hidden;
  529. display: block;
  530. margin: 0 auto;
  531. border-radius: 250px;
  532. border: 5px solid #B9CB01;
  533. }
  534. .urt img {
  535. position: relative;
  536. right: 0.1rem;
  537. top: -1.2rem;
  538. width: 0.35rem;
  539. height: 0.35rem;
  540. float: right;
  541. }
  542. .urt em {
  543. overflow: hidden;
  544. display: block;
  545. margin: 0 auto;
  546. font-family: HeadLineA;
  547. font-weight: normal;
  548. font-size: 0.7rem;
  549. letter-spacing: -0.05em;
  550. text-align: right;
  551. font-style: normal;
  552. line-height: 1.5rem;
  553. padding-right: 25%;
  554. }
  555. .bottomLi {
  556. width: 98%;
  557. overflow: hidden;
  558. display: block;
  559. margin: 0 auto;
  560. font-weight: normal;
  561. color: #fff;
  562. text-align: center;
  563. font-size: 0.4rem;
  564. text-indent: 0.2rem;
  565. }
  566. .bottomLi img {
  567. /*width: 0.24rem;*/
  568. /*height: 0.24rem;*/
  569. float: left;
  570. margin-left: 10%;
  571. }
  572. .bottomLi span {
  573. float: left;
  574. text-align: left;
  575. }
  576. .bottomLi .btcla {
  577. width: 30%;
  578. float: left;
  579. text-align: left;
  580. }
  581. .bottomLi .btck {
  582. width: 40%;
  583. float: left;
  584. text-align: left;
  585. }
  586. .bottomLi .step {
  587. width: 30%;
  588. float: right;
  589. text-align: left;
  590. }
  591. @keyframes mymove {
  592. 0% {
  593. transform: scale(1); /*开始为原始大小*/
  594. }
  595. 25% {
  596. transform: scale(1.2); /*放大1.1倍*/
  597. }
  598. 50% {
  599. transform: scale(1);
  600. }
  601. 75% {
  602. transform: scale(1.2);
  603. }
  604. }
  605. @-webkit-keyframes mymove /*Safari and Chrome*/
  606. {
  607. 0% {
  608. transform: scale(1); /*开始为原始大小*/
  609. }
  610. 25% {
  611. transform: scale(1.2); /*放大1.1倍*/
  612. }
  613. 50% {
  614. transform: scale(1);
  615. }
  616. 75% {
  617. transform: scale(1.2);
  618. }
  619. }
  620. .md {
  621. width: 30%;
  622. overflow: hidden;
  623. float: left;
  624. }
  625. .partInfo {
  626. width: 100%;
  627. overflow: hidden;
  628. display: block;
  629. margin: 0 auto;
  630. padding-top: 1rem;
  631. }
  632. .partInfo .rp, .partInfo .bp {
  633. width: 50%;
  634. float: left;
  635. }
  636. .partInfo .title {
  637. width: 33%;
  638. overflow: hidden;
  639. display: block;
  640. margin: 0;
  641. font-size: 0.4rem;
  642. color: #fff;
  643. text-align: left;
  644. }
  645. .rtitle {
  646. float: left;
  647. padding-left: 0.25rem;
  648. }
  649. .partInfo .btitle {
  650. width: 30%;
  651. float: right;
  652. }
  653. .partInfo .title img {
  654. float: left;
  655. margin-right: 0.2rem;
  656. }
  657. .cubelist {
  658. width: 100%;
  659. overflow: hidden;
  660. display: block;
  661. margin: 0 auto;
  662. }
  663. .cubelist .cubes {
  664. width: 33%;
  665. height: 2rem;
  666. overflow: hidden;
  667. float: left;
  668. background-position: top center;
  669. }
  670. .cubelist .vs {
  671. width: 33%;
  672. height: 2rem;
  673. overflow: hidden;
  674. float: left;
  675. }
  676. .cubelist .cubes em {
  677. width: 80%;
  678. overflow: hidden;
  679. display: block;
  680. margin: 0 auto;
  681. text-align: center;
  682. font-size: 0.3rem;
  683. font-style: normal;
  684. color: #fff;
  685. line-height: 2rem;
  686. }
  687. .cubes.rcube {
  688. background: url("../static/img/pk/rcube.png");
  689. background-size: 100% 100%;
  690. }
  691. .cubes.bcube {
  692. background: url("../static/img/pk/bcube.png");
  693. background-size: 100% 100%;
  694. }
  695. .teamScore {
  696. width: 100%;
  697. overflow: hidden;
  698. display: block;
  699. margin: 0 auto;
  700. }
  701. .teamScore div {
  702. width: 50%;
  703. float: left;
  704. text-align: center;
  705. color: #fff;
  706. font-size: 0.6rem;
  707. }
  708. .bottomInfo {
  709. width: 100%;
  710. overflow: hidden;
  711. display: block;
  712. margin: 0 auto;
  713. }
  714. .bottomInfo .names {
  715. width: 98%;
  716. height: 0.6rem;
  717. border-radius: 36px;
  718. background: #0925b4;
  719. border: 2px solid rgba(255, 255, 255, 0.5);
  720. font-size: 0.4rem;
  721. font-family: Roboto;
  722. font-weight: normal;
  723. text-align: center;
  724. color: #e1ff00;
  725. overflow: hidden;
  726. display: block;
  727. margin: 0 auto;
  728. margin-top: 0.2rem;
  729. }
  730. .teacher {
  731. width: 100%;
  732. overflow: hidden;
  733. display: block;
  734. margin: 0 auto;
  735. margin-top: 0.1rem;
  736. margin-bottom: 0.1rem;
  737. color: #fff;
  738. font-size: 0.3rem;
  739. }
  740. .teacher span {
  741. width: 100%;
  742. overflow: hidden;
  743. display: block;
  744. margin: 0 auto;
  745. }
  746. .classTime {
  747. width: 100%;
  748. overflow: hidden;
  749. display: block;
  750. margin: 0 auto;
  751. color: #fff;
  752. text-align: center;
  753. }
  754. .fastJump {
  755. animation: mymove 1s infinite;
  756. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  757. animation-direction: alternate; /*轮流反向播放动画。*/
  758. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  759. /* Safari 和 Chrome */
  760. -webkit-animation: mymove 1s infinite;
  761. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  762. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  763. }
  764. .slowJump {
  765. animation: mymove 2s infinite;
  766. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  767. animation-direction: alternate; /*轮流反向播放动画。*/
  768. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  769. /* Safari 和 Chrome */
  770. -webkit-animation: mymove 3s infinite;
  771. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  772. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  773. }
  774. /*two*/
  775. .pk_container li.two {
  776. width: 90%;
  777. overflow: hidden;
  778. display: block;
  779. }
  780. .two .bottomLi {
  781. width: 98%;
  782. font-size: 0.35rem;
  783. margin-top: 0.3rem;
  784. text-align: center;
  785. }
  786. .two .bottomLi img {
  787. width: 0.4rem;
  788. height: 0.4rem;
  789. margin-top: 0.15rem;
  790. }
  791. .two .bottomLi .btck img {
  792. width: 0.4rem;
  793. margin-top: 0.1rem;
  794. }
  795. .two .bottomLi span {
  796. line-height: 0.8rem;
  797. text-indent: 0.1rem;
  798. }
  799. .two .bottomLi .btcla {
  800. width: 30%;
  801. }
  802. .two .bottomLi .btck {
  803. width: 33%;
  804. padding-left: 3%;
  805. }
  806. .two .bottomLi .step {
  807. width: 28%;
  808. padding-right: 0%;
  809. }
  810. .two .cla em.plus {
  811. position: relative;
  812. left: -0.3rem
  813. }
  814. .two .lhj span.plus {
  815. position: relative;
  816. left: 1.3rem
  817. }
  818. .two .bottomLi .btck img {
  819. width: 0.5rem;
  820. height: 0.5rem;
  821. margin-top: 0.12rem;
  822. }
  823. /*three*/
  824. .pk_container li.three {
  825. width: 90%;
  826. overflow: hidden;
  827. display: block;
  828. }
  829. .three .bottomLi {
  830. width: 98%;
  831. font-size: 0.35rem;
  832. margin-top: 0rem;
  833. text-align: center;
  834. }
  835. .three .circle {
  836. width: 1.2rem;
  837. height: 1.2rem;
  838. }
  839. .three .circle img {
  840. width: 0.9rem;
  841. height: 0.9rem;
  842. }
  843. .three .user {
  844. height: 1.2rem;
  845. overflow: hidden;
  846. }
  847. .three .ult em div {
  848. line-height: 1.2rem;
  849. }
  850. .three .urt em {
  851. line-height: 1.2rem;
  852. }
  853. .three .bottomLi img {
  854. width: 0.4rem;
  855. height: 0.4rem;
  856. margin-top: 0.15rem;
  857. }
  858. .three .bottomLi .btck img {
  859. width: 0.4rem;
  860. margin-top: 0.1rem;
  861. }
  862. .three .bottomLi span {
  863. line-height: 0.8rem;
  864. text-indent: 0.1rem;
  865. }
  866. .three .bottomLi .btcla {
  867. width: 30%;
  868. }
  869. .three .bottomLi .btck {
  870. width: 33%;
  871. padding-left: 3%;
  872. }
  873. .three .bottomLi .step {
  874. width: 28%;
  875. padding-right: 0%;
  876. }
  877. .three .cla em.plus {
  878. position: relative;
  879. left: -0.3rem
  880. }
  881. .three .lhj span.plus {
  882. position: relative;
  883. left: 1.3rem
  884. }
  885. .three .bottomLi .btck img {
  886. width: 0.5rem;
  887. height: 0.5rem;
  888. margin-top: 0.12rem;
  889. }
  890. /*four*/
  891. .four {
  892. width: 49%;
  893. float: left;
  894. }
  895. .four .bg {
  896. width: 96%;
  897. overflow: hidden;
  898. display: block;
  899. margin: 0 auto;
  900. }
  901. .pk_container li.four .bg > h5 {
  902. font-size: 0.25rem;
  903. }
  904. .four .user .ult span {
  905. font-size: 0.2rem;
  906. }
  907. .four .user .ult em div {
  908. width: 90%;
  909. margin-right: 0.05rem;
  910. font-size: 0.5rem;
  911. }
  912. .four .user .ult s {
  913. font-size: 0.1rem;
  914. }
  915. .four .circle {
  916. width: 1rem;
  917. height: 1rem;
  918. }
  919. .four .user .umd img {
  920. width: 0.8rem;
  921. height: 0.8rem;
  922. }
  923. .four .urt img {
  924. width: 0.2rem;
  925. height: 0.2rem;
  926. }
  927. .four .urt em {
  928. font-size: 0.4rem;
  929. line-height: 0.7rem;
  930. }
  931. .four .bottomLi {
  932. width: 100%;
  933. text-indent: 0.1rem;
  934. font-size: 0.2rem;
  935. }
  936. .four .bottomLi img {
  937. width: 0.2rem;
  938. height: 0.2rem;
  939. }
  940. .four .bottomLi span {
  941. width: 60%;
  942. }
  943. /*six*/
  944. /*eight*/
  945. .eight {
  946. width: 49%;
  947. float: left;
  948. }
  949. .eight .bg {
  950. width: 96%;
  951. overflow: hidden;
  952. display: block;
  953. margin: 0 auto;
  954. }
  955. .pk_container li.eight .bg > h5 {
  956. font-size: 0.15rem;
  957. margin-top: 0.05rem;
  958. margin-bottom: 0.05rem;
  959. }
  960. .eight .user .ult span {
  961. font-size: 0.1rem;
  962. }
  963. .eight .user .ult em div {
  964. width: 90%;
  965. margin-right: 0.15rem;
  966. font-size: 0.4rem;
  967. }
  968. .eight .user .ult s {
  969. font-size: 0.1rem;
  970. top: -0.5rem;
  971. right: 0.02rem;
  972. }
  973. .eight .circle {
  974. width: 0.8rem;
  975. height: 0.8rem;
  976. }
  977. .eight .user .umd img {
  978. width: 0.6rem;
  979. height: 0.6rem;
  980. }
  981. .eight .urt img {
  982. width: 0.1rem;
  983. height: 0.1rem;
  984. }
  985. .eight .urt em {
  986. font-size: 0.4rem;
  987. line-height: 0.7rem;
  988. }
  989. .eight .bottomLi {
  990. width: 100%;
  991. text-indent: 0.1rem;
  992. font-size: 0.2rem;
  993. }
  994. .eight .bottomLi img {
  995. width: 0.2rem;
  996. height: 0.2rem;
  997. }
  998. .eight .bottomLi span {
  999. width: 60%;
  1000. }
  1001. </style>