threepk.vue 52 KB

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