pk.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  1. <template>
  2. <div class="pages">
  3. <Headside></Headside>
  4. <div class="pk-detail-con">
  5. <img src="../assets/img/pk/redGood.svg" class="lp_icon"/>
  6. <div class="progress">
  7. <div class="progress-bar" :style="{width: pkVal}">
  8. <i class="lightning"></i>
  9. </div>
  10. </div>
  11. <img src="../assets/img/pk/blueGood.svg" 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 students.redUnite">
  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="s.Head" alt="" v-if="s.Head">
  34. <img src="../static/img/people/flyhead.png" alt="" v-if="!s.Head">
  35. </div>
  36. </div>
  37. <div class="urt">
  38. <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) > 100">{{
  39. s.realHr }}</em>
  40. <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) <= 100">{{
  41. s.realHr }}</em>
  42. <em class="plus" v-if="s.realHr == 0"> --- </em>
  43. <img src="../static/img/heart.svg" class=""/>
  44. </div>
  45. </div>
  46. <div class="bottomLi">
  47. <div class="btcla">
  48. <img src="../static/img/s1.svg"/>
  49. <span>{{ s.Cle |fmtFloat }}</span>
  50. </div>
  51. <div class="btck">
  52. <img src="../static/img/s2.svg"/>
  53. <span>{{ s.Steps }}</span>
  54. </div>
  55. <div class="step">
  56. <img src="../static/img/ck.svg"/>
  57. <span>{{ s.Ck |fmtFloat}}</span>
  58. </div>
  59. </div>
  60. </div>
  61. </li>
  62. </ul>
  63. </div>
  64. <div class="md">
  65. <div class="partInfo">
  66. <span class="title rtitle">
  67. <img src="../assets/img/pk/redFlag.svg"/>
  68. ck值
  69. </span>
  70. <span class="title btitle">
  71. <img src="../assets/img/pk/blueFlag.svg"/>
  72. ck值
  73. </span>
  74. </div>
  75. <div class="cubelist">
  76. <div class="cubes rcube">
  77. <em>红队</em>
  78. </div>
  79. <img class="vs" src="../assets/img/pk/vs.svg"/>
  80. <div class="cubes bcube">
  81. <em>蓝队</em>
  82. </div>
  83. </div>
  84. <div class="teamScore">
  85. <div class="lt">{{redSum}}</div>
  86. <div class="rt">{{blueSum}}</div>
  87. </div>
  88. <div class="bottomInfo">
  89. <span class="names">
  90. {{PlanName}}
  91. </span>
  92. <div class="teacher">
  93. <br>
  94. <span>人数:{{num}}</span>
  95. </div>
  96. <div class="classTime">
  97. {{classInfo.endTime}}
  98. </div>
  99. </div>
  100. </div>
  101. <div class="rt">
  102. <ul>
  103. <li :class="BluestudentsClassName" v-for="(s,i) in students.blueUnite">
  104. <div class="bg">
  105. <h5>{{ s.Name }}</h5>
  106. <div class="user">
  107. <div class="ult">
  108. <em>
  109. <div v-if="s.activePercent != 0">
  110. {{ s.activePercent}}
  111. </div>
  112. <div class="plus" v-if="s.activePercent == 0">
  113. ---
  114. </div>
  115. <s>%</s>
  116. </em>
  117. </div>
  118. <div class="umd">
  119. <div class="circle">
  120. <img :src="s.Head" alt="" v-if="s.Head">
  121. <img src="../static/img/people/flyhead.png" alt="" v-if="!s.Head">
  122. </div>
  123. </div>
  124. <div class="urt">
  125. <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) > 100">{{
  126. s.realHr }}</em>
  127. <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) <= 100">{{
  128. s.realHr }}</em>
  129. <em class="plus" v-if="s.realHr == 0"> --- </em>
  130. <img src="../static/img/heart.svg" class=""/>
  131. </div>
  132. </div>
  133. <div class="bottomLi">
  134. <div class="btcla">
  135. <img src="../static/img/s1.svg"/>
  136. <span>{{ s.Cle |fmtFloat }}</span>
  137. </div>
  138. <div class="btck">
  139. <img src="../static/img/s2.svg"/>
  140. <span>{{ s.Steps }}</span>
  141. </div>
  142. <div class="step">
  143. <img src="../static/img/ck.svg"/>
  144. <span>{{ s.Ck |fmtFloat}}</span>
  145. </div>
  146. </div>
  147. </div>
  148. </li>
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. </template>
  154. <script>
  155. import '../libs/rem';
  156. import Headside from '@/components/Headside'
  157. import {
  158. getHello,
  159. getClassStat
  160. } from '@/api/getApiRes'
  161. import '../libs/rem';
  162. let qs = require('qs');
  163. export default {
  164. data() {
  165. return {
  166. trueDate: true,//真实数据 true false
  167. studentsClassName: [],
  168. students: {
  169. redUnite: [],
  170. blueUnite: [],
  171. },
  172. redSum: 0,
  173. blueSum: 0,
  174. pkVal: '50%',
  175. RedstudentsClassName: '',
  176. BluestudentsClassName: '',
  177. PlanName: '',
  178. num: 0,
  179. classInfo: {
  180. name: '竞技课程',
  181. num: '0',
  182. btTime: '2020-11-13 09:00:00',//时间戳
  183. endTime: '00:00:00',
  184. redSum: 0,
  185. blueSum: 0,
  186. }
  187. }
  188. },
  189. mounted() {
  190. let that = this;
  191. if (this.trueDate) {
  192. this.PkTimer = setInterval(() => {
  193. this.GetgetUserList();
  194. this.curgetClassStat();
  195. }, 1000);
  196. this.GetgetUserList();
  197. // this.PkEgg = setInterval(() => {
  198. // this.createEgg();
  199. // }, 6000);
  200. } else {
  201. // 虚假的数据
  202. let json = {
  203. "Code": "0",
  204. "Memo": "Success",
  205. "Dp": {
  206. "PlanId": 182,
  207. "ShopId": 1,
  208. "SvId": 1,
  209. "PlanName": "齐源大厦浏览器显示2020-12-02日08:40开始的竞技游戏",
  210. "Status": 2,
  211. "BeginTime": "17:15:18",
  212. "EndTime": 0,
  213. "ClassType": 2,
  214. "PkNum": 2
  215. }
  216. };
  217. // 载入课程信息
  218. let Dp = json.Dp;
  219. that.ReadLessonInfo(Dp);
  220. // 载入学生信息
  221. let Rs = this.fakeNews(16);
  222. that.UniteBreak(Rs);
  223. // 人口总数
  224. that.num = json.Rs ? json.Rs.length : 0;
  225. this.ClacClassTime();
  226. }
  227. },
  228. beforeDestroy() {
  229. clearInterval(this.PkTimer);
  230. clearInterval(this.PkEgg);
  231. this.PkTimer = null;
  232. this.PkEgg = null;
  233. },
  234. methods: {
  235. fakeNews(num) {
  236. let item = [];
  237. let nums = Math.random() * 100 + 1;
  238. this.fakeNums = num;
  239. for (var i = 0; i < this.fakeNums; i++) {
  240. item.push(
  241. {
  242. "SvId": 1,
  243. "UserId": 1,
  244. "Cle": i * 14,
  245. "realHr1": parseInt(Math.random() * 100 + 50),
  246. "realHr": 60,
  247. "activePercent": 30,
  248. "heartRate": 90,
  249. "Steps": 9999,
  250. "PureCalorieNoVo2": 999,
  251. "Name": "刘宇宁",
  252. "updateTime": 1604568915582,
  253. "Ck": nums + i * 2.2,
  254. "Head": "http://192.168.0.2/zw.png",
  255. "GroupNo": i % 2 + 1
  256. }
  257. )
  258. }
  259. return item;
  260. },
  261. // 载入课程信息
  262. ReadLessonInfo(Dp) {
  263. this.PlanName = Dp.PlanName;
  264. this.BeginTime = Dp.BeginTime;
  265. },
  266. // 分队展示
  267. UniteBreak(Rs) {
  268. let that = this;
  269. that.students.redUnite = [];
  270. that.students.blueUnite = [];
  271. if (!Rs) {
  272. that.students.redUnite = [];
  273. that.students.blueUnite = [];
  274. } else {
  275. Rs.map(function (item, t) {
  276. if (item.GroupNo == 1) {
  277. that.students.redUnite.push(item);
  278. }
  279. if (item.GroupNo == 2) {
  280. that.students.blueUnite.push(item);
  281. }
  282. })
  283. }
  284. that.giveClassName(that.students.redUnite, 1);
  285. that.giveClassName(that.students.blueUnite, 2);
  286. that.calcSumCK(that.students);
  287. },
  288. // 计算各队总分
  289. calcSumCK(Rs) {
  290. let that = this;
  291. let redSum = 0;
  292. let blueSum = 0;
  293. // that.redSum
  294. Rs.redUnite.map(function (item, t) {
  295. redSum += parseFloat(item.Ck)
  296. });
  297. Rs.blueUnite.map(function (item, t) {
  298. blueSum += parseFloat(item.Ck)
  299. });
  300. that.redSum = redSum.toFixed(1);
  301. that.blueSum = blueSum.toFixed(1);
  302. // pkVal
  303. let sumMax = parseFloat(redSum) + parseFloat(blueSum);
  304. that.pkVal = (redSum / sumMax) * 100 + '%';
  305. },
  306. // 获取上课学生信息
  307. GetgetUserList() {
  308. let that = this;
  309. let param = {
  310. token: localStorage.token,
  311. eqSn: localStorage.eqSn
  312. };
  313. // this.giveClassName(this.Bluestudents,2);
  314. let postdata = qs.stringify(param);
  315. getHello(postdata).then(res => {
  316. let json = res;
  317. if (json.Code == 0) {
  318. that.ReadLessonInfo(json.Dp);
  319. that.UniteBreak(json.Rs);
  320. // 人口总数
  321. that.num = json.Rs.length ? json.Rs.length : 0;
  322. this.ClacClassTime();
  323. } else {
  324. // 已下课
  325. console.log(json.Code);
  326. if (json.Code == '999') {
  327. that.$router.push({path: '/2pkRank'});
  328. } else {
  329. // 已出错
  330. that.$message.error(json.Memo);
  331. }
  332. }
  333. })
  334. },
  335. // 动态计算排版
  336. giveClassName(res, type) {
  337. let that = this;
  338. let numberClass = '';
  339. switch (true) {
  340. case parseInt(res.length) <= 2 && parseInt(res.length) > 0:
  341. numberClass = 'two';
  342. break;
  343. case parseInt(res.length) == 3:
  344. numberClass = 'three';
  345. break;
  346. case parseInt(res.length) <= 4 && parseInt(res.length) > 2:
  347. numberClass = 'four';
  348. break;
  349. case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
  350. numberClass = 'four';
  351. break;
  352. case parseInt(res.length) <= 8 && parseInt(res.length) > 6:
  353. numberClass = 'eight';
  354. break;
  355. }
  356. if (type == 1) {
  357. that.RedstudentsClassName = numberClass;
  358. } else {
  359. that.BluestudentsClassName = numberClass;
  360. }
  361. },
  362. // 计算团队竞技课持续时间
  363. ClacClassTime() {
  364. let BeginTime = new Date(globalcurrent() + ' ' + this.BeginTime);//结束时间
  365. let nowDate = new Date();
  366. let date = new Date(nowDate - BeginTime);
  367. let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
  368. let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
  369. let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  370. this.classInfo.endTime = h + m + s;
  371. },
  372. // // 计算双方对抗强度加总
  373. // CalcTeamCk() {
  374. // let that = this;
  375. // let Redsum = 0;
  376. // let Bluesum = 0;
  377. // let sumMax = 0;
  378. // if (that.Redstudents) {
  379. // that.Redstudents.map(function (i) {
  380. // Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
  381. // });
  382. // }
  383. // if (that.Bluestudents) {
  384. // that.Bluestudents.map(function (i) {
  385. // Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
  386. // });
  387. // }
  388. // that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
  389. // that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
  390. //
  391. // sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
  392. // that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
  393. // },
  394. // 当前课程状态
  395. curgetClassStat() {
  396. let that = this;
  397. let param = {
  398. token: localStorage.token,
  399. eqSn: localStorage.eqSn
  400. };
  401. let postdata = qs.stringify(param);
  402. getClassStat(postdata).then(res => {
  403. let json = res;
  404. if (json.Code == 0) {
  405. // 没开课
  406. if (json.ClassOn == 0) {
  407. console.log("xiakele ");
  408. // 0: 下课 团课/私教 排名
  409. // 1:团课/私教 todo
  410. // 2:竞技课2PK
  411. // 3:竞技课3PK
  412. switch (parseInt(json.dp)) {
  413. case 0:
  414. that.$router.push({path: '/2pkRank'});
  415. break;
  416. case 1:
  417. that.$router.push({path: '/'});
  418. break;
  419. case 2:
  420. that.$router.push({path: '/pk'});
  421. break;
  422. case 3:
  423. that.$router.push({path: '/3pk'});
  424. break;
  425. }
  426. }
  427. } else {
  428. // that.$message.error(json.Memo);
  429. }
  430. })
  431. },
  432. },
  433. filters: {
  434. fmtNum(val) {
  435. if (val == 0) {
  436. return '--'
  437. } else {
  438. if (parseInt(val) < 0) return 0;
  439. if (parseInt(val) > 0) return val
  440. }
  441. },
  442. fmtFloat(val) {
  443. if (val == 0) {
  444. return '0'
  445. } else {
  446. return parseFloat(val).toFixed(1);
  447. }
  448. }
  449. },
  450. watch: {
  451. '$route': function (val) {
  452. if (val.path == '/pk') {
  453. if (this.trueDate) {
  454. this.PkTimer = setInterval(() => {
  455. this.GetgetUserList();
  456. this.ClacClassTime();
  457. this.curgetClassStat();
  458. }, 1000);
  459. this.GetgetUserList();
  460. // this.PkEgg = setInterval(() => {
  461. // this.createEgg();
  462. // }, 6000);
  463. } else {
  464. let Rs = this.fakeNews(16);
  465. that.UniteBreak(Rs);
  466. }
  467. } else {
  468. clearInterval(this.PkTimer);
  469. clearInterval(this.PkEgg);
  470. }
  471. }
  472. },
  473. components: {
  474. Headside
  475. }
  476. }
  477. </script>
  478. <style scoped>
  479. @import "../assets/css/bg.css";
  480. .pages {
  481. position: absolute;
  482. top: 0;
  483. left: 0;
  484. right: 0;
  485. bottom: 0;
  486. width: 100%;
  487. overflow: hidden;
  488. display: block;
  489. margin: 0 auto;
  490. background-color: #028fe1;
  491. background: url("../static/img/pkBg.png");
  492. background-size: 100%;
  493. background-repeat: no-repeat;
  494. }
  495. * {
  496. font-family: vista;
  497. }
  498. ul, li {
  499. list-style: none;
  500. margin: 0;
  501. padding: 0;
  502. }
  503. em {
  504. font-style: normal;
  505. }
  506. .pk-detail-con {
  507. position: relative;
  508. top: 0.5rem;
  509. width: 98%;
  510. height: 0.6rem;
  511. display: block;
  512. margin: 0 auto;
  513. overflow: visible;
  514. }
  515. .progress {
  516. width: 100%;
  517. height: 0.3rem;
  518. overflow: visible;
  519. background-color: #04A6EE;
  520. border-radius: 19px;
  521. background-image: url("../static/img/pk/blue.png");
  522. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  523. /*background-size: 40px 40px;*/
  524. }
  525. .progress-bar {
  526. height: 0.3rem;
  527. text-align: left;
  528. background-color: #F75E07;
  529. -moz-transition: width .6s ease;
  530. -webkit-transition: width .6s ease;
  531. transition: width .6s ease;
  532. background-image: url("../static/img/pk/red.png");
  533. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  534. /*background-size: 40px 40px;*/
  535. }
  536. .progress, .progress-bar {
  537. /*background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  538. /*background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  539. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  540. }
  541. .lightning {
  542. position: relative;
  543. top: -0.5rem;
  544. width: 1rem;
  545. height: 1.3rem;
  546. float: right;
  547. margin-right: -0.5rem;
  548. background: url("../static/img/pk/light.png") no-repeat center;
  549. background-size: cover;
  550. }
  551. .lp_icon {
  552. position: absolute;
  553. left: -0.1rem;
  554. top: -0.3rem;
  555. width: 0.8rem;
  556. height: 0.8rem;
  557. float: left;
  558. }
  559. .rp_icon {
  560. position: absolute;
  561. right: 0;
  562. top: -0.3rem;
  563. width: 0.8rem;
  564. height: 0.8rem;
  565. float: right;
  566. }
  567. .pk_container {
  568. width: 98%;
  569. overflow: hidden;
  570. display: block;
  571. margin: 0 auto;
  572. }
  573. .pk_container .lt {
  574. width: 35%;
  575. float: left;
  576. }
  577. .pk_container .rt {
  578. width: 35%;
  579. float: right;
  580. }
  581. .pk_container .md {
  582. width: 30%;
  583. float: left;
  584. }
  585. .pk_container ul {
  586. width: 100%;
  587. overflow: hidden;
  588. display: block;
  589. margin: 0 auto;
  590. padding-top: 0.01rem;
  591. }
  592. .pk_container li {
  593. overflow: hidden;
  594. color: #fff;
  595. margin-bottom: 0.1rem;
  596. }
  597. .pk_container .lt li {
  598. overflow: hidden;
  599. }
  600. .pk_container .rt li {
  601. overflow: hidden;
  602. }
  603. .pk_container .lt .bg {
  604. border: 2px solid rgba(255, 143, 122, 0.5);
  605. background: rgba(194, 36, 6, 0.5);
  606. }
  607. .pk_container .rt .bg {
  608. border: 2px solid rgba(80, 115, 255, 0.5);
  609. background: rgba(0, 30, 152, 0.5);
  610. }
  611. .pk_container li .bg > h5 {
  612. font-family: vista;
  613. font-weight: 500;
  614. font-size: 0.3rem;
  615. text-align: center;
  616. color: #fff;
  617. margin: 0;
  618. margin-top: 0.1rem;
  619. margin-bottom: 0.1rem;
  620. }
  621. .pk_container li .user {
  622. width: 100%;
  623. overflow: hidden;
  624. display: block;
  625. margin: 0 auto;
  626. }
  627. .pk_container .user .ult {
  628. width: 33.333%;
  629. float: left;
  630. overflow: visible;
  631. flex-direction: column;
  632. }
  633. .pk_container .user .umd {
  634. width: 33.333%;
  635. float: left;
  636. overflow: hidden;
  637. flex-direction: column
  638. }
  639. .pk_container .user .urt {
  640. width: 33.333%;
  641. float: right;
  642. flex-direction: column;
  643. }
  644. .centerLi .slowJump {
  645. animation: mymove 3s infinite;
  646. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  647. animation-direction: alternate; /*轮流反向播放动画。*/
  648. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  649. /* Safari 和 Chrome */
  650. -webkit-animation: mymove 3s infinite;
  651. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  652. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  653. }
  654. .user .ult span {
  655. width: 100%;
  656. overflow: hidden;
  657. display: block;
  658. margin: 0 auto;
  659. font-family: "Source Han Sans CN";
  660. font-weight: normal;
  661. font-size: 0.3rem;
  662. text-align: center;
  663. }
  664. .user .ult em {
  665. width: 100%;
  666. overflow: hidden;
  667. display: block;
  668. margin: 0 auto;
  669. }
  670. .user .ult em div {
  671. width: 80%;
  672. overflow: hidden;
  673. float: right;
  674. text-align: right;
  675. padding-right: 0.3rem;
  676. font-size: 0.8rem;
  677. line-height: 1.6rem;
  678. }
  679. .user .ult s {
  680. position: relative;
  681. top: -1.2rem;
  682. right: 0rem;
  683. float: right;
  684. font-family: HeadLineA;
  685. font-weight: normal;
  686. font-size: 0.3rem;
  687. text-align: center;
  688. text-decoration: none;
  689. }
  690. .circle {
  691. width: 1.65rem;
  692. height: 1.65rem;
  693. overflow: hidden;
  694. display: block;
  695. margin: 0 auto;
  696. border-radius: 250px;
  697. padding-top: 0.09rem;
  698. }
  699. .user .umd img {
  700. width: 1.5rem;
  701. height: 1.5rem;
  702. overflow: hidden;
  703. display: block;
  704. margin: 0 auto;
  705. border-radius: 250px;
  706. border: 5px solid #B9CB01;
  707. }
  708. .urt img {
  709. position: relative;
  710. right: 0.1rem;
  711. top: -1.2rem;
  712. width: 0.35rem;
  713. height: 0.35rem;
  714. float: right;
  715. }
  716. .urt em {
  717. overflow: hidden;
  718. display: block;
  719. margin: 0 auto;
  720. font-family: HeadLineA;
  721. font-weight: normal;
  722. font-size: 0.7rem;
  723. letter-spacing: -0.05em;
  724. text-align: right;
  725. font-style: normal;
  726. line-height: 1.5rem;
  727. padding-right: 25%;
  728. }
  729. .bottomLi {
  730. width: 98%;
  731. overflow: hidden;
  732. display: block;
  733. margin: 0 auto;
  734. font-weight: normal;
  735. color: #fff;
  736. text-align: center;
  737. font-size: 0.4rem;
  738. text-indent: 0.2rem;
  739. }
  740. .bottomLi img {
  741. /*width: 0.24rem;*/
  742. /*height: 0.24rem;*/
  743. float: left;
  744. margin-left: 10%;
  745. }
  746. .bottomLi span {
  747. float: left;
  748. text-align: left;
  749. }
  750. .bottomLi .btcla {
  751. width: 30%;
  752. float: left;
  753. text-align: left;
  754. }
  755. .bottomLi .btck {
  756. width: 40%;
  757. float: left;
  758. text-align: left;
  759. }
  760. .bottomLi .step {
  761. width: 30%;
  762. float: right;
  763. text-align: left;
  764. }
  765. @keyframes mymove {
  766. 0% {
  767. transform: scale(1); /*开始为原始大小*/
  768. }
  769. 25% {
  770. transform: scale(1.2); /*放大1.1倍*/
  771. }
  772. 50% {
  773. transform: scale(1);
  774. }
  775. 75% {
  776. transform: scale(1.2);
  777. }
  778. }
  779. @-webkit-keyframes mymove /*Safari and Chrome*/
  780. {
  781. 0% {
  782. transform: scale(1); /*开始为原始大小*/
  783. }
  784. 25% {
  785. transform: scale(1.2); /*放大1.1倍*/
  786. }
  787. 50% {
  788. transform: scale(1);
  789. }
  790. 75% {
  791. transform: scale(1.2);
  792. }
  793. }
  794. .md {
  795. width: 30%;
  796. overflow: hidden;
  797. float: left;
  798. }
  799. .partInfo {
  800. width: 100%;
  801. overflow: hidden;
  802. display: block;
  803. margin: 0 auto;
  804. padding-top: 1rem;
  805. }
  806. .partInfo .rp, .partInfo .bp {
  807. width: 50%;
  808. float: left;
  809. }
  810. .partInfo .title {
  811. width: 33%;
  812. overflow: hidden;
  813. display: block;
  814. margin: 0;
  815. font-size: 0.4rem;
  816. color: #fff;
  817. text-align: left;
  818. }
  819. .rtitle {
  820. float: left;
  821. padding-left: 0.25rem;
  822. }
  823. .partInfo .btitle {
  824. width: 30%;
  825. float: right;
  826. }
  827. .partInfo .title img {
  828. float: left;
  829. margin-right: 0.2rem;
  830. }
  831. .cubelist {
  832. width: 100%;
  833. overflow: hidden;
  834. display: block;
  835. margin: 0 auto;
  836. }
  837. .cubelist .cubes {
  838. width: 33%;
  839. height: 2rem;
  840. overflow: hidden;
  841. float: left;
  842. background-position: top center;
  843. }
  844. .cubelist .vs {
  845. width: 33%;
  846. height: 2rem;
  847. overflow: hidden;
  848. float: left;
  849. }
  850. .cubelist .cubes em {
  851. width: 80%;
  852. overflow: hidden;
  853. display: block;
  854. margin: 0 auto;
  855. text-align: center;
  856. font-size: 0.3rem;
  857. font-style: normal;
  858. color: #fff;
  859. line-height: 2rem;
  860. }
  861. .cubes.rcube {
  862. background: url("../static/img/pk/rcube.png");
  863. background-size: 100% 100%;
  864. }
  865. .cubes.bcube {
  866. background: url("../static/img/pk/bcube.png");
  867. background-size: 100% 100%;
  868. }
  869. .teamScore {
  870. width: 100%;
  871. overflow: hidden;
  872. display: block;
  873. margin: 0 auto;
  874. }
  875. .teamScore div {
  876. width: 50%;
  877. float: left;
  878. text-align: center;
  879. color: #fff;
  880. font-size: 0.6rem;
  881. }
  882. .bottomInfo {
  883. width: 100%;
  884. overflow: hidden;
  885. display: block;
  886. margin: 0 auto;
  887. }
  888. .bottomInfo .names {
  889. width: 98%;
  890. height: 0.6rem;
  891. border-radius: 36px;
  892. background: #0925b4;
  893. border: 2px solid rgba(255, 255, 255, 0.5);
  894. font-size: 0.4rem;
  895. font-family: Roboto;
  896. font-weight: normal;
  897. text-align: center;
  898. color: #e1ff00;
  899. overflow: hidden;
  900. display: block;
  901. margin: 0 auto;
  902. margin-top: 0.2rem;
  903. }
  904. .teacher {
  905. width: 100%;
  906. overflow: hidden;
  907. display: block;
  908. margin: 0 auto;
  909. margin-top: 0.1rem;
  910. margin-bottom: 0.1rem;
  911. color: #fff;
  912. font-size: 0.3rem;
  913. }
  914. .teacher span {
  915. width: 100%;
  916. overflow: hidden;
  917. display: block;
  918. margin: 0 auto;
  919. }
  920. .classTime {
  921. width: 100%;
  922. overflow: hidden;
  923. display: block;
  924. margin: 0 auto;
  925. color: #fff;
  926. text-align: center;
  927. }
  928. .fastJump {
  929. animation: mymove 1s infinite;
  930. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  931. animation-direction: alternate; /*轮流反向播放动画。*/
  932. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  933. /* Safari 和 Chrome */
  934. -webkit-animation: mymove 1s infinite;
  935. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  936. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  937. }
  938. .slowJump {
  939. animation: mymove 2s infinite;
  940. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  941. animation-direction: alternate; /*轮流反向播放动画。*/
  942. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  943. /* Safari 和 Chrome */
  944. -webkit-animation: mymove 3s infinite;
  945. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  946. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  947. }
  948. /*two*/
  949. .pk_container li.two {
  950. width: 90%;
  951. overflow: hidden;
  952. display: block;
  953. }
  954. .two .bottomLi {
  955. width: 98%;
  956. font-size: 0.35rem;
  957. margin-top: 0.3rem;
  958. text-align: center;
  959. }
  960. .two .bottomLi img {
  961. width: 0.4rem;
  962. height: 0.4rem;
  963. margin-top: 0.15rem;
  964. }
  965. .two .bottomLi .btck img {
  966. width: 0.4rem;
  967. margin-top: 0.1rem;
  968. }
  969. .two .bottomLi span {
  970. line-height: 0.8rem;
  971. text-indent: 0.1rem;
  972. }
  973. .two .bottomLi .btcla {
  974. width: 30%;
  975. }
  976. .two .bottomLi .btck {
  977. width: 33%;
  978. padding-left: 3%;
  979. }
  980. .two .bottomLi .step {
  981. width: 28%;
  982. padding-right: 0%;
  983. }
  984. .two .cla em.plus {
  985. position: relative;
  986. left: -0.3rem
  987. }
  988. .two .lhj span.plus {
  989. position: relative;
  990. left: 1.3rem
  991. }
  992. .two .bottomLi .btck img {
  993. width: 0.5rem;
  994. height: 0.5rem;
  995. margin-top: 0.12rem;
  996. }
  997. /*three*/
  998. .pk_container li.three {
  999. width: 90%;
  1000. overflow: hidden;
  1001. display: block;
  1002. }
  1003. .three .bottomLi {
  1004. width: 98%;
  1005. font-size: 0.35rem;
  1006. margin-top: 0rem;
  1007. text-align: center;
  1008. }
  1009. .three .circle {
  1010. width: 1.2rem;
  1011. height: 1.2rem;
  1012. }
  1013. .three .circle img {
  1014. width: 0.9rem;
  1015. height: 0.9rem;
  1016. }
  1017. .three .user {
  1018. height: 1.2rem;
  1019. overflow: hidden;
  1020. }
  1021. .three .ult em div {
  1022. line-height: 1.2rem;
  1023. }
  1024. .three .urt em {
  1025. line-height: 1.2rem;
  1026. }
  1027. .three .bottomLi img {
  1028. width: 0.4rem;
  1029. height: 0.4rem;
  1030. margin-top: 0.15rem;
  1031. }
  1032. .three .bottomLi .btck img {
  1033. width: 0.4rem;
  1034. margin-top: 0.1rem;
  1035. }
  1036. .three .bottomLi span {
  1037. line-height: 0.8rem;
  1038. text-indent: 0.1rem;
  1039. }
  1040. .three .bottomLi .btcla {
  1041. width: 30%;
  1042. }
  1043. .three .bottomLi .btck {
  1044. width: 33%;
  1045. padding-left: 3%;
  1046. }
  1047. .three .bottomLi .step {
  1048. width: 28%;
  1049. padding-right: 0%;
  1050. }
  1051. .three .cla em.plus {
  1052. position: relative;
  1053. left: -0.3rem
  1054. }
  1055. .three .lhj span.plus {
  1056. position: relative;
  1057. left: 1.3rem
  1058. }
  1059. .three .bottomLi .btck img {
  1060. width: 0.5rem;
  1061. height: 0.5rem;
  1062. margin-top: 0.12rem;
  1063. }
  1064. /*four*/
  1065. .four {
  1066. width: 49%;
  1067. float: left;
  1068. }
  1069. .four .bg {
  1070. width: 96%;
  1071. overflow: hidden;
  1072. display: block;
  1073. margin: 0 auto;
  1074. }
  1075. .pk_container li.four .bg > h5 {
  1076. font-size: 0.25rem;
  1077. }
  1078. .four .user .ult span {
  1079. font-size: 0.2rem;
  1080. }
  1081. .four .user .ult em div {
  1082. width: 90%;
  1083. margin-right: 0.05rem;
  1084. font-size: 0.5rem;
  1085. line-height: 1rem;
  1086. }
  1087. .four .user .ult s {
  1088. font-size: 0.1rem;
  1089. line-height: 1rem;
  1090. }
  1091. .four .circle {
  1092. width: 1rem;
  1093. height: 1rem;
  1094. }
  1095. .four .user .umd img {
  1096. width: 0.8rem;
  1097. height: 0.8rem;
  1098. }
  1099. .four .urt img {
  1100. width: 0.2rem;
  1101. height: 0.2rem;
  1102. top: -0.8rem;
  1103. }
  1104. .four .urt em {
  1105. font-size: 0.4rem;
  1106. line-height: 1rem;
  1107. }
  1108. .four .bottomLi {
  1109. width: 100%;
  1110. text-indent: 0.1rem;
  1111. font-size: 0.2rem;
  1112. }
  1113. .four .bottomLi img {
  1114. width: 0.2rem;
  1115. height: 0.2rem;
  1116. }
  1117. .four .bottomLi span {
  1118. width: 60%;
  1119. }
  1120. .four .user {
  1121. height: 1.2rem;
  1122. overflow: hidden;
  1123. }
  1124. /*six*/
  1125. /*eight*/
  1126. .eight {
  1127. width: 49%;
  1128. float: left;
  1129. }
  1130. .eight .bg {
  1131. width: 96%;
  1132. overflow: hidden;
  1133. display: block;
  1134. margin: 0 auto;
  1135. }
  1136. .pk_container li.eight .bg > h5 {
  1137. font-size: 0.25rem;
  1138. margin: 0.01rem 0;
  1139. }
  1140. .eight .user .ult span {
  1141. font-size: 0.2rem;
  1142. }
  1143. .eight .user .ult em div {
  1144. width: 90%;
  1145. margin-right: 0.05rem;
  1146. font-size: 0.5rem;
  1147. line-height: 1rem;
  1148. }
  1149. .eight .user .ult s {
  1150. font-size: 0.1rem;
  1151. line-height: 1rem;
  1152. }
  1153. .eight .circle {
  1154. width: 1rem;
  1155. height: 1rem;
  1156. }
  1157. .eight .user .umd img {
  1158. width: 0.8rem;
  1159. height: 0.8rem;
  1160. }
  1161. .eight .urt img {
  1162. width: 0.2rem;
  1163. height: 0.2rem;
  1164. top: -0.8rem;
  1165. }
  1166. .eight .urt em {
  1167. font-size: 0.4rem;
  1168. line-height: 1rem;
  1169. }
  1170. .eight .bottomLi {
  1171. width: 100%;
  1172. text-indent: 0.1rem;
  1173. font-size: 0.2rem;
  1174. }
  1175. .eight .bottomLi img {
  1176. width: 0.2rem;
  1177. height: 0.2rem;
  1178. }
  1179. .eight .bottomLi span {
  1180. width: 60%;
  1181. }
  1182. .eight .user {
  1183. height: 1.2rem;
  1184. overflow: hidden;
  1185. }
  1186. .pk_container .rt li {
  1187. float: right;
  1188. }
  1189. </style>