pk.vue 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  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. @import "../assets/css/bg.css";
  307. .pages {
  308. position: absolute;
  309. top: 0;
  310. left: 0;
  311. right: 0;
  312. bottom: 0;
  313. width: 100%;
  314. overflow: hidden;
  315. display: block;
  316. margin: 0 auto;
  317. background-color: #028fe1;
  318. background: url("../static/img/pkBg.png");
  319. background-size: 100%;
  320. background-repeat: no-repeat;
  321. }
  322. * {
  323. font-family: vista;
  324. }
  325. ul, li {
  326. list-style: none;
  327. margin: 0;
  328. padding: 0;
  329. }
  330. em {
  331. font-style: normal;
  332. }
  333. .pk-detail-con {
  334. position: relative;
  335. top: 0.5rem;
  336. width: 98%;
  337. height: 0.6rem;
  338. display: block;
  339. margin: 0 auto;
  340. overflow: visible;
  341. }
  342. .progress {
  343. width: 100%;
  344. height: 0.3rem;
  345. overflow: visible;
  346. background-color: #60B7FF;
  347. border-radius: 19px;
  348. background-image: url("../static/img/pk/blue.png");
  349. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  350. /*background-size: 40px 40px;*/
  351. }
  352. .progress-bar {
  353. height: 0.3rem;
  354. text-align: left;
  355. background-color: #FF9960;
  356. -moz-transition: width .6s ease;
  357. -webkit-transition: width .6s ease;
  358. transition: width .6s ease;
  359. background-image: url("../static/img/pk/red.png");
  360. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  361. /*background-size: 40px 40px;*/
  362. }
  363. .progress, .progress-bar {
  364. /*background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  365. /*background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  366. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  367. }
  368. .lightning {
  369. position: relative;
  370. top: -0.5rem;
  371. width: 1rem;
  372. height: 1.3rem;
  373. float: right;
  374. margin-right: -0.5rem;
  375. background: url("../static/img/pk/light.png") no-repeat center;
  376. background-size: cover;
  377. }
  378. .lp_icon {
  379. position: absolute;
  380. left: -0.1rem;
  381. top: -0.2rem;
  382. width: 0.8rem;
  383. height: 0.8rem;
  384. float: left;
  385. }
  386. .rp_icon {
  387. position: absolute;
  388. right: 0;
  389. top: -0.2rem;
  390. width: 0.8rem;
  391. height: 0.8rem;
  392. float: right;
  393. }
  394. .pk_container {
  395. width: 98%;
  396. overflow: hidden;
  397. display: block;
  398. margin: 0 auto;
  399. }
  400. .pk_container .lt {
  401. width: 35%;
  402. float: left;
  403. }
  404. .pk_container .rt {
  405. width: 35%;
  406. float: right;
  407. }
  408. .pk_container .md {
  409. width: 30%;
  410. float: left;
  411. }
  412. .pk_container ul {
  413. width: 100%;
  414. overflow: hidden;
  415. display: block;
  416. margin: 0 auto;
  417. padding-top: 0.01rem;
  418. }
  419. .pk_container li {
  420. overflow: hidden;
  421. color: #fff;
  422. margin-bottom: 0.1rem;
  423. }
  424. .pk_container .lt li {
  425. overflow: hidden;
  426. }
  427. .pk_container .rt li {
  428. overflow: hidden;
  429. }
  430. .pk_container .lt .bg {
  431. border: 2px solid rgba(255, 255, 255, 0.3);
  432. background: rgba(233, 53, 18, 0.67);
  433. }
  434. .pk_container .rt .bg {
  435. border: 2px solid rgba(255, 255, 255, 0.3);
  436. background: rgba(7, 43, 188, 0.67);
  437. }
  438. .pk_container li .bg > h5 {
  439. font-family: vista;
  440. font-weight: 500;
  441. font-size: 0.3rem;
  442. text-align: center;
  443. color: #fff;
  444. margin: 0;
  445. margin-top: 0.1rem;
  446. margin-bottom: 0.1rem;
  447. }
  448. .pk_container li .user {
  449. width: 100%;
  450. overflow: hidden;
  451. display: block;
  452. margin: 0 auto;
  453. }
  454. .pk_container .user .ult {
  455. width: 33.333%;
  456. float: left;
  457. overflow: visible;
  458. flex-direction: column;
  459. }
  460. .pk_container .user .umd {
  461. width: 33.333%;
  462. float: left;
  463. overflow: hidden;
  464. flex-direction: column
  465. }
  466. .pk_container .user .urt {
  467. width: 33.333%;
  468. float: right;
  469. flex-direction: column;
  470. }
  471. .centerLi .slowJump {
  472. animation: mymove 3s infinite;
  473. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  474. animation-direction: alternate; /*轮流反向播放动画。*/
  475. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  476. /* Safari 和 Chrome */
  477. -webkit-animation: mymove 3s infinite;
  478. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  479. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  480. }
  481. .user .ult span {
  482. width: 100%;
  483. overflow: hidden;
  484. display: block;
  485. margin: 0 auto;
  486. font-family: "Source Han Sans CN";
  487. font-weight: normal;
  488. font-size: 0.3rem;
  489. text-align: center;
  490. }
  491. .user .ult em {
  492. width: 100%;
  493. overflow: hidden;
  494. display: block;
  495. margin: 0 auto;
  496. }
  497. .user .ult em div {
  498. width: 80%;
  499. overflow: hidden;
  500. float: right;
  501. text-align: right;
  502. padding-right: 0.3rem;
  503. font-size: 0.8rem;
  504. line-height: 1.6rem;
  505. }
  506. .user .ult s {
  507. position: relative;
  508. top: -1.2rem;
  509. right: 0rem;
  510. float: right;
  511. font-family: HeadLineA;
  512. font-weight: normal;
  513. font-size: 0.3rem;
  514. text-align: center;
  515. text-decoration: none;
  516. }
  517. .circle {
  518. width: 1.65rem;
  519. height: 1.65rem;
  520. overflow: hidden;
  521. display: block;
  522. margin: 0 auto;
  523. border-radius: 250px;
  524. padding-top: 0.09rem;
  525. }
  526. .user .umd img {
  527. width: 1.5rem;
  528. height: 1.5rem;
  529. overflow: hidden;
  530. display: block;
  531. margin: 0 auto;
  532. border-radius: 250px;
  533. border: 5px solid #B9CB01;
  534. }
  535. .urt img {
  536. position: relative;
  537. right: 0.1rem;
  538. top: -1.2rem;
  539. width: 0.35rem;
  540. height: 0.35rem;
  541. float: right;
  542. }
  543. .urt em {
  544. overflow: hidden;
  545. display: block;
  546. margin: 0 auto;
  547. font-family: HeadLineA;
  548. font-weight: normal;
  549. font-size: 0.7rem;
  550. letter-spacing: -0.05em;
  551. text-align: right;
  552. font-style: normal;
  553. line-height: 1.5rem;
  554. padding-right: 25%;
  555. }
  556. .bottomLi {
  557. width: 98%;
  558. overflow: hidden;
  559. display: block;
  560. margin: 0 auto;
  561. font-weight: normal;
  562. color: #fff;
  563. text-align: center;
  564. font-size: 0.4rem;
  565. text-indent: 0.2rem;
  566. }
  567. .bottomLi img {
  568. /*width: 0.24rem;*/
  569. /*height: 0.24rem;*/
  570. float: left;
  571. margin-left: 10%;
  572. }
  573. .bottomLi span {
  574. float: left;
  575. text-align: left;
  576. }
  577. .bottomLi .btcla {
  578. width: 30%;
  579. float: left;
  580. text-align: left;
  581. }
  582. .bottomLi .btck {
  583. width: 40%;
  584. float: left;
  585. text-align: left;
  586. }
  587. .bottomLi .step {
  588. width: 30%;
  589. float: right;
  590. text-align: left;
  591. }
  592. @keyframes mymove {
  593. 0% {
  594. transform: scale(1); /*开始为原始大小*/
  595. }
  596. 25% {
  597. transform: scale(1.2); /*放大1.1倍*/
  598. }
  599. 50% {
  600. transform: scale(1);
  601. }
  602. 75% {
  603. transform: scale(1.2);
  604. }
  605. }
  606. @-webkit-keyframes mymove /*Safari and Chrome*/
  607. {
  608. 0% {
  609. transform: scale(1); /*开始为原始大小*/
  610. }
  611. 25% {
  612. transform: scale(1.2); /*放大1.1倍*/
  613. }
  614. 50% {
  615. transform: scale(1);
  616. }
  617. 75% {
  618. transform: scale(1.2);
  619. }
  620. }
  621. .md {
  622. width: 30%;
  623. overflow: hidden;
  624. float: left;
  625. }
  626. .partInfo {
  627. width: 100%;
  628. overflow: hidden;
  629. display: block;
  630. margin: 0 auto;
  631. padding-top: 1rem;
  632. }
  633. .partInfo .rp, .partInfo .bp {
  634. width: 50%;
  635. float: left;
  636. }
  637. .partInfo .title {
  638. width: 33%;
  639. overflow: hidden;
  640. display: block;
  641. margin: 0;
  642. font-size: 0.4rem;
  643. color: #fff;
  644. text-align: left;
  645. }
  646. .rtitle {
  647. float: left;
  648. padding-left: 0.25rem;
  649. }
  650. .partInfo .btitle {
  651. width: 30%;
  652. float: right;
  653. }
  654. .partInfo .title img {
  655. float: left;
  656. margin-right: 0.2rem;
  657. }
  658. .cubelist {
  659. width: 100%;
  660. overflow: hidden;
  661. display: block;
  662. margin: 0 auto;
  663. }
  664. .cubelist .cubes {
  665. width: 33%;
  666. height: 2rem;
  667. overflow: hidden;
  668. float: left;
  669. background-position: top center;
  670. }
  671. .cubelist .vs {
  672. width: 33%;
  673. height: 2rem;
  674. overflow: hidden;
  675. float: left;
  676. }
  677. .cubelist .cubes em {
  678. width: 80%;
  679. overflow: hidden;
  680. display: block;
  681. margin: 0 auto;
  682. text-align: center;
  683. font-size: 0.3rem;
  684. font-style: normal;
  685. color: #fff;
  686. line-height: 2rem;
  687. }
  688. .cubes.rcube {
  689. background: url("../static/img/pk/rcube.png");
  690. background-size: 100% 100%;
  691. }
  692. .cubes.bcube {
  693. background: url("../static/img/pk/bcube.png");
  694. background-size: 100% 100%;
  695. }
  696. .teamScore {
  697. width: 100%;
  698. overflow: hidden;
  699. display: block;
  700. margin: 0 auto;
  701. }
  702. .teamScore div {
  703. width: 50%;
  704. float: left;
  705. text-align: center;
  706. color: #fff;
  707. font-size: 0.6rem;
  708. }
  709. .bottomInfo {
  710. width: 100%;
  711. overflow: hidden;
  712. display: block;
  713. margin: 0 auto;
  714. }
  715. .bottomInfo .names {
  716. width: 98%;
  717. height: 0.6rem;
  718. border-radius: 36px;
  719. background: #0925b4;
  720. border: 2px solid rgba(255, 255, 255, 0.5);
  721. font-size: 0.4rem;
  722. font-family: Roboto;
  723. font-weight: normal;
  724. text-align: center;
  725. color: #e1ff00;
  726. overflow: hidden;
  727. display: block;
  728. margin: 0 auto;
  729. margin-top: 0.2rem;
  730. }
  731. .teacher {
  732. width: 100%;
  733. overflow: hidden;
  734. display: block;
  735. margin: 0 auto;
  736. margin-top: 0.1rem;
  737. margin-bottom: 0.1rem;
  738. color: #fff;
  739. font-size: 0.3rem;
  740. }
  741. .teacher span {
  742. width: 100%;
  743. overflow: hidden;
  744. display: block;
  745. margin: 0 auto;
  746. }
  747. .classTime {
  748. width: 100%;
  749. overflow: hidden;
  750. display: block;
  751. margin: 0 auto;
  752. color: #fff;
  753. text-align: center;
  754. }
  755. .fastJump {
  756. animation: mymove 1s infinite;
  757. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  758. animation-direction: alternate; /*轮流反向播放动画。*/
  759. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  760. /* Safari 和 Chrome */
  761. -webkit-animation: mymove 1s infinite;
  762. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  763. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  764. }
  765. .slowJump {
  766. animation: mymove 2s infinite;
  767. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  768. animation-direction: alternate; /*轮流反向播放动画。*/
  769. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  770. /* Safari 和 Chrome */
  771. -webkit-animation: mymove 3s infinite;
  772. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  773. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  774. }
  775. /*two*/
  776. .pk_container li.two {
  777. width: 90%;
  778. overflow: hidden;
  779. display: block;
  780. }
  781. .two .bottomLi {
  782. width: 98%;
  783. font-size: 0.35rem;
  784. margin-top: 0.3rem;
  785. text-align: center;
  786. }
  787. .two .bottomLi img {
  788. width: 0.4rem;
  789. height: 0.4rem;
  790. margin-top: 0.15rem;
  791. }
  792. .two .bottomLi .btck img {
  793. width: 0.4rem;
  794. margin-top: 0.1rem;
  795. }
  796. .two .bottomLi span {
  797. line-height: 0.8rem;
  798. text-indent: 0.1rem;
  799. }
  800. .two .bottomLi .btcla {
  801. width: 30%;
  802. }
  803. .two .bottomLi .btck {
  804. width: 33%;
  805. padding-left: 3%;
  806. }
  807. .two .bottomLi .step {
  808. width: 28%;
  809. padding-right: 0%;
  810. }
  811. .two .cla em.plus {
  812. position: relative;
  813. left: -0.3rem
  814. }
  815. .two .lhj span.plus {
  816. position: relative;
  817. left: 1.3rem
  818. }
  819. .two .bottomLi .btck img {
  820. width: 0.5rem;
  821. height: 0.5rem;
  822. margin-top: 0.12rem;
  823. }
  824. /*three*/
  825. .pk_container li.three {
  826. width: 90%;
  827. overflow: hidden;
  828. display: block;
  829. }
  830. .three .bottomLi {
  831. width: 98%;
  832. font-size: 0.35rem;
  833. margin-top: 0rem;
  834. text-align: center;
  835. }
  836. .three .circle {
  837. width: 1.2rem;
  838. height: 1.2rem;
  839. }
  840. .three .circle img {
  841. width: 0.9rem;
  842. height: 0.9rem;
  843. }
  844. .three .user {
  845. height: 1.2rem;
  846. overflow: hidden;
  847. }
  848. .three .ult em div {
  849. line-height: 1.2rem;
  850. }
  851. .three .urt em {
  852. line-height: 1.2rem;
  853. }
  854. .three .bottomLi img {
  855. width: 0.4rem;
  856. height: 0.4rem;
  857. margin-top: 0.15rem;
  858. }
  859. .three .bottomLi .btck img {
  860. width: 0.4rem;
  861. margin-top: 0.1rem;
  862. }
  863. .three .bottomLi span {
  864. line-height: 0.8rem;
  865. text-indent: 0.1rem;
  866. }
  867. .three .bottomLi .btcla {
  868. width: 30%;
  869. }
  870. .three .bottomLi .btck {
  871. width: 33%;
  872. padding-left: 3%;
  873. }
  874. .three .bottomLi .step {
  875. width: 28%;
  876. padding-right: 0%;
  877. }
  878. .three .cla em.plus {
  879. position: relative;
  880. left: -0.3rem
  881. }
  882. .three .lhj span.plus {
  883. position: relative;
  884. left: 1.3rem
  885. }
  886. .three .bottomLi .btck img {
  887. width: 0.5rem;
  888. height: 0.5rem;
  889. margin-top: 0.12rem;
  890. }
  891. /*four*/
  892. .four {
  893. width: 49%;
  894. float: left;
  895. }
  896. .four .bg {
  897. width: 96%;
  898. overflow: hidden;
  899. display: block;
  900. margin: 0 auto;
  901. }
  902. .pk_container li.four .bg > h5 {
  903. font-size: 0.25rem;
  904. }
  905. .four .user .ult span {
  906. font-size: 0.2rem;
  907. }
  908. .four .user .ult em div {
  909. width: 90%;
  910. margin-right: 0.05rem;
  911. font-size: 0.5rem;
  912. }
  913. .four .user .ult s {
  914. font-size: 0.1rem;
  915. }
  916. .four .circle {
  917. width: 1rem;
  918. height: 1rem;
  919. }
  920. .four .user .umd img {
  921. width: 0.8rem;
  922. height: 0.8rem;
  923. }
  924. .four .urt img {
  925. width: 0.2rem;
  926. height: 0.2rem;
  927. }
  928. .four .urt em {
  929. font-size: 0.4rem;
  930. line-height: 0.7rem;
  931. }
  932. .four .bottomLi {
  933. width: 100%;
  934. text-indent: 0.1rem;
  935. font-size: 0.2rem;
  936. }
  937. .four .bottomLi img {
  938. width: 0.2rem;
  939. height: 0.2rem;
  940. }
  941. .four .bottomLi span {
  942. width: 60%;
  943. }
  944. /*six*/
  945. /*eight*/
  946. .eight {
  947. width: 49%;
  948. float: left;
  949. }
  950. .eight .bg {
  951. width: 96%;
  952. overflow: hidden;
  953. display: block;
  954. margin: 0 auto;
  955. }
  956. .pk_container li.eight .bg > h5 {
  957. font-size: 0.15rem;
  958. margin-top: 0.05rem;
  959. margin-bottom: 0.05rem;
  960. }
  961. .eight .user .ult span {
  962. font-size: 0.1rem;
  963. }
  964. .eight .user .ult em div {
  965. width: 90%;
  966. margin-right: 0.15rem;
  967. font-size: 0.4rem;
  968. }
  969. .eight .user .ult s {
  970. font-size: 0.1rem;
  971. top: -0.5rem;
  972. right: 0.02rem;
  973. }
  974. .eight .circle {
  975. width: 0.8rem;
  976. height: 0.8rem;
  977. }
  978. .eight .user .umd img {
  979. width: 0.6rem;
  980. height: 0.6rem;
  981. }
  982. .eight .urt img {
  983. width: 0.1rem;
  984. height: 0.1rem;
  985. }
  986. .eight .urt em {
  987. font-size: 0.4rem;
  988. line-height: 0.7rem;
  989. }
  990. .eight .bottomLi {
  991. width: 100%;
  992. text-indent: 0.1rem;
  993. font-size: 0.2rem;
  994. }
  995. .eight .bottomLi img {
  996. width: 0.2rem;
  997. height: 0.2rem;
  998. }
  999. .eight .bottomLi span {
  1000. width: 60%;
  1001. }
  1002. </style>