pk.vue 37 KB

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