pk.vue 36 KB

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