threepk.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919
  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("../assets/img/threepk/redCube.svg");
  980. background-size: 100% 100%;
  981. }
  982. .cubes.bcube {
  983. background: url("../assets/img/threepk/blueCube.svg");
  984. background-size: 100% 100%;
  985. }
  986. .cubes.ycube {
  987. background: url("../assets/img/threepk/yellowcube.svg");
  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>