pk.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364
  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 |fmtInt }}</span>
  50. </div>
  51. <div class="btck">
  52. <img src="../static/img/s2.svg"/>
  53. <span>{{ s.PureCalorieNoVo2 |fmtInt }}</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 |fmtInt }}</span>
  137. </div>
  138. <div class="btck">
  139. <img src="../static/img/s2.svg"/>
  140. <span>{{ s.PureCalorieNoVo2 |fmtInt}}</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. "PureCalorieNoVo2": 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. // 进度条 formatCk
  303. let redFmtSum = 0;
  304. let blueFmtSum = 0;
  305. Rs.redUnite.map(function (item, t) {
  306. redFmtSum += item.formatCk
  307. });
  308. Rs.blueUnite.map(function (item, t) {
  309. blueFmtSum += item.formatCk
  310. });
  311. // pkVal
  312. let sumMax = redFmtSum + blueFmtSum;
  313. // 当为0时均分
  314. if (sumMax == 0) {
  315. that.pkVal = '50%';
  316. } else {
  317. // 限制最大
  318. let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
  319. that.pkVal = pkval + '%';
  320. console.log(pkval);
  321. }
  322. },
  323. // 获取上课学生信息
  324. GetgetUserList() {
  325. let that = this;
  326. let param = {
  327. token: localStorage.token,
  328. eqSn: localStorage.eqSn
  329. };
  330. // this.giveClassName(this.Bluestudents,2);
  331. let postdata = qs.stringify(param);
  332. getHello(postdata).then(res => {
  333. let json = res;
  334. if (json.Code == 0) {
  335. that.ReadLessonInfo(json.Dp);
  336. that.UniteBreak(json.Rs);
  337. // 人口总数
  338. that.num = json.Rs.length ? json.Rs.length : 0;
  339. this.ClacClassTime();
  340. } else {
  341. // 已下课
  342. console.log(json.Code);
  343. if (json.Code == '999') {
  344. that.$router.push({path: '/2pkRank'});
  345. } else {
  346. // 已出错
  347. that.$message.error(json.Memo);
  348. }
  349. }
  350. })
  351. },
  352. // 动态计算排版
  353. giveClassName(res, type) {
  354. let that = this;
  355. let numberClass = '';
  356. switch (true) {
  357. case parseInt(res.length) <= 2 && parseInt(res.length) > 0:
  358. numberClass = 'two';
  359. break;
  360. case parseInt(res.length) == 3:
  361. numberClass = 'three';
  362. break;
  363. case parseInt(res.length) <= 4 && parseInt(res.length) > 2:
  364. numberClass = 'four';
  365. break;
  366. case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
  367. numberClass = 'four';
  368. break;
  369. case parseInt(res.length) <= 8 && parseInt(res.length) > 6:
  370. numberClass = 'eight';
  371. break;
  372. }
  373. if (type == 1) {
  374. that.RedstudentsClassName = numberClass;
  375. } else {
  376. that.BluestudentsClassName = numberClass;
  377. }
  378. },
  379. // 计算团队竞技课持续时间
  380. ClacClassTime() {
  381. let BeginTime = new Date(globalcurrent() + ' ' + this.BeginTime);//结束时间
  382. let nowDate = new Date();
  383. let date = new Date(nowDate - BeginTime - 8 * 60 * 60 * 1000);//减掉东八区时区问题
  384. let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
  385. let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
  386. let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  387. this.classInfo.endTime = h + m + s;
  388. },
  389. // // 计算双方对抗强度加总
  390. // CalcTeamCk() {
  391. // let that = this;
  392. // let Redsum = 0;
  393. // let Bluesum = 0;
  394. // let sumMax = 0;
  395. // if (that.Redstudents) {
  396. // that.Redstudents.map(function (i) {
  397. // Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
  398. // });
  399. // }
  400. // if (that.Bluestudents) {
  401. // that.Bluestudents.map(function (i) {
  402. // Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
  403. // });
  404. // }
  405. // that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
  406. // that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
  407. //
  408. // sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
  409. // that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
  410. // },
  411. // 当前课程状态
  412. curgetClassStat() {
  413. let that = this;
  414. let param = {
  415. token: localStorage.token,
  416. eqSn: localStorage.eqSn
  417. };
  418. let postdata = qs.stringify(param);
  419. getClassStat(postdata).then(res => {
  420. let json = res;
  421. if (json.Code == 0) {
  422. // 没开课
  423. if (json.ClassOn == 0) {
  424. console.log("xiakele ");
  425. // 0: 下课 团课/私教 排名
  426. // 1:团课/私教 todo
  427. // 2:竞技课2PK
  428. // 3:竞技课3PK
  429. switch (parseInt(json.dp)) {
  430. case 2:
  431. that.$router.push({path: '/2pkRank'});
  432. break;
  433. }
  434. }
  435. } else {
  436. // that.$message.error(json.Memo);
  437. }
  438. })
  439. },
  440. },
  441. filters: {
  442. fmtNum(val) {
  443. if (val == 0) {
  444. return '--'
  445. } else {
  446. if (parseInt(val) < 0) return 0;
  447. if (parseInt(val) > 0) return val
  448. }
  449. },
  450. fmtFloat(val) {
  451. if (val == 0) {
  452. return '0.0'
  453. } else {
  454. return parseFloat(val).toFixed(1);
  455. }
  456. },
  457. fmtInt(val) {
  458. if (val == 0) {
  459. return '0'
  460. } else {
  461. return parseInt(val);
  462. }
  463. }
  464. },
  465. watch: {
  466. '$route': function (val) {
  467. if (val.path == '/pk') {
  468. if (this.trueDate) {
  469. this.PkTimer = setInterval(() => {
  470. this.GetgetUserList();
  471. this.ClacClassTime();
  472. this.curgetClassStat();
  473. }, 1000);
  474. this.GetgetUserList();
  475. // this.PkEgg = setInterval(() => {
  476. // this.createEgg();
  477. // }, 6000);
  478. } else {
  479. let Rs = this.fakeNews(16);
  480. that.UniteBreak(Rs);
  481. }
  482. } else {
  483. clearInterval(this.PkTimer);
  484. clearInterval(this.PkEgg);
  485. }
  486. }
  487. },
  488. components: {
  489. Headside
  490. }
  491. }
  492. </script>
  493. <style scoped>
  494. @import "../assets/css/bg.css";
  495. .pages {
  496. position: absolute;
  497. top: 0;
  498. left: 0;
  499. right: 0;
  500. bottom: 0;
  501. width: 100%;
  502. overflow: hidden;
  503. display: block;
  504. margin: 0 auto;
  505. background-color: #028fe1;
  506. background: url("../static/img/pkBg.png");
  507. background-size: 100%;
  508. background-repeat: no-repeat;
  509. }
  510. * {
  511. font-family: vista;
  512. }
  513. ul, li {
  514. list-style: none;
  515. margin: 0;
  516. padding: 0;
  517. }
  518. em {
  519. font-style: normal;
  520. }
  521. .pk-detail-con {
  522. position: relative;
  523. top: 0.5rem;
  524. width: 98%;
  525. height: 0.6rem;
  526. display: block;
  527. margin: 0 auto;
  528. overflow: visible;
  529. }
  530. .progress {
  531. width: 100%;
  532. height: 0.3rem;
  533. overflow: visible;
  534. background-color: #04A6EE;
  535. border-radius: 19px;
  536. background-image: url("../static/img/pk/blue.png");
  537. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  538. /*background-size: 40px 40px;*/
  539. }
  540. .progress-bar {
  541. height: 0.3rem;
  542. text-align: left;
  543. background-color: #F75E07;
  544. -moz-transition: width .6s ease;
  545. -webkit-transition: width .6s ease;
  546. transition: width .6s ease;
  547. background-image: url("../static/img/pk/red.png");
  548. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  549. /*background-size: 40px 40px;*/
  550. }
  551. .progress, .progress-bar {
  552. /*background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  553. /*background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  554. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  555. }
  556. .lightning {
  557. position: relative;
  558. top: -0.5rem;
  559. width: 1rem;
  560. height: 1.3rem;
  561. float: right;
  562. margin-right: -0.5rem;
  563. background: url("../static/img/pk/light.png") no-repeat center;
  564. background-size: cover;
  565. }
  566. .lp_icon {
  567. position: absolute;
  568. left: -0.1rem;
  569. top: -0.3rem;
  570. width: 0.8rem;
  571. height: 0.8rem;
  572. float: left;
  573. }
  574. .rp_icon {
  575. position: absolute;
  576. right: 0;
  577. top: -0.3rem;
  578. width: 0.8rem;
  579. height: 0.8rem;
  580. float: right;
  581. }
  582. .pk_container {
  583. width: 98%;
  584. overflow: hidden;
  585. display: block;
  586. margin: 0 auto;
  587. }
  588. .pk_container .lt {
  589. width: 35%;
  590. float: left;
  591. }
  592. .pk_container .rt {
  593. width: 35%;
  594. float: right;
  595. }
  596. .pk_container .md {
  597. width: 30%;
  598. float: left;
  599. }
  600. .pk_container ul {
  601. width: 100%;
  602. overflow: hidden;
  603. display: block;
  604. margin: 0 auto;
  605. padding-top: 0.01rem;
  606. }
  607. .pk_container li {
  608. overflow: hidden;
  609. color: #fff;
  610. margin-bottom: 0.1rem;
  611. }
  612. .pk_container .lt li {
  613. overflow: hidden;
  614. }
  615. .pk_container .rt li {
  616. overflow: hidden;
  617. }
  618. .pk_container .lt .bg {
  619. border: 2px solid rgba(255, 143, 122, 0.5);
  620. background: rgba(194, 36, 6, 0.5);
  621. }
  622. .pk_container .rt .bg {
  623. border: 2px solid rgba(80, 115, 255, 0.5);
  624. background: rgba(0, 30, 152, 0.5);
  625. }
  626. .pk_container li .bg > h5 {
  627. font-family: vista;
  628. font-weight: 500;
  629. font-size: 0.3rem;
  630. text-align: center;
  631. color: #fff;
  632. margin: 0;
  633. margin-top: 0.1rem;
  634. margin-bottom: 0.1rem;
  635. }
  636. .pk_container li .user {
  637. width: 100%;
  638. overflow: hidden;
  639. display: block;
  640. margin: 0 auto;
  641. }
  642. .pk_container .user .ult {
  643. width: 33.333%;
  644. float: left;
  645. overflow: visible;
  646. flex-direction: column;
  647. }
  648. .pk_container .user .umd {
  649. width: 33.333%;
  650. float: left;
  651. overflow: hidden;
  652. flex-direction: column
  653. }
  654. .pk_container .user .urt {
  655. width: 33.333%;
  656. float: right;
  657. flex-direction: column;
  658. }
  659. .centerLi .slowJump {
  660. animation: mymove 3s infinite;
  661. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  662. animation-direction: alternate; /*轮流反向播放动画。*/
  663. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  664. /* Safari 和 Chrome */
  665. -webkit-animation: mymove 3s infinite;
  666. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  667. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  668. }
  669. .user .ult span {
  670. width: 100%;
  671. overflow: hidden;
  672. display: block;
  673. margin: 0 auto;
  674. font-family: "Source Han Sans CN";
  675. font-weight: normal;
  676. font-size: 0.3rem;
  677. text-align: center;
  678. }
  679. .user .ult em {
  680. width: 100%;
  681. overflow: hidden;
  682. display: block;
  683. margin: 0 auto;
  684. }
  685. .user .ult em div {
  686. width: 80%;
  687. overflow: hidden;
  688. float: right;
  689. text-align: right;
  690. padding-right: 0.3rem;
  691. font-size: 0.8rem;
  692. line-height: 1.6rem;
  693. }
  694. .user .ult s {
  695. position: relative;
  696. top: -1.2rem;
  697. right: 0rem;
  698. float: right;
  699. font-family: HeadLineA;
  700. font-weight: normal;
  701. font-size: 0.3rem;
  702. text-align: center;
  703. text-decoration: none;
  704. }
  705. .circle {
  706. width: 1.65rem;
  707. height: 1.65rem;
  708. overflow: hidden;
  709. display: block;
  710. margin: 0 auto;
  711. border-radius: 250px;
  712. padding-top: 0.09rem;
  713. }
  714. .user .umd img {
  715. width: 1.5rem;
  716. height: 1.5rem;
  717. overflow: hidden;
  718. display: block;
  719. margin: 0 auto;
  720. border-radius: 250px;
  721. border: 5px solid #B9CB01;
  722. }
  723. .urt img {
  724. position: relative;
  725. right: 0.1rem;
  726. top: -1.2rem;
  727. width: 0.35rem;
  728. height: 0.35rem;
  729. float: right;
  730. }
  731. .urt em {
  732. overflow: hidden;
  733. display: block;
  734. margin: 0 auto;
  735. font-family: HeadLineA;
  736. font-weight: normal;
  737. font-size: 0.7rem;
  738. letter-spacing: -0.05em;
  739. text-align: right;
  740. font-style: normal;
  741. line-height: 1.5rem;
  742. padding-right: 25%;
  743. }
  744. .bottomLi {
  745. width: 98%;
  746. overflow: hidden;
  747. display: block;
  748. margin: 0 auto;
  749. font-weight: normal;
  750. color: #fff;
  751. text-align: center;
  752. font-size: 0.4rem;
  753. text-indent: 0.2rem;
  754. }
  755. .bottomLi img {
  756. /*width: 0.24rem;*/
  757. /*height: 0.24rem;*/
  758. float: left;
  759. margin-left: 10%;
  760. }
  761. .bottomLi span {
  762. float: left;
  763. text-align: left;
  764. }
  765. .bottomLi .btcla {
  766. width: 30%;
  767. float: left;
  768. text-align: left;
  769. }
  770. .bottomLi .btck {
  771. width: 40%;
  772. float: left;
  773. text-align: left;
  774. }
  775. .bottomLi .step {
  776. width: 30%;
  777. float: right;
  778. text-align: left;
  779. }
  780. @keyframes mymove {
  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. @-webkit-keyframes mymove /*Safari and Chrome*/
  795. {
  796. 0% {
  797. transform: scale(1); /*开始为原始大小*/
  798. }
  799. 25% {
  800. transform: scale(1.2); /*放大1.1倍*/
  801. }
  802. 50% {
  803. transform: scale(1);
  804. }
  805. 75% {
  806. transform: scale(1.2);
  807. }
  808. }
  809. .md {
  810. width: 30%;
  811. overflow: hidden;
  812. float: left;
  813. }
  814. .partInfo {
  815. width: 100%;
  816. overflow: hidden;
  817. display: block;
  818. margin: 0 auto;
  819. padding-top: 1rem;
  820. }
  821. .partInfo .rp, .partInfo .bp {
  822. width: 50%;
  823. float: left;
  824. }
  825. .partInfo .title {
  826. width: 33%;
  827. overflow: hidden;
  828. display: block;
  829. margin: 0;
  830. font-size: 0.4rem;
  831. color: #fff;
  832. text-align: left;
  833. }
  834. .rtitle {
  835. float: left;
  836. padding-left: 0.25rem;
  837. }
  838. .partInfo .btitle {
  839. width: 30%;
  840. float: right;
  841. }
  842. .partInfo .title img {
  843. float: left;
  844. margin-right: 0.2rem;
  845. }
  846. .cubelist {
  847. width: 100%;
  848. overflow: hidden;
  849. display: block;
  850. margin: 0 auto;
  851. }
  852. .cubelist .cubes {
  853. width: 33%;
  854. height: 2rem;
  855. overflow: hidden;
  856. float: left;
  857. background-position: top center;
  858. }
  859. .cubelist .vs {
  860. width: 33%;
  861. height: 2rem;
  862. overflow: hidden;
  863. float: left;
  864. }
  865. .cubelist .cubes em {
  866. width: 80%;
  867. overflow: hidden;
  868. display: block;
  869. margin: 0 auto;
  870. text-align: center;
  871. font-size: 0.3rem;
  872. font-style: normal;
  873. color: #fff;
  874. line-height: 2rem;
  875. }
  876. .cubes.rcube {
  877. background: url("../static/img/pk/rcube.png");
  878. background-size: 100% 100%;
  879. }
  880. .cubes.bcube {
  881. background: url("../static/img/pk/bcube.png");
  882. background-size: 100% 100%;
  883. }
  884. .teamScore {
  885. width: 100%;
  886. overflow: hidden;
  887. display: block;
  888. margin: 0 auto;
  889. }
  890. .teamScore div {
  891. width: 50%;
  892. float: left;
  893. text-align: center;
  894. color: #fff;
  895. font-size: 0.6rem;
  896. }
  897. .bottomInfo {
  898. width: 100%;
  899. overflow: hidden;
  900. display: block;
  901. margin: 0 auto;
  902. }
  903. .bottomInfo .names {
  904. width: 98%;
  905. height: 0.6rem;
  906. border-radius: 36px;
  907. background: #0925b4;
  908. border: 2px solid rgba(255, 255, 255, 0.5);
  909. font-size: 0.4rem;
  910. font-family: Roboto;
  911. font-weight: normal;
  912. text-align: center;
  913. color: #e1ff00;
  914. overflow: hidden;
  915. display: block;
  916. margin: 0 auto;
  917. margin-top: 0.2rem;
  918. }
  919. .teacher {
  920. width: 100%;
  921. overflow: hidden;
  922. display: block;
  923. margin: 0 auto;
  924. margin-top: 0.1rem;
  925. margin-bottom: 0.1rem;
  926. color: #fff;
  927. font-size: 0.3rem;
  928. }
  929. .teacher span {
  930. width: 100%;
  931. overflow: hidden;
  932. display: block;
  933. margin: 0 auto;
  934. }
  935. .classTime {
  936. width: 100%;
  937. overflow: hidden;
  938. display: block;
  939. margin: 0 auto;
  940. color: #fff;
  941. text-align: center;
  942. }
  943. .fastJump {
  944. animation: mymove 1s infinite;
  945. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  946. animation-direction: alternate; /*轮流反向播放动画。*/
  947. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  948. /* Safari 和 Chrome */
  949. -webkit-animation: mymove 1s infinite;
  950. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  951. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  952. }
  953. .slowJump {
  954. animation: mymove 2s infinite;
  955. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  956. animation-direction: alternate; /*轮流反向播放动画。*/
  957. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  958. /* Safari 和 Chrome */
  959. -webkit-animation: mymove 3s infinite;
  960. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  961. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  962. }
  963. /*two*/
  964. .pk_container li.two {
  965. width: 90%;
  966. overflow: hidden;
  967. display: block;
  968. }
  969. .two .bottomLi {
  970. width: 98%;
  971. font-size: 0.35rem;
  972. margin-top: 0.3rem;
  973. text-align: center;
  974. }
  975. .two .bottomLi img {
  976. width: 0.4rem;
  977. height: 0.4rem;
  978. margin-top: 0.15rem;
  979. }
  980. .two .bottomLi .btck img {
  981. width: 0.4rem;
  982. margin-top: 0.1rem;
  983. }
  984. .two .bottomLi span {
  985. line-height: 0.8rem;
  986. text-indent: 0.1rem;
  987. }
  988. .two .bottomLi .btcla {
  989. width: 30%;
  990. }
  991. .two .bottomLi .btck {
  992. width: 33%;
  993. padding-left: 3%;
  994. }
  995. .two .bottomLi .step {
  996. width: 28%;
  997. padding-right: 0%;
  998. }
  999. .two .cla em.plus {
  1000. position: relative;
  1001. left: -0.3rem
  1002. }
  1003. .two .lhj span.plus {
  1004. position: relative;
  1005. left: 1.3rem
  1006. }
  1007. .two .bottomLi .btck img {
  1008. width: 0.5rem;
  1009. height: 0.5rem;
  1010. margin-top: 0.12rem;
  1011. }
  1012. /*three*/
  1013. .pk_container li.three {
  1014. width: 90%;
  1015. overflow: hidden;
  1016. display: block;
  1017. }
  1018. .three .bottomLi {
  1019. width: 98%;
  1020. font-size: 0.35rem;
  1021. margin-top: 0rem;
  1022. text-align: center;
  1023. }
  1024. .three .circle {
  1025. width: 1.2rem;
  1026. height: 1.2rem;
  1027. }
  1028. .three .circle img {
  1029. width: 0.9rem;
  1030. height: 0.9rem;
  1031. }
  1032. .three .user {
  1033. height: 1.2rem;
  1034. overflow: hidden;
  1035. }
  1036. .three .ult em div {
  1037. line-height: 1.2rem;
  1038. }
  1039. .three .urt em {
  1040. line-height: 1.2rem;
  1041. }
  1042. .three .bottomLi img {
  1043. width: 0.4rem;
  1044. height: 0.4rem;
  1045. margin-top: 0.15rem;
  1046. }
  1047. .three .bottomLi .btck img {
  1048. width: 0.4rem;
  1049. margin-top: 0.1rem;
  1050. }
  1051. .three .bottomLi span {
  1052. line-height: 0.8rem;
  1053. text-indent: 0.1rem;
  1054. }
  1055. .three .bottomLi .btcla {
  1056. width: 30%;
  1057. }
  1058. .three .bottomLi .btck {
  1059. width: 33%;
  1060. padding-left: 3%;
  1061. }
  1062. .three .bottomLi .step {
  1063. width: 28%;
  1064. padding-right: 0%;
  1065. }
  1066. .three .cla em.plus {
  1067. position: relative;
  1068. left: -0.3rem
  1069. }
  1070. .three .lhj span.plus {
  1071. position: relative;
  1072. left: 1.3rem
  1073. }
  1074. .three .bottomLi .btck img {
  1075. width: 0.5rem;
  1076. height: 0.5rem;
  1077. margin-top: 0.12rem;
  1078. }
  1079. /*four*/
  1080. .four {
  1081. width: 49%;
  1082. float: left;
  1083. }
  1084. .four .bg {
  1085. width: 96%;
  1086. overflow: hidden;
  1087. display: block;
  1088. margin: 0 auto;
  1089. }
  1090. .pk_container li.four .bg > h5 {
  1091. font-size: 0.25rem;
  1092. }
  1093. .four .user .ult span {
  1094. font-size: 0.2rem;
  1095. }
  1096. .four .user .ult em div {
  1097. width: 90%;
  1098. margin-right: 0.05rem;
  1099. font-size: 0.5rem;
  1100. line-height: 1rem;
  1101. }
  1102. .four .user .ult s {
  1103. font-size: 0.1rem;
  1104. line-height: 1rem;
  1105. }
  1106. .four .circle {
  1107. width: 1rem;
  1108. height: 1rem;
  1109. }
  1110. .four .user .umd img {
  1111. width: 0.8rem;
  1112. height: 0.8rem;
  1113. }
  1114. .four .urt img {
  1115. width: 0.2rem;
  1116. height: 0.2rem;
  1117. top: -0.8rem;
  1118. }
  1119. .four .urt em {
  1120. font-size: 0.4rem;
  1121. line-height: 1rem;
  1122. }
  1123. .four .bottomLi {
  1124. width: 100%;
  1125. text-indent: 0.1rem;
  1126. font-size: 0.2rem;
  1127. }
  1128. .four .bottomLi img {
  1129. width: 0.2rem;
  1130. height: 0.2rem;
  1131. }
  1132. .four .bottomLi span {
  1133. width: 60%;
  1134. }
  1135. .four .user {
  1136. height: 1.2rem;
  1137. overflow: hidden;
  1138. }
  1139. /*six*/
  1140. /*eight*/
  1141. .eight {
  1142. width: 49%;
  1143. float: left;
  1144. }
  1145. .eight .bg {
  1146. width: 96%;
  1147. overflow: hidden;
  1148. display: block;
  1149. margin: 0 auto;
  1150. }
  1151. .pk_container li.eight .bg > h5 {
  1152. font-size: 0.25rem;
  1153. margin: 0.01rem 0;
  1154. }
  1155. .eight .user .ult span {
  1156. font-size: 0.2rem;
  1157. }
  1158. .eight .user .ult em div {
  1159. width: 90%;
  1160. margin-right: 0.05rem;
  1161. font-size: 0.5rem;
  1162. line-height: 1rem;
  1163. }
  1164. .eight .user .ult s {
  1165. font-size: 0.1rem;
  1166. line-height: 1rem;
  1167. }
  1168. .eight .circle {
  1169. width: 1rem;
  1170. height: 1rem;
  1171. }
  1172. .eight .user .umd img {
  1173. width: 0.8rem;
  1174. height: 0.8rem;
  1175. }
  1176. .eight .urt img {
  1177. width: 0.2rem;
  1178. height: 0.2rem;
  1179. top: -0.8rem;
  1180. }
  1181. .eight .urt em {
  1182. font-size: 0.4rem;
  1183. line-height: 1rem;
  1184. }
  1185. .eight .bottomLi {
  1186. width: 100%;
  1187. text-indent: 0.1rem;
  1188. font-size: 0.2rem;
  1189. }
  1190. .eight .bottomLi img {
  1191. width: 0.2rem;
  1192. height: 0.2rem;
  1193. }
  1194. .eight .bottomLi span {
  1195. width: 60%;
  1196. }
  1197. .eight .user {
  1198. height: 1.2rem;
  1199. overflow: hidden;
  1200. }
  1201. .pk_container .rt li {
  1202. float: right;
  1203. }
  1204. </style>