threepk.vue 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918
  1. <template>
  2. <div class="pages">
  3. <Headside></Headside>
  4. <div class="pk-detail-con">
  5. <div class="progress">
  6. <div class="progress-bar" :style="{width: pkVal}">
  7. <i class="lightning"></i>
  8. </div>
  9. <div class="right-bar" :style="{width: yellowVal}">
  10. <i class="lightning"></i>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="lessonInfo">
  15. <div class="lt">
  16. <div class="bottomInfo">
  17. <span class="names">
  18. {{PlanName}}
  19. </span>
  20. <div class="teacher">
  21. <span v-if="Teacher"> 教练:{{Teacher}}</span>
  22. <span>人数:{{num}}</span>
  23. </div>
  24. </div>
  25. </div>
  26. <div class="md">
  27. <div class="cubelist">
  28. <div class="cubes rcube">
  29. <em>红队</em>
  30. </div>
  31. <img class="vs" src="../assets/img/pk/vs.svg"/>
  32. <div class="cubes bcube">
  33. <em>蓝队</em>
  34. </div>
  35. <img class="vs" src="../assets/img/pk/vs.svg"/>
  36. <div class="cubes ycube">
  37. <em>黄队</em>
  38. </div>
  39. </div>
  40. <div class="teamScore">
  41. <div class="lt">{{redSum}} <em>CK</em></div>
  42. <div class="md">{{blueSum}} <em>CK</em></div>
  43. <div class="rt">{{yellowSum}} <em>CK</em></div>
  44. </div>
  45. </div>
  46. <div class="rt">
  47. <div class="classTime">
  48. {{classInfo.endTime}}
  49. </div>
  50. </div>
  51. </div>
  52. <div class="pk_container">
  53. <div class="pl_lt">
  54. <ul>
  55. <li :class="RedstudentsClassName" v-for="(s,i) in students.redUnite">
  56. <div class="bg">
  57. <h5>
  58. <div class="nameLt">
  59. <i class="el-icon-male" v-if="s.Sex == 1"></i>
  60. <i class="el-icon-female" v-if="s.Sex == 2"></i>
  61. </div>
  62. <div class="nameMd">{{ s.Name }}</div>
  63. <div class="namert" v-if=" s.RealHr != 0">
  64. <power :cur-power="s.PowerPercent"></power>
  65. </div>
  66. </h5>
  67. <div class="user">
  68. <div class="ult">
  69. <em>
  70. <div v-if="s.RealHr != 0">
  71. {{ s.ActivePercent | max100}}
  72. </div>
  73. <div class="plus" v-if="s.ActivePercent == 0&& s.RealHr == 0">
  74. ---
  75. </div>
  76. <s>%</s>
  77. </em>
  78. </div>
  79. <div class="umd">
  80. <div class="circle">
  81. <img :class="s.sportLevel" :src="s.Head" alt="" v-if="s.Head">
  82. <img :class="s.sportLevel" src="../static/img/people/flyhead.png" alt=""
  83. v-if="!s.Head">
  84. <!-- 生日快乐 -->
  85. <div class="birth" v-if="s.IsBirthday == 1">
  86. <img src="../assets/img/birth/birthCrow.png" class="birthCrow"/>
  87. <img src="../assets/img/birth/birthText.png" class="birthText"/>
  88. </div>
  89. <!--私有心率带-->
  90. <div class="isPrivate" v-if="s.IsPrivate == 1">
  91. <i></i>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="urt">
  96. <em class="fastJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) > 90">{{
  97. s.RealHr }}</em>
  98. <em class="slowJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) <= 90">{{
  99. s.RealHr }}</em>
  100. <em class="plus" v-if="s.RealHr == 0"> --- </em>
  101. <img src="../static/img/heart.svg" class=""/>
  102. </div>
  103. </div>
  104. <div class="bottomLi">
  105. <div class="btcla">
  106. <img src="../static/img/s1.svg"/>
  107. <span>{{ s.Cle |fmtInt }}</span>
  108. </div>
  109. <div class="btck">
  110. <img src="../static/img/s2.svg"/>
  111. <span>{{ s.PureCalorieNoVo2 |fmtInt}}</span>
  112. </div>
  113. <div class="step">
  114. <img src="../static/img/ck.svg"/>
  115. <span>{{ s.Ck |fmtFloat}}</span>
  116. </div>
  117. </div>
  118. </div>
  119. </li>
  120. </ul>
  121. </div>
  122. <div class="pl_md">
  123. <ul>
  124. <li :class="BluestudentsClassName" v-for="(s,i) in students.blueUnite">
  125. <div class="bg">
  126. <h5>
  127. <div class="nameLt">
  128. <i class="el-icon-male" v-if="s.Sex == 1"></i>
  129. <i class="el-icon-female" v-if="s.Sex == 2"></i>
  130. </div>
  131. <div class="nameMd">{{ s.Name }}</div>
  132. <div class="namert" v-if=" s.RealHr != 0">
  133. <power :cur-power="s.PowerPercent"></power>
  134. </div>
  135. </h5>
  136. <div class="user">
  137. <div class="ult">
  138. <em>
  139. <div v-if="s.RealHr != 0">
  140. {{ s.ActivePercent | max100}}
  141. </div>
  142. <div class="plus" v-if="s.ActivePercent == 0&& s.RealHr == 0">
  143. ---
  144. </div>
  145. <s>%</s>
  146. </em>
  147. </div>
  148. <div class="umd">
  149. <div class="circle">
  150. <img :class="s.sportLevel" :src="s.Head" alt="" v-if="s.Head">
  151. <img :class="s.sportLevel" src="../static/img/people/flyhead.png" alt=""
  152. v-if="!s.Head">
  153. <!-- 生日快乐 -->
  154. <div class="birth" v-if="s.IsBirthday == 1">
  155. <img src="../assets/img/birth/birthCrow.png" class="birthCrow"/>
  156. <img src="../assets/img/birth/birthText.png" class="birthText"/>
  157. </div>
  158. <!--私有心率带-->
  159. <div class="isPrivate" v-if="s.IsPrivate == 1">
  160. <i></i>
  161. </div>
  162. </div>
  163. </div>
  164. <div class="urt">
  165. <em class="fastJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) > 90">{{
  166. s.RealHr }}</em>
  167. <em class="slowJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) <= 90">{{
  168. s.RealHr }}</em>
  169. <em class="plus" v-if="s.RealHr == 0"> --- </em>
  170. <img src="../static/img/heart.svg" class=""/>
  171. </div>
  172. </div>
  173. <div class="bottomLi">
  174. <div class="btcla">
  175. <img src="../static/img/s1.svg"/>
  176. <span>{{ s.Cle |fmtInt }}</span>
  177. </div>
  178. <div class="btck">
  179. <img src="../static/img/s2.svg"/>
  180. <span>{{ s.PureCalorieNoVo2 |fmtInt}}</span>
  181. </div>
  182. <div class="step">
  183. <img src="../static/img/ck.svg"/>
  184. <span>{{ s.Ck |fmtFloat}}</span>
  185. </div>
  186. </div>
  187. </div>
  188. </li>
  189. </ul>
  190. </div>
  191. <div class="pl_rt">
  192. <ul>
  193. <li :class="YellowstudentsClassName" v-for="(s,i) in students.yellowUnite">
  194. <div class="bg">
  195. <h5>
  196. <div class="nameLt">
  197. <i class="el-icon-male" v-if="s.Sex == 1"></i>
  198. <i class="el-icon-female" v-if="s.Sex == 2"></i>
  199. </div>
  200. <div class="nameMd">{{ s.Name }}</div>
  201. <div class="namert" v-if=" s.RealHr != 0">
  202. <power :cur-power="s.PowerPercent"></power>
  203. </div>
  204. </h5>
  205. <div class="user">
  206. <div class="ult">
  207. <em>
  208. <div v-if="s.RealHr != 0">
  209. {{ s.ActivePercent | max100}}
  210. </div>
  211. <div class="plus" v-if="s.ActivePercent == 0&& s.RealHr == 0">
  212. ---
  213. </div>
  214. <s>%</s>
  215. </em>
  216. </div>
  217. <div class="umd">
  218. <div class="circle">
  219. <img :class="s.sportLevel" :src="s.Head" alt="" v-if="s.Head">
  220. <img :class="s.sportLevel"
  221. src="../static/img/people/flyhead.png"
  222. v-if="!s.Head">
  223. <!-- 生日快乐 -->
  224. <div class="birth" v-if="s.IsBirthday == 1">
  225. <img src="../assets/img/birth/birthCrow.png" class="birthCrow"/>
  226. <img src="../assets/img/birth/birthText.png" class="birthText"/>
  227. </div>
  228. <!--私有心率带-->
  229. <div class="isPrivate" v-if="s.IsPrivate == 1">
  230. <i></i>
  231. </div>
  232. </div>
  233. </div>
  234. <div class="urt">
  235. <em class="fastJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) > 90">{{
  236. s.RealHr }}</em>
  237. <em class="slowJump" v-if="s.RealHr != 0" v-show="parseInt(s.ActivePercent) <= 90">{{
  238. s.RealHr }}</em>
  239. <em class="plus" v-if="s.RealHr == 0"> --- </em>
  240. <img src="../static/img/heart.svg" class=""/>
  241. </div>
  242. </div>
  243. <div class="bottomLi">
  244. <div class="btcla">
  245. <img src="../static/img/s1.svg"/>
  246. <span>{{ s.Cle |fmtInt }}</span>
  247. </div>
  248. <div class="btck">
  249. <img src="../static/img/s2.svg"/>
  250. <span>{{ s.PureCalorieNoVo2 |fmtInt}}</span>
  251. </div>
  252. <div class="step">
  253. <img src="../static/img/ck.svg"/>
  254. <span>{{ s.Ck |fmtFloat}}</span>
  255. </div>
  256. </div>
  257. </div>
  258. </li>
  259. </ul>
  260. </div>
  261. </div>
  262. <newRecord :toper-info="toperInfo"></newRecord>
  263. <newStudent :student-info="studentInfo"></newStudent>
  264. </div>
  265. </template>
  266. <script>
  267. import '../libs/rem';
  268. import Headside from '@/components/Headside'
  269. import newRecord from '@/components/newRecord'
  270. import newStudent from '@/components/newStudent'
  271. import {
  272. getHello,
  273. getClassStat,
  274. getRecordBreak,
  275. getNewUser
  276. } from '@/api/getApiRes'
  277. import '../libs/rem';
  278. import power from '@/components/power'
  279. let qs = require('qs');
  280. export default {
  281. data() {
  282. return {
  283. trueDate: true,//启用真实数据 true / false
  284. RedstudentsClassName: '',
  285. BluestudentsClassName: '',
  286. YellowstudentsClassName: '',
  287. studentsClassName: [],
  288. redSum: 0,
  289. blueSum: 0,
  290. yellowSum: 0,
  291. pkVal: '33.33%',
  292. yellowVal: '33.33%',
  293. students: {
  294. redUnite: [],
  295. blueUnite: [],
  296. yellowUnite: [],
  297. },
  298. PlanName: '',
  299. Teacher: '',
  300. num: 0,
  301. classInfo: {
  302. name: '竞技课程',
  303. num: '0',
  304. btTime: '2020-11-13 09:00:00',//时间戳
  305. endTime: '00:00:00',
  306. redSum: 0,
  307. blueSum: 0,
  308. },
  309. totalTime: 30,
  310. studentTime: 15,
  311. toperInfo: {
  312. dialogVisible: false,
  313. toper: {},
  314. },
  315. studentInfo: {
  316. dialogVisible: false,
  317. Rs: [],
  318. percent: 0
  319. },
  320. }
  321. },
  322. mounted() {
  323. let that = this;
  324. if (this.trueDate) {
  325. this.init();
  326. // this.PkEgg = setInterval(() => {
  327. // this.createEgg();
  328. // }, 6000);
  329. } else {
  330. // 虚假的数据
  331. let json = {
  332. "Code": "0",
  333. "Memo": "Success",
  334. "Dp": {
  335. "PlanId": 182,
  336. "ShopId": 1,
  337. "SvId": 1,
  338. "PlanName": "齐源大厦浏览器显示2020-12-02日08:40开始的竞技游戏",
  339. "Status": 2,
  340. "BeginTime": "17:15:18",
  341. "EndTime": 0,
  342. "ClassType": 2,
  343. "PkNum": 2
  344. }
  345. };
  346. // 载入课程信息
  347. let Dp = json.Dp;
  348. that.ReadLessonInfo(Dp);
  349. // 载入学生信息
  350. let Rs = fakeNews(21, 3);
  351. that.UniteBreak(Rs);
  352. // 人口总数
  353. that.num = Rs ? Rs.length + 1 : 0;
  354. this.ClacClassTime();
  355. }
  356. },
  357. watch: {
  358. '$route': function (val) {
  359. if (val.path == '/threepk') {
  360. if (this.trueDate) {
  361. this.init();
  362. // this.PkEgg = setInterval(() => {
  363. // this.createEgg();
  364. // }, 6000);
  365. } else {
  366. let Rs = fakeNews(16, 3);
  367. that.UniteBreak(Rs);
  368. }
  369. } else {
  370. clearInterval(this.PkTimer);
  371. clearInterval(this.PkEgg);
  372. clearInterval(this.timer2);
  373. clearInterval(this.timer3);
  374. this.PkTimer = null;
  375. this.PkEgg = null;
  376. this.timer2 = null;
  377. this.timer3 = null;
  378. }
  379. }
  380. },
  381. beforeDestroy() {
  382. clearInterval(this.PkTimer);
  383. clearInterval(this.PkEgg);
  384. clearInterval(this.timer2);
  385. clearInterval(this.timer3);
  386. this.PkTimer = null;
  387. this.PkEgg = null;
  388. this.timer2 = null;
  389. this.timer3 = null;
  390. },
  391. methods: {
  392. init(){
  393. this.PkTimer = setInterval(() => {
  394. this.GetgetUserList();
  395. this.curgetClassStat();
  396. }, 1000);
  397. this.GetgetUserList();
  398. this.timer2 = setInterval(() => {
  399. this.createEgg();
  400. }, 31000);
  401. this.timer3 = setInterval(() => {
  402. this.createNewStudent();
  403. }, 6000);
  404. },
  405. // 载入课程信息
  406. ReadLessonInfo(Dp) {
  407. this.PlanName = Dp.PlanName;
  408. this.BeginTime = Dp.BeginTime;
  409. this.Teacher = Dp.Teacher;
  410. },
  411. // 分队展示
  412. UniteBreak(Rs) {
  413. let that = this;
  414. that.students.redUnite = [];
  415. that.students.blueUnite = [];
  416. that.students.yellowUnite = [];
  417. if (!Rs) {
  418. that.students.redUnite = [];
  419. that.students.blueUnite = [];
  420. that.students.yellowUnite = [];
  421. } else {
  422. Rs.map(function (item, t) {
  423. item.sportLevel = sportLevel(item.ActivePercent);
  424. if (item.GroupNo == 1) {
  425. that.students.redUnite.push(item);
  426. }
  427. if (item.GroupNo == 2) {
  428. that.students.blueUnite.push(item);
  429. }
  430. if (item.GroupNo == 3) {
  431. that.students.yellowUnite.push(item);
  432. }
  433. })
  434. }
  435. that.giveClassName(that.students.redUnite, 1);
  436. that.giveClassName(that.students.blueUnite, 2);
  437. that.giveClassName(that.students.yellowUnite, 3);
  438. that.calcSumCK(that.students);
  439. },
  440. // 计算各队总分
  441. calcSumCK(Rs) {
  442. let that = this;
  443. let redSum = 0;
  444. let blueSum = 0;
  445. let yellowSum = 0;
  446. // that.redSum
  447. Rs.redUnite.map(function (item, t) {
  448. redSum += parseFloat(item.Ck.toFixed(1))
  449. });
  450. Rs.blueUnite.map(function (item, t) {
  451. blueSum += parseFloat(item.Ck.toFixed(1))
  452. });
  453. Rs.yellowUnite.map(function (item, t) {
  454. yellowSum += parseFloat(item.Ck.toFixed(1))
  455. });
  456. that.redSum = redSum.toFixed(1);
  457. that.blueSum = blueSum.toFixed(1);
  458. that.yellowSum = yellowSum.toFixed(1);
  459. // 进度条 FormatCk
  460. let redFmtSum = 0;
  461. let blueFmtSum = 0;
  462. let yellowFmtSum = 0;
  463. Rs.redUnite.map(function (item, t) {
  464. redFmtSum += item.FormatCk
  465. });
  466. Rs.blueUnite.map(function (item, t) {
  467. blueFmtSum += item.FormatCk
  468. });
  469. Rs.yellowUnite.map(function (item, t) {
  470. yellowFmtSum += item.FormatCk
  471. });
  472. // pkVal
  473. let sumMax = redFmtSum + blueFmtSum + yellowFmtSum;
  474. // 当为0时均分
  475. if (sumMax == 0) {
  476. that.pkVal = '33.33%';
  477. that.yellowVal = '33.33%';
  478. } else {
  479. // 限制最大
  480. let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
  481. let yellowVal = parseInt((yellowFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((yellowFmtSum / sumMax) * 100);
  482. that.pkVal = pkval.toFixed(1) + '%';
  483. that.yellowVal = yellowVal.toFixed(1) + '%';
  484. }
  485. // 获取人数 计算人均CK
  486. // let redHuman = 0;
  487. // let blueHuman = 0;
  488. // let yellowHuman = 0;
  489. // if (Rs.redUnite != '') {
  490. // redHuman = Rs.redUnite.length;
  491. // that.redSum = parseFloat(redSum / redHuman).toFixed(1);
  492. // } else {
  493. // that.redSum = 0
  494. // }
  495. //
  496. // if (Rs.blueUnite != '') {
  497. // blueHuman = Rs.blueUnite.length;
  498. // that.blueSum = parseFloat(blueSum / blueHuman).toFixed(1);
  499. // } else {
  500. // that.blueSum = 0
  501. // }
  502. // if (Rs.yellowUnite != '') {
  503. // yellowHuman = Rs.yellowUnite.length;
  504. // that.yellowSum = parseFloat(yellowSum / yellowHuman).toFixed(1);
  505. // } else {
  506. // that.yellowSum = 0
  507. // }
  508. // let sumMax = parseFloat(that.redSum) + parseFloat(that.blueSum) + parseFloat(that.yellowSum);
  509. // // 当为0时均分
  510. // if (sumMax == 0) {
  511. // that.pkVal = '50%';
  512. // that.yellowVal = '33.33%';
  513. // } else {
  514. // // 限制最大
  515. // let pkval = parseInt((that.redSum / sumMax) * 100) > 100 ? 100 : parseInt((that.redSum / sumMax) * 100);
  516. // let yellowVal = parseInt((that.yellowSum / sumMax) * 100) > 100 ? 100 : parseInt((that.yellowSum / sumMax) * 100);
  517. // that.pkVal = pkval + '%';
  518. // that.yellowVal = yellowVal + '%';
  519. // }
  520. },
  521. // 获取上课学生信息
  522. GetgetUserList() {
  523. let that = this;
  524. let param = {
  525. token: localStorage.token,
  526. eqSn: localStorage.eqSn
  527. };
  528. let postdata = qs.stringify(param);
  529. getHello(postdata).then(res => {
  530. let json = res;
  531. if (json.Code == 0) {
  532. if (!json.Dp) {
  533. // that.$message.error('没有获取到课程信息');
  534. return false
  535. } else {
  536. that.ReadLessonInfo(json.Dp);
  537. }
  538. that.UniteBreak(json.Rs);
  539. // 人口总数
  540. that.num = json.Rs.length ? json.Rs.length : 0;
  541. this.ClacClassTime();
  542. } else {
  543. // 已下课
  544. console.log(json.Code);
  545. if (json.Code == '999') {
  546. // that.$router.push({path: '/3pkRank'});
  547. } else {
  548. // 已出错
  549. that.$message.error(json.Memo);
  550. }
  551. }
  552. })
  553. },
  554. // 动态计算排版
  555. giveClassName(res, type) {
  556. let that = this;
  557. let numberClass = '';
  558. switch (true) {
  559. case parseInt(res.length) <= 2 && parseInt(res.length) >= 0:
  560. numberClass = 'two';
  561. break;
  562. case parseInt(res.length) <= 4 && parseInt(res.length) >= 3:
  563. numberClass = 'four';
  564. break;
  565. case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
  566. numberClass = 'eight';
  567. break;
  568. case parseInt(res.length) > 6:
  569. numberClass = 'eight';
  570. break;
  571. }
  572. if (type == 1) {
  573. that.RedstudentsClassName = numberClass;
  574. }
  575. if (type == 2) {
  576. that.BluestudentsClassName = numberClass;
  577. }
  578. if (type == 3) {
  579. that.YellowstudentsClassName = numberClass;
  580. }
  581. },
  582. // 计算团队竞技课持续时间
  583. ClacClassTime() {
  584. let BeginTime = new Date(globalcurrent() + ' ' + this.BeginTime);//结束时间
  585. let nowDate = new Date();
  586. let date = new Date(nowDate - BeginTime - 8 * 60 * 60 * 1000);//减掉东八区时区问题
  587. let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
  588. let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
  589. let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  590. this.classInfo.endTime = h + m + s;
  591. },
  592. // // 计算双方对抗强度加总
  593. // CalcTeamCk() {
  594. // let that = this;
  595. // let Redsum = 0;
  596. // let Bluesum = 0;
  597. // let sumMax = 0;
  598. // if (that.Redstudents) {
  599. // that.Redstudents.map(function (i) {
  600. // Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
  601. // });
  602. // }
  603. // if (that.Bluestudents) {
  604. // that.Bluestudents.map(function (i) {
  605. // Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
  606. // });
  607. // }
  608. // that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
  609. // that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
  610. //
  611. // sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
  612. // that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
  613. // },
  614. // 启动一个成就彩蛋
  615. createEgg() {
  616. let that = this;
  617. let param = {
  618. token: localStorage.token,
  619. eqSn: localStorage.eqSn
  620. };
  621. let postdata = qs.stringify(param);
  622. getRecordBreak(postdata).then(res => {
  623. let json = res;
  624. if (json.Code == 0) {
  625. // 欢迎新学生时不显示彩蛋
  626. if (that.studentInfo.dialogVisible == true) {
  627. console.log('正在显示新学生');
  628. return false
  629. }else{
  630. this.OpenEgg(json);
  631. }
  632. } else {
  633. // 并没有人破记录
  634. if (json.Code == 999) return false;
  635. if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
  636. }
  637. })
  638. },
  639. // 欢迎新同学
  640. createNewStudent() {
  641. let that = this;
  642. let param = {
  643. token: localStorage.token,
  644. eqSn: localStorage.eqSn
  645. };
  646. let postdata = qs.stringify(param);
  647. getNewUser(postdata).then(res => {
  648. let json = res;
  649. if (json.Code == 0) {
  650. console.log('来新生了');
  651. // 显示彩蛋时不欢迎新学生
  652. if (that.toperInfo.dialogVisible == true) {
  653. console.log('正在显示彩蛋');
  654. return false
  655. }else{
  656. that.OpenStudent(json.Rs);
  657. }
  658. } else {
  659. // 并没有人破记录
  660. if (json.Code == 999) return false;
  661. if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
  662. }
  663. })
  664. },
  665. OpenEgg(msg) {
  666. this.toperInfo.toper = msg.Rs;
  667. this.toperInfo.dialogVisible = true;
  668. // 倒计时5秒自动关闭
  669. let that = this;
  670. this.totalTime = 30;
  671. let clock = window.setInterval(() => {
  672. this.totalTime--;
  673. if (parseInt(this.totalTime) < 0) {
  674. that.toperInfo.dialogVisible = false;
  675. clearInterval(clock);
  676. }
  677. }, 1000)
  678. },
  679. OpenStudent(msg) {
  680. let that = this;
  681. that.studentInfo.Rs = msg;
  682. that.studentInfo.dialogVisible = true;
  683. this.studentInfo.percent = 0;
  684. // 倒计时5秒自动关闭
  685. this.studentTime = 15;
  686. let clock = window.setInterval(() => {
  687. this.studentTime--;
  688. let num = (15 - this.studentTime) / 15 * 100;
  689. this.studentInfo.percent = parseInt(num) > 100 ? 100 : num;
  690. console.log('num' + num);
  691. if (parseInt(this.studentTime) <= 0) {
  692. that.studentInfo.dialogVisible = false;
  693. clearInterval(clock);
  694. }
  695. }, 1000)
  696. },
  697. // 当前课程状态
  698. curgetClassStat() {
  699. let that = this;
  700. let param = {
  701. token: localStorage.token,
  702. eqSn: localStorage.eqSn
  703. };
  704. let postdata = qs.stringify(param);
  705. getClassStat(postdata).then(res => {
  706. let json = res;
  707. if (json.Code == 0) {
  708. // 没开课
  709. if (json.ClassOn == 0) {
  710. console.log("已下课");
  711. // 0: 下课 团课/私教 排名
  712. // 1:团课/私教 todo
  713. // 2:竞技课2PK
  714. // 3:竞技课3PK
  715. that.$router.push({path: '/3pkRank'});
  716. console.log('json.dp' + json.dp);
  717. switch (parseInt(json.dp)) {
  718. case 2:
  719. that.$router.push({path: '/3pkRank'});
  720. break;
  721. case 3:
  722. that.$router.push({path: '/3pkRank'});
  723. break;
  724. }
  725. }
  726. } else {
  727. // that.$message.error(json.Memo);
  728. }
  729. })
  730. },
  731. },
  732. filters: {
  733. fmtNum(val) {
  734. if (val == 0) {
  735. return '--'
  736. } else {
  737. if (parseInt(val) < 0) return 0;
  738. if (parseInt(val) > 0) return val
  739. }
  740. },
  741. fmtFloat(val) {
  742. if (val == 0) {
  743. return '0.0'
  744. } else {
  745. return parseFloat(val).toFixed(1);
  746. }
  747. },
  748. fmtInt(val) {
  749. if (val == 0) {
  750. return '0'
  751. } else {
  752. return parseInt(val);
  753. }
  754. },
  755. max100(val) {
  756. if (val <= 100) {
  757. return val
  758. } else {
  759. return 100
  760. }
  761. }
  762. },
  763. components: {
  764. Headside, newRecord,newStudent,power
  765. }
  766. }
  767. </script>
  768. <style scoped>
  769. @import "../assets/css/bg.css";
  770. .pages {
  771. position: absolute;
  772. top: 0;
  773. left: 0;
  774. right: 0;
  775. bottom: 0;
  776. width: 100%;
  777. overflow: hidden;
  778. display: block;
  779. margin: 0 auto;
  780. background-color: #028fe1;
  781. background: url("../assets/img/threepk/threepkbg.png");
  782. background-size: 100%;
  783. background-repeat: no-repeat;
  784. }
  785. * {
  786. font-family: vista;
  787. }
  788. ul, li {
  789. list-style: none;
  790. margin: 0;
  791. padding: 0;
  792. }
  793. em {
  794. font-style: normal;
  795. }
  796. .pk-detail-con {
  797. /*position: absolute;*/
  798. position: relative;
  799. top: 0rem;
  800. width: 100%;
  801. height: 0.6rem;
  802. display: block;
  803. margin: 0 auto;
  804. padding-top: 0.35rem;
  805. overflow: hidden;
  806. }
  807. .progress {
  808. width: 100%;
  809. height: 0.3rem;
  810. overflow: visible;
  811. background-color: #04A6EE;
  812. border-radius: 19px;
  813. background-image: url("../static/img/pk/blue.png");
  814. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  815. background-size: 40px 40px;
  816. }
  817. .progress-bar {
  818. float: left;
  819. height: 0.3rem;
  820. text-align: left;
  821. background-color: #F75E07;
  822. -moz-transition: width .6s ease;
  823. -webkit-transition: width .6s ease;
  824. transition: width .6s ease;
  825. background-image: url("../static/img/pk/red.png");
  826. background-size: 40px 40px;
  827. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  828. /*background-size: 40px 40px;*/
  829. }
  830. .right-bar {
  831. float: right;
  832. position: relative;
  833. right: 0;
  834. top: 0rem;
  835. height: 0.3rem;
  836. text-align: right;
  837. background-color: #DBB900;
  838. -moz-transition: width .6s ease;
  839. -webkit-transition: width .6s ease;
  840. transition: width .6s ease;
  841. background-image: url("../static/img/pk/red.png");
  842. background-size: 40px 40px;
  843. }
  844. .progress, .progress-bar {
  845. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  846. }
  847. .lightning {
  848. position: relative;
  849. top: -0.5rem;
  850. width: 1rem;
  851. height: 1.3rem;
  852. float: right;
  853. margin-right: -0.5rem;
  854. background: url("../static/img/pk/light.png") no-repeat center;
  855. background-size: 100%;
  856. }
  857. .right-bar .lightning {
  858. position: relative;
  859. top: -0.5rem;
  860. width: 1rem;
  861. height: 1.3rem;
  862. margin-right: -0.5rem;
  863. background: url("../static/img/pk/light.png") no-repeat center;
  864. background-size: 100%;
  865. left: -0.4rem;
  866. float: left;
  867. }
  868. .lp_icon {
  869. position: absolute;
  870. left: -0.1rem;
  871. top: -0.3rem;
  872. width: 0.8rem;
  873. height: 0.8rem;
  874. float: left;
  875. }
  876. .rp_icon {
  877. position: absolute;
  878. right: 0;
  879. top: -0.3rem;
  880. width: 0.8rem;
  881. height: 0.8rem;
  882. float: right;
  883. }
  884. .lessonInfo {
  885. width: 100%;
  886. overflow: hidden;
  887. display: block;
  888. margin: 0 auto;
  889. }
  890. .lessonInfo .lt {
  891. width: 30%;
  892. float: left;
  893. }
  894. .lessonInfo .md {
  895. width: 40%;
  896. float: left;
  897. }
  898. .lessonInfo .rt {
  899. width: 30%;
  900. float: right;
  901. }
  902. .bottomInfo {
  903. width: 100%;
  904. overflow: hidden;
  905. display: block;
  906. margin: 0 auto;
  907. }
  908. .bottomInfo .names {
  909. width: 70%;
  910. height: 0.6rem;
  911. border-radius: 36px;
  912. background: #0925b4;
  913. border: 2px solid rgba(255, 255, 255, 0.5);
  914. font-size: 0.4rem;
  915. font-family: Roboto;
  916. font-weight: normal;
  917. text-align: center;
  918. color: #e1ff00;
  919. overflow: hidden;
  920. display: block;
  921. margin: 0 auto;
  922. margin-top: 0.2rem;
  923. }
  924. .teacher {
  925. width: 100%;
  926. overflow: hidden;
  927. display: block;
  928. margin: 0 auto;
  929. color: #fff;
  930. font-size: 0.3rem;
  931. padding-top: 0.2rem;
  932. }
  933. .teacher span {
  934. width: 100%;
  935. overflow: hidden;
  936. display: block;
  937. margin: 0 auto;
  938. }
  939. .classTime {
  940. width: 100%;
  941. overflow: hidden;
  942. display: block;
  943. margin: 0 auto;
  944. color: #fff;
  945. text-align: center;
  946. }
  947. .cubelist {
  948. width: 100%;
  949. overflow: hidden;
  950. display: block;
  951. margin: 0 auto;
  952. }
  953. .cubelist .cubes {
  954. width: 20%;
  955. height: 1.5rem;
  956. overflow: hidden;
  957. float: left;
  958. background-position: top center;
  959. }
  960. .cubelist .vs {
  961. width: 20%;
  962. height: 0.6rem;
  963. overflow: hidden;
  964. float: left;
  965. padding-top: 0.4rem;
  966. }
  967. .cubelist .cubes em {
  968. width: 80%;
  969. overflow: hidden;
  970. display: block;
  971. margin: 0 auto;
  972. text-align: center;
  973. font-size: 0.2rem;
  974. font-style: normal;
  975. color: #fff;
  976. line-height: 1.5rem;
  977. }
  978. .cubes.rcube {
  979. background: url("../static/img/pk/rcube.png");
  980. background-size: 100% 100%;
  981. }
  982. .cubes.bcube {
  983. background: url("../static/img/pk/bcube.png");
  984. background-size: 100% 100%;
  985. }
  986. .cubes.ycube {
  987. background: url("../static/img/pk/ycube.png");
  988. background-size: 100% 100%;
  989. }
  990. .teamScore {
  991. width: 100%;
  992. overflow: hidden;
  993. display: block;
  994. margin: 0 auto;
  995. }
  996. .lessonInfo .teamScore div {
  997. width: 25%;
  998. float: left;
  999. color: #fff;
  1000. font-size: 0.4rem;
  1001. text-align: left;
  1002. }
  1003. .lessonInfo .teamScore .md {
  1004. width: 50%;
  1005. text-align: center;
  1006. }
  1007. .lessonInfo .teamScore .rt {
  1008. float: right;
  1009. text-align: right;
  1010. }
  1011. .lessonInfo .teamScore em {
  1012. font-size: 0.2rem;
  1013. }
  1014. .pk_container {
  1015. width: 100%;
  1016. overflow: hidden;
  1017. display: block;
  1018. margin: 0 auto;
  1019. }
  1020. .pk_container .pl_lt {
  1021. width: 33.333%;
  1022. float: left;
  1023. }
  1024. .pk_container .pl_rt {
  1025. width: 33.333%;
  1026. float: right;
  1027. }
  1028. .pk_container .pl_md {
  1029. width: 33.333%;
  1030. float: left;
  1031. }
  1032. .pk_container ul {
  1033. width: 98%;
  1034. overflow: hidden;
  1035. display: block;
  1036. margin: 0 auto;
  1037. padding-top: 0.01rem;
  1038. }
  1039. .pk_container li {
  1040. overflow: hidden;
  1041. color: #fff;
  1042. margin-bottom: 0.1rem;
  1043. }
  1044. .pk_container .lt li {
  1045. overflow: hidden;
  1046. }
  1047. .pk_container .rt li {
  1048. overflow: hidden;
  1049. }
  1050. .pk_container .pl_lt .bg {
  1051. border: 2px solid rgba(255, 143, 122, 0.5);
  1052. background: rgba(194, 36, 6, 0.5);
  1053. }
  1054. .pk_container .pl_md .bg {
  1055. border: 2px solid rgba(80, 115, 255, 0.5);
  1056. background: rgba(0, 30, 152, 0.5);
  1057. }
  1058. .pk_container .pl_rt .bg {
  1059. border: 2px solid rgba(255, 239, 149, 0.5);
  1060. /*background: rgba(255, 230, 0, 0.5);*/
  1061. /*background: rgba(233, 192, 12, 0.9);*/
  1062. background: rgba(245,195,0,0.9);
  1063. }
  1064. .pk_container li .bg > h5 {
  1065. font-family: vista;
  1066. font-weight: 500;
  1067. font-size: 0.3rem;
  1068. text-align: center;
  1069. color: #fff;
  1070. margin: 0;
  1071. margin-top: 0.1rem;
  1072. margin-bottom: 0.1rem;
  1073. }
  1074. .bg > h5 div {
  1075. float: left;
  1076. width: 20%;
  1077. text-align: left;
  1078. text-indent: 0.1rem;
  1079. }
  1080. .bg > h5 .nameMd {
  1081. width: 60%;
  1082. text-align: center;
  1083. text-indent: 0;
  1084. }
  1085. .pk_container li .user {
  1086. width: 100%;
  1087. overflow: hidden;
  1088. display: block;
  1089. margin: 0 auto;
  1090. }
  1091. .pk_container .user .ult {
  1092. width: 33.333%;
  1093. float: left;
  1094. overflow: visible;
  1095. flex-direction: column;
  1096. }
  1097. .pk_container .user .umd {
  1098. width: 33.333%;
  1099. float: left;
  1100. overflow: visible;
  1101. flex-direction: column
  1102. }
  1103. .pk_container .user .urt {
  1104. width: 33.333%;
  1105. float: right;
  1106. flex-direction: column;
  1107. }
  1108. .centerLi .slowJump {
  1109. animation: mymove 3s infinite;
  1110. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  1111. animation-direction: alternate; /*轮流反向播放动画。*/
  1112. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1113. /* Safari 和 Chrome */
  1114. -webkit-animation: mymove 3s infinite;
  1115. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1116. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1117. }
  1118. .user .ult span {
  1119. width: 100%;
  1120. overflow: hidden;
  1121. display: block;
  1122. margin: 0 auto;
  1123. font-family: "Source Han Sans CN";
  1124. font-weight: normal;
  1125. font-size: 0.3rem;
  1126. text-align: center;
  1127. }
  1128. .user .ult em {
  1129. width: 100%;
  1130. overflow: hidden;
  1131. display: block;
  1132. margin: 0 auto;
  1133. }
  1134. .user .ult em div {
  1135. width: 80%;
  1136. overflow: hidden;
  1137. float: right;
  1138. text-align: right;
  1139. padding-right: 0.3rem;
  1140. font-size: 0.8rem;
  1141. line-height: 1.6rem;
  1142. }
  1143. .user .ult s {
  1144. position: relative;
  1145. top: -1.2rem;
  1146. right: 0rem;
  1147. float: right;
  1148. font-family: HeadLineA;
  1149. font-weight: normal;
  1150. font-size: 0.3rem;
  1151. text-align: center;
  1152. text-decoration: none;
  1153. }
  1154. .circle {
  1155. width: 1.73rem;
  1156. height: 1.73rem;
  1157. overflow: visible;
  1158. display: block;
  1159. margin: 0 auto;
  1160. border-radius: 33rem;
  1161. padding-top: 0.09rem;
  1162. }
  1163. .user .umd img {
  1164. width: 1.45rem;
  1165. height: 1.45rem;
  1166. overflow: visible;
  1167. display: block;
  1168. margin: 0 auto;
  1169. border-radius: 33rem;
  1170. border: 0.1rem solid #B9CB01;
  1171. }
  1172. .urt img {
  1173. position: relative;
  1174. right: 0.1rem;
  1175. top: -1.2rem;
  1176. width: 0.35rem;
  1177. height: 0.35rem;
  1178. float: right;
  1179. }
  1180. .urt em {
  1181. overflow: hidden;
  1182. display: block;
  1183. margin: 0 auto;
  1184. font-family: HeadLineA;
  1185. font-weight: normal;
  1186. font-size: 0.7rem;
  1187. letter-spacing: -0.05em;
  1188. text-align: right;
  1189. font-style: normal;
  1190. line-height: 1.5rem;
  1191. padding-right: 25%;
  1192. }
  1193. .bottomLi {
  1194. width: 98%;
  1195. overflow: hidden;
  1196. display: block;
  1197. margin: 0 auto;
  1198. font-weight: normal;
  1199. color: #fff;
  1200. text-align: center;
  1201. font-size: 0.4rem;
  1202. text-indent: 0.2rem;
  1203. }
  1204. .bottomLi img {
  1205. float: left;
  1206. margin-left: 10%;
  1207. }
  1208. .bottomLi span {
  1209. float: left;
  1210. text-align: left;
  1211. }
  1212. .bottomLi .btcla {
  1213. width: 30%;
  1214. float: left;
  1215. text-align: left;
  1216. }
  1217. .bottomLi .btck {
  1218. width: 40%;
  1219. float: left;
  1220. text-align: left;
  1221. }
  1222. .bottomLi .step {
  1223. width: 30%;
  1224. float: right;
  1225. text-align: left;
  1226. }
  1227. @keyframes mymove {
  1228. 0% {
  1229. transform: scale(1); /*开始为原始大小*/
  1230. }
  1231. 25% {
  1232. transform: scale(1.2); /*放大1.1倍*/
  1233. }
  1234. 50% {
  1235. transform: scale(1);
  1236. }
  1237. 75% {
  1238. transform: scale(1.2);
  1239. }
  1240. }
  1241. @-webkit-keyframes mymove /*Safari and Chrome*/
  1242. {
  1243. 0% {
  1244. transform: scale(1); /*开始为原始大小*/
  1245. }
  1246. 25% {
  1247. transform: scale(1.2); /*放大1.1倍*/
  1248. }
  1249. 50% {
  1250. transform: scale(1);
  1251. }
  1252. 75% {
  1253. transform: scale(1.2);
  1254. }
  1255. }
  1256. .partInfo {
  1257. width: 100%;
  1258. overflow: hidden;
  1259. display: block;
  1260. margin: 0 auto;
  1261. padding-top: 1rem;
  1262. }
  1263. .partInfo .rp, .partInfo .bp {
  1264. width: 50%;
  1265. float: left;
  1266. }
  1267. .partInfo .title {
  1268. width: 33%;
  1269. overflow: hidden;
  1270. display: block;
  1271. margin: 0;
  1272. font-size: 0.4rem;
  1273. color: #fff;
  1274. text-align: left;
  1275. }
  1276. .rtitle {
  1277. float: left;
  1278. padding-left: 0.25rem;
  1279. }
  1280. .partInfo .btitle {
  1281. width: 30%;
  1282. float: right;
  1283. }
  1284. .partInfo .title img {
  1285. float: left;
  1286. margin-right: 0.2rem;
  1287. }
  1288. .cubelist {
  1289. width: 100%;
  1290. overflow: hidden;
  1291. display: block;
  1292. margin: 0 auto;
  1293. }
  1294. .teamScore {
  1295. width: 100%;
  1296. overflow: hidden;
  1297. display: block;
  1298. margin: 0 auto;
  1299. }
  1300. .teamScore div {
  1301. width: 50%;
  1302. float: left;
  1303. text-align: center;
  1304. color: #fff;
  1305. font-size: 0.6rem;
  1306. }
  1307. .fastJump {
  1308. animation: mymove 1s infinite;
  1309. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  1310. animation-direction: alternate; /*轮流反向播放动画。*/
  1311. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1312. /* Safari 和 Chrome */
  1313. -webkit-animation: mymove 1s infinite;
  1314. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1315. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1316. }
  1317. .slowJump {
  1318. animation: mymove 2s infinite;
  1319. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  1320. animation-direction: alternate; /*轮流反向播放动画。*/
  1321. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1322. /* Safari 和 Chrome */
  1323. -webkit-animation: mymove 3s infinite;
  1324. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1325. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1326. }
  1327. /*two*/
  1328. .pk_container li.two {
  1329. width: 100%;
  1330. overflow: hidden;
  1331. display: block;
  1332. }
  1333. .pk_container li.two .user {
  1334. height: 1.75rem;
  1335. overflow: hidden;
  1336. }
  1337. .two .bottomLi {
  1338. width: 98%;
  1339. font-size: 0.35rem;
  1340. margin-top: 0rem;
  1341. text-align: center;
  1342. }
  1343. .two .bottomLi img {
  1344. width: 0.4rem;
  1345. height: 0.4rem;
  1346. margin-top: 0.15rem;
  1347. }
  1348. .two .bottomLi .btck img {
  1349. width: 0.4rem;
  1350. margin-top: 0.1rem;
  1351. }
  1352. .two .bottomLi span {
  1353. line-height: 0.8rem;
  1354. text-indent: 0.1rem;
  1355. }
  1356. .two .bottomLi .btcla {
  1357. width: 30%;
  1358. }
  1359. .two .bottomLi .btck {
  1360. width: 33%;
  1361. padding-left: 3%;
  1362. }
  1363. .two .bottomLi .step {
  1364. width: 26%;
  1365. padding-right: 0%;
  1366. }
  1367. .two .cla em.plus {
  1368. position: relative;
  1369. left: -0.3rem
  1370. }
  1371. .two .lhj span.plus {
  1372. position: relative;
  1373. left: 1.3rem
  1374. }
  1375. .two .bottomLi .btck img {
  1376. width: 0.5rem;
  1377. height: 0.5rem;
  1378. margin-top: 0.12rem;
  1379. }
  1380. /*three*/
  1381. .pk_container li.three {
  1382. width: 90%;
  1383. overflow: hidden;
  1384. display: block;
  1385. margin: 0 auto;
  1386. margin-bottom: 0.1rem;
  1387. float: none;
  1388. }
  1389. .three .bottomLi {
  1390. width: 98%;
  1391. font-size: 0.35rem;
  1392. margin-top: 0rem;
  1393. text-align: center;
  1394. }
  1395. .three .circle {
  1396. width: 1.2rem;
  1397. height: 1.2rem;
  1398. }
  1399. .three .circle img {
  1400. width: 0.9rem;
  1401. height: 0.9rem;
  1402. }
  1403. .three .user {
  1404. height: 1.2rem;
  1405. overflow: hidden;
  1406. }
  1407. .three .ult em div {
  1408. line-height: 1.2rem;
  1409. }
  1410. .three .urt em {
  1411. line-height: 1.2rem;
  1412. }
  1413. .three .bottomLi img {
  1414. width: 0.4rem;
  1415. height: 0.4rem;
  1416. margin-top: 0.15rem;
  1417. }
  1418. .three .bottomLi .btck img {
  1419. width: 0.4rem;
  1420. margin-top: 0.1rem;
  1421. }
  1422. .three .bottomLi span {
  1423. line-height: 0.8rem;
  1424. text-indent: 0.1rem;
  1425. }
  1426. .three .bottomLi .btcla {
  1427. width: 30%;
  1428. }
  1429. .three .bottomLi .btck {
  1430. width: 33%;
  1431. padding-left: 3%;
  1432. }
  1433. .three .bottomLi .step {
  1434. width: 28%;
  1435. padding-right: 0%;
  1436. }
  1437. .three .cla em.plus {
  1438. position: relative;
  1439. left: -0.3rem
  1440. }
  1441. .three .lhj span.plus {
  1442. position: relative;
  1443. left: 1.3rem
  1444. }
  1445. .three .bottomLi .btck img {
  1446. width: 0.5rem;
  1447. height: 0.5rem;
  1448. margin-top: 0.12rem;
  1449. }
  1450. /*four*/
  1451. .pk_container .four {
  1452. width: 49%;
  1453. float: left;
  1454. /*margin-top: 0.4rem;*/
  1455. /*margin-bottom: 0.5rem;*/
  1456. }
  1457. .four .bg {
  1458. width: 96%;
  1459. overflow: hidden;
  1460. display: block;
  1461. margin: 0 auto;
  1462. }
  1463. .pk_container li.four .bg > h5 {
  1464. font-size: 0.25rem;
  1465. }
  1466. .four .user .ult span {
  1467. font-size: 0.2rem;
  1468. }
  1469. .four .user .ult em div {
  1470. width: 90%;
  1471. margin-right: 0;
  1472. font-size: 0.5rem;
  1473. line-height: 1rem;
  1474. padding-right: 0.2rem;
  1475. }
  1476. .four .user .ult s {
  1477. font-size: 0.2rem;
  1478. line-height: 1rem;
  1479. }
  1480. .four .circle {
  1481. width: 1rem;
  1482. height: 1rem;
  1483. }
  1484. .four .user .umd img {
  1485. width: 0.8rem;
  1486. height: 0.8rem;
  1487. }
  1488. .four .urt img {
  1489. width: 0.15rem;
  1490. height: 0.15rem;
  1491. top: -0.8rem;
  1492. }
  1493. .four .urt em {
  1494. font-size: 0.4rem;
  1495. line-height: 1rem;
  1496. }
  1497. .four .bottomLi {
  1498. width: 100%;
  1499. text-indent: 0.1rem;
  1500. font-size: 0.2rem;
  1501. }
  1502. .four .bottomLi img {
  1503. width: 0.2rem;
  1504. height: 0.2rem;
  1505. }
  1506. .four .bottomLi span {
  1507. width: 60%;
  1508. }
  1509. .four .user {
  1510. height: 1.2rem;
  1511. overflow: hidden;
  1512. }
  1513. .four .nameMd {
  1514. font-size: 0.2rem;
  1515. }
  1516. /*six*/
  1517. /*eight*/
  1518. .eight {
  1519. width: 50%;
  1520. float: left;
  1521. }
  1522. .eight .bg {
  1523. width: 96%;
  1524. overflow: hidden;
  1525. display: block;
  1526. margin: 0 auto;
  1527. }
  1528. .pk_container li.eight .bg > h5 {
  1529. font-size: 0.25rem;
  1530. margin: 0.01rem 0;
  1531. }
  1532. .eight .user .ult span {
  1533. font-size: 0.2rem;
  1534. }
  1535. .eight .user .ult em div {
  1536. width: 90%;
  1537. padding-right: 0.2rem;
  1538. margin-right: 0rem;
  1539. font-size: 0.4rem;
  1540. line-height: 0.8rem;
  1541. }
  1542. .eight .user .ult s {
  1543. font-size: 0.2rem;
  1544. line-height: 1.3rem;
  1545. }
  1546. .eight .circle {
  1547. width: 1rem;
  1548. height: 1rem;
  1549. }
  1550. .eight .user .umd img {
  1551. width: 0.5rem;
  1552. height: 0.5rem;
  1553. }
  1554. .eight .urt img {
  1555. width: 0.15rem;
  1556. height: 0.15rem;
  1557. top: -0.6rem;
  1558. right: 0.2rem;
  1559. }
  1560. .eight .urt em {
  1561. font-size: 0.3rem;
  1562. line-height: 0.8rem;
  1563. padding-right: 45%;
  1564. }
  1565. .eight .bottomLi {
  1566. width: 100%;
  1567. text-indent: 0.1rem;
  1568. font-size: 0.2rem;
  1569. }
  1570. .eight .bottomLi img {
  1571. width: 0.2rem;
  1572. height: 0.2rem;
  1573. }
  1574. .eight .bottomLi span {
  1575. width: 60%;
  1576. }
  1577. .eight .user {
  1578. height: 0.85rem;
  1579. overflow: hidden;
  1580. }
  1581. .eight .nameMd {
  1582. font-size: 0.2rem;
  1583. }
  1584. /*color*/
  1585. .user .umd img.blue {
  1586. border-color: #028FE1;
  1587. }
  1588. .user .umd img.violet {
  1589. border-color: #6D26FA;
  1590. }
  1591. .user .umd img.green {
  1592. border-color: #059F00;
  1593. }
  1594. .user .umd img.yellow {
  1595. border-color: #B5C700;
  1596. }
  1597. .user .umd img.brown {
  1598. border-color: #EA8813;
  1599. }
  1600. .user .umd img.red {
  1601. border-color: #CF1122;
  1602. }
  1603. .birth {
  1604. position: relative;
  1605. top: -2rem;
  1606. width: 1.7rem;
  1607. height: 1px;
  1608. display: block;
  1609. margin: 0 auto;
  1610. }
  1611. .birth img.birthCrow {
  1612. position: relative;
  1613. top: 0.2rem;
  1614. width: 1.1rem;
  1615. height: 0.4rem;
  1616. overflow: hidden;
  1617. display: block;
  1618. margin: 0 auto;
  1619. border: none;
  1620. }
  1621. .birth img.birthText {
  1622. position: relative;
  1623. top: 1rem;
  1624. width: 1.4rem;
  1625. height: 0.6rem;
  1626. overflow: hidden;
  1627. display: block;
  1628. margin: 0 auto;
  1629. border: none;
  1630. }
  1631. .three .birth img.birthCrow {
  1632. top: 0.7rem;
  1633. width: 0.8rem;
  1634. height: 0.3rem;
  1635. }
  1636. .three .birth img.birthText {
  1637. top: 1.1rem;
  1638. width: 1.3rem;
  1639. height: 0.6rem;
  1640. }
  1641. .four .birth {
  1642. width: 1rem;
  1643. }
  1644. .four .birth img.birthCrow {
  1645. top: 0.9rem;
  1646. width: 0.7rem;
  1647. height: 0.3rem;
  1648. }
  1649. .four .birth img.birthText {
  1650. top: 1.3rem;
  1651. width: 0.8rem;
  1652. height: 0.35rem;
  1653. }
  1654. .eight .birth {
  1655. width: 1rem;
  1656. }
  1657. .eight .birth img.birthCrow {
  1658. top: 1.25rem;
  1659. width: 0.5rem;
  1660. height: 0.2rem;
  1661. }
  1662. .eight .birth img.birthText {
  1663. top: 1.5rem;
  1664. width: 0.7rem;
  1665. height: 0.3rem;
  1666. }
  1667. /*isPrivate*/
  1668. .isPrivate {
  1669. position: relative;
  1670. float: right;
  1671. right: -0.35rem;
  1672. width: 55%;
  1673. height: 1px;
  1674. display: block;
  1675. margin: 0 auto;
  1676. overflow: visible;
  1677. }
  1678. .isPrivate i {
  1679. overflow: hidden;
  1680. display: block;
  1681. margin: 0 auto;
  1682. margin-top: 0.2rem;
  1683. width: 0.8rem !important;
  1684. height: 0.8rem !important;
  1685. border: none !important;
  1686. background: url("../static/img/privateSign.svg");
  1687. background-size: 100% 100%;
  1688. background-position: top center;
  1689. }
  1690. .two .isPrivate {
  1691. top: -2rem;
  1692. }
  1693. .three .isPrivate {
  1694. top: -1.4rem;
  1695. right: -0.1rem;
  1696. }
  1697. .three .isPrivate i {
  1698. width: 0.6rem !important;
  1699. height: 0.6rem !important;
  1700. }
  1701. .four .isPrivate {
  1702. top: -1.28rem;
  1703. right: -0.27rem;
  1704. }
  1705. .four .isPrivate i {
  1706. width: 0.4rem !important;
  1707. height: 0.4rem !important;
  1708. }
  1709. .eight .isPrivate {
  1710. top: -1rem;
  1711. right: -0.1rem;
  1712. }
  1713. .eight .isPrivate i {
  1714. width: 0.4rem !important;
  1715. height: 0.4rem !important;
  1716. }
  1717. </style>