pk.vue 40 KB

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