pk.vue 29 KB

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