threepk.vue 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883
  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.ActivePercent != 0 && 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.ActivePercent != 0 && 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.ActivePercent != 0 && 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: 4,
  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. },
  486. // 获取上课学生信息
  487. GetgetUserList() {
  488. let that = this;
  489. let param = {
  490. token: localStorage.token,
  491. eqSn: localStorage.eqSn
  492. };
  493. let postdata = qs.stringify(param);
  494. getHello(postdata).then(res => {
  495. let json = res;
  496. if (json.Code == 0) {
  497. if (!json.Dp) {
  498. // that.$message.error('没有获取到课程信息');
  499. return false
  500. } else {
  501. that.ReadLessonInfo(json.Dp);
  502. }
  503. that.UniteBreak(json.Rs);
  504. // 人口总数
  505. that.num = json.Rs.length ? json.Rs.length : 0;
  506. this.ClacClassTime();
  507. } else {
  508. // 已下课
  509. console.log(json.Code);
  510. if (json.Code == '999') {
  511. // that.$router.push({path: '/3pkRank'});
  512. } else {
  513. // 已出错
  514. that.$message.error(json.Memo);
  515. }
  516. }
  517. })
  518. },
  519. // 动态计算排版
  520. giveClassName(res, type) {
  521. let that = this;
  522. let numberClass = '';
  523. switch (true) {
  524. case parseInt(res.length) <= 2 && parseInt(res.length) >= 0:
  525. numberClass = 'two';
  526. break;
  527. case parseInt(res.length) <= 4 && parseInt(res.length) >= 3:
  528. numberClass = 'four';
  529. break;
  530. case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
  531. numberClass = 'eight';
  532. break;
  533. case parseInt(res.length) > 6:
  534. numberClass = 'eight';
  535. break;
  536. }
  537. if (type == 1) {
  538. that.RedstudentsClassName = numberClass;
  539. }
  540. if (type == 2) {
  541. that.BluestudentsClassName = numberClass;
  542. }
  543. if (type == 3) {
  544. that.YellowstudentsClassName = numberClass;
  545. }
  546. },
  547. // 计算团队竞技课持续时间
  548. ClacClassTime() {
  549. let BeginTime = new Date(globalcurrent() + ' ' + this.BeginTime);//结束时间
  550. let nowDate = new Date();
  551. let date = new Date(nowDate - BeginTime - 8 * 60 * 60 * 1000);//减掉东八区时区问题
  552. let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
  553. let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
  554. let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
  555. this.classInfo.endTime = h + m + s;
  556. },
  557. // // 计算双方对抗强度加总
  558. // CalcTeamCk() {
  559. // let that = this;
  560. // let Redsum = 0;
  561. // let Bluesum = 0;
  562. // let sumMax = 0;
  563. // if (that.Redstudents) {
  564. // that.Redstudents.map(function (i) {
  565. // Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
  566. // });
  567. // }
  568. // if (that.Bluestudents) {
  569. // that.Bluestudents.map(function (i) {
  570. // Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
  571. // });
  572. // }
  573. // that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
  574. // that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
  575. //
  576. // sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
  577. // that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
  578. // },
  579. // 启动一个成就彩蛋
  580. createEgg() {
  581. let that = this;
  582. let param = {
  583. token: localStorage.token,
  584. eqSn: localStorage.eqSn
  585. };
  586. let postdata = qs.stringify(param);
  587. getRecordBreak(postdata).then(res => {
  588. let json = res;
  589. if (json.Code == 0) {
  590. // 欢迎新学生时不显示彩蛋
  591. if (that.studentInfo.dialogVisible == true) {
  592. console.log('正在显示新学生');
  593. return false
  594. }else{
  595. this.OpenEgg(json);
  596. }
  597. } else {
  598. // 并没有人破记录
  599. if (json.Code == 999) return false;
  600. if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
  601. }
  602. })
  603. },
  604. // 欢迎新同学
  605. createNewStudent() {
  606. let that = this;
  607. let param = {
  608. token: localStorage.token,
  609. eqSn: localStorage.eqSn
  610. };
  611. let postdata = qs.stringify(param);
  612. getNewUser(postdata).then(res => {
  613. let json = res;
  614. if (json.Code == 0) {
  615. console.log('来新生了');
  616. // 显示彩蛋时不欢迎新学生
  617. if (that.toperInfo.dialogVisible == true) {
  618. console.log('正在显示彩蛋');
  619. return false
  620. }else{
  621. that.OpenStudent(json.Rs);
  622. }
  623. } else {
  624. // 并没有人破记录
  625. if (json.Code == 999) return false;
  626. if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
  627. }
  628. })
  629. },
  630. OpenEgg(msg) {
  631. this.toperInfo.toper = msg.Rs;
  632. this.toperInfo.dialogVisible = true;
  633. // 倒计时5秒自动关闭
  634. let that = this;
  635. this.totalTime = 4;
  636. let clock = window.setInterval(() => {
  637. this.totalTime--;
  638. if (parseInt(this.totalTime) < 0) {
  639. that.toperInfo.dialogVisible = false;
  640. clearInterval(clock);
  641. }
  642. }, 1000)
  643. },
  644. OpenStudent(msg) {
  645. let that = this;
  646. that.studentInfo.Rs = msg;
  647. that.studentInfo.dialogVisible = true;
  648. this.studentInfo.percent = 0;
  649. // 倒计时5秒自动关闭
  650. this.studentTime = 15;
  651. let clock = window.setInterval(() => {
  652. this.studentTime--;
  653. let num = (15 - this.studentTime) / 15 * 100;
  654. this.studentInfo.percent = parseInt(num) > 100 ? 100 : num;
  655. console.log('num' + num);
  656. if (parseInt(this.studentTime) <= 0) {
  657. that.studentInfo.dialogVisible = false;
  658. clearInterval(clock);
  659. }
  660. }, 1000)
  661. },
  662. // 当前课程状态
  663. curgetClassStat() {
  664. let that = this;
  665. let param = {
  666. token: localStorage.token,
  667. eqSn: localStorage.eqSn
  668. };
  669. let postdata = qs.stringify(param);
  670. getClassStat(postdata).then(res => {
  671. let json = res;
  672. if (json.Code == 0) {
  673. // 没开课
  674. if (json.ClassOn == 0) {
  675. console.log("已下课");
  676. // 0: 下课 团课/私教 排名
  677. // 1:团课/私教 todo
  678. // 2:竞技课2PK
  679. // 3:竞技课3PK
  680. that.$router.push({path: '/3pkRank'});
  681. console.log('json.dp' + json.dp);
  682. switch (parseInt(json.dp)) {
  683. case 2:
  684. that.$router.push({path: '/3pkRank'});
  685. break;
  686. case 3:
  687. that.$router.push({path: '/3pkRank'});
  688. break;
  689. }
  690. }
  691. } else {
  692. // that.$message.error(json.Memo);
  693. }
  694. })
  695. },
  696. },
  697. filters: {
  698. fmtNum(val) {
  699. if (val == 0) {
  700. return '--'
  701. } else {
  702. if (parseInt(val) < 0) return 0;
  703. if (parseInt(val) > 0) return val
  704. }
  705. },
  706. fmtFloat(val) {
  707. if (val == 0) {
  708. return '0.0'
  709. } else {
  710. return parseFloat(val).toFixed(1);
  711. }
  712. },
  713. fmtInt(val) {
  714. if (val == 0) {
  715. return '0'
  716. } else {
  717. return parseInt(val);
  718. }
  719. },
  720. max100(val) {
  721. if (val <= 100) {
  722. return val
  723. } else {
  724. return 100
  725. }
  726. }
  727. },
  728. components: {
  729. Headside, newRecord,newStudent,power
  730. }
  731. }
  732. </script>
  733. <style scoped>
  734. @import "../assets/css/bg.css";
  735. .pages {
  736. position: absolute;
  737. top: 0;
  738. left: 0;
  739. right: 0;
  740. bottom: 0;
  741. width: 100%;
  742. overflow: hidden;
  743. display: block;
  744. margin: 0 auto;
  745. background-color: #028fe1;
  746. background: url("../assets/img/threepk/threepkbg.png");
  747. background-size: 100%;
  748. background-repeat: no-repeat;
  749. }
  750. * {
  751. font-family: vista;
  752. }
  753. ul, li {
  754. list-style: none;
  755. margin: 0;
  756. padding: 0;
  757. }
  758. em {
  759. font-style: normal;
  760. }
  761. .pk-detail-con {
  762. /*position: absolute;*/
  763. position: relative;
  764. top: 0rem;
  765. width: 100%;
  766. height: 0.6rem;
  767. display: block;
  768. margin: 0 auto;
  769. padding-top: 0.35rem;
  770. overflow: hidden;
  771. }
  772. .progress {
  773. width: 100%;
  774. height: 0.3rem;
  775. overflow: visible;
  776. background-color: #04A6EE;
  777. border-radius: 19px;
  778. background-image: url("../static/img/pk/blue.png");
  779. /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
  780. background-size: 40px 40px;
  781. }
  782. .progress-bar {
  783. float: left;
  784. height: 0.3rem;
  785. text-align: left;
  786. background-color: #F75E07;
  787. -moz-transition: width .6s ease;
  788. -webkit-transition: width .6s ease;
  789. transition: width .6s ease;
  790. background-image: url("../static/img/pk/red.png");
  791. background-size: 40px 40px;
  792. /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
  793. /*background-size: 40px 40px;*/
  794. }
  795. .right-bar {
  796. float: right;
  797. position: relative;
  798. right: 0;
  799. top: 0rem;
  800. height: 0.3rem;
  801. text-align: right;
  802. background-color: #DBB900;
  803. -moz-transition: width .6s ease;
  804. -webkit-transition: width .6s ease;
  805. transition: width .6s ease;
  806. background-image: url("../static/img/pk/red.png");
  807. background-size: 40px 40px;
  808. }
  809. .progress, .progress-bar {
  810. /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
  811. }
  812. .lightning {
  813. position: relative;
  814. top: -0.5rem;
  815. width: 1rem;
  816. height: 1.3rem;
  817. float: right;
  818. margin-right: -0.5rem;
  819. background: url("../static/img/pk/light.png") no-repeat center;
  820. background-size: 100%;
  821. }
  822. .right-bar .lightning {
  823. position: relative;
  824. top: -0.5rem;
  825. width: 1rem;
  826. height: 1.3rem;
  827. margin-right: -0.5rem;
  828. background: url("../static/img/pk/light.png") no-repeat center;
  829. background-size: 100%;
  830. left: -0.4rem;
  831. float: left;
  832. }
  833. .lp_icon {
  834. position: absolute;
  835. left: -0.1rem;
  836. top: -0.3rem;
  837. width: 0.8rem;
  838. height: 0.8rem;
  839. float: left;
  840. }
  841. .rp_icon {
  842. position: absolute;
  843. right: 0;
  844. top: -0.3rem;
  845. width: 0.8rem;
  846. height: 0.8rem;
  847. float: right;
  848. }
  849. .lessonInfo {
  850. width: 100%;
  851. overflow: hidden;
  852. display: block;
  853. margin: 0 auto;
  854. }
  855. .lessonInfo .lt {
  856. width: 30%;
  857. float: left;
  858. }
  859. .lessonInfo .md {
  860. width: 40%;
  861. float: left;
  862. }
  863. .lessonInfo .rt {
  864. width: 30%;
  865. float: right;
  866. }
  867. .bottomInfo {
  868. width: 100%;
  869. overflow: hidden;
  870. display: block;
  871. margin: 0 auto;
  872. }
  873. .bottomInfo .names {
  874. width: 70%;
  875. height: 0.6rem;
  876. border-radius: 36px;
  877. background: #0925b4;
  878. border: 2px solid rgba(255, 255, 255, 0.5);
  879. font-size: 0.4rem;
  880. font-family: Roboto;
  881. font-weight: normal;
  882. text-align: center;
  883. color: #e1ff00;
  884. overflow: hidden;
  885. display: block;
  886. margin: 0 auto;
  887. margin-top: 0.2rem;
  888. }
  889. .teacher {
  890. width: 100%;
  891. overflow: hidden;
  892. display: block;
  893. margin: 0 auto;
  894. color: #fff;
  895. font-size: 0.3rem;
  896. padding-top: 0.2rem;
  897. }
  898. .teacher span {
  899. width: 100%;
  900. overflow: hidden;
  901. display: block;
  902. margin: 0 auto;
  903. }
  904. .classTime {
  905. width: 100%;
  906. overflow: hidden;
  907. display: block;
  908. margin: 0 auto;
  909. color: #fff;
  910. text-align: center;
  911. }
  912. .cubelist {
  913. width: 100%;
  914. overflow: hidden;
  915. display: block;
  916. margin: 0 auto;
  917. }
  918. .cubelist .cubes {
  919. width: 20%;
  920. height: 1.5rem;
  921. overflow: hidden;
  922. float: left;
  923. background-position: top center;
  924. }
  925. .cubelist .vs {
  926. width: 20%;
  927. height: 0.6rem;
  928. overflow: hidden;
  929. float: left;
  930. padding-top: 0.4rem;
  931. }
  932. .cubelist .cubes em {
  933. width: 80%;
  934. overflow: hidden;
  935. display: block;
  936. margin: 0 auto;
  937. text-align: center;
  938. font-size: 0.2rem;
  939. font-style: normal;
  940. color: #fff;
  941. line-height: 1.5rem;
  942. }
  943. .cubes.rcube {
  944. background: url("../assets/img/threepk/redCube.svg");
  945. background-size: 100% 100%;
  946. }
  947. .cubes.bcube {
  948. background: url("../assets/img/threepk/blueCube.svg");
  949. background-size: 100% 100%;
  950. }
  951. .cubes.ycube {
  952. background: url("../assets/img/threepk/yellowcube.svg");
  953. background-size: 100% 100%;
  954. }
  955. .teamScore {
  956. width: 100%;
  957. overflow: hidden;
  958. display: block;
  959. margin: 0 auto;
  960. }
  961. .lessonInfo .teamScore div {
  962. width: 25%;
  963. float: left;
  964. color: #fff;
  965. font-size: 0.4rem;
  966. text-align: left;
  967. }
  968. .lessonInfo .teamScore .md {
  969. width: 50%;
  970. text-align: center;
  971. }
  972. .lessonInfo .teamScore .rt {
  973. float: right;
  974. text-align: right;
  975. }
  976. .lessonInfo .teamScore em {
  977. font-size: 0.2rem;
  978. }
  979. .pk_container {
  980. width: 100%;
  981. overflow: hidden;
  982. display: block;
  983. margin: 0 auto;
  984. }
  985. .pk_container .pl_lt {
  986. width: 33.333%;
  987. float: left;
  988. }
  989. .pk_container .pl_rt {
  990. width: 33.333%;
  991. float: right;
  992. }
  993. .pk_container .pl_md {
  994. width: 33.333%;
  995. float: left;
  996. }
  997. .pk_container ul {
  998. width: 98%;
  999. overflow: hidden;
  1000. display: block;
  1001. margin: 0 auto;
  1002. padding-top: 0.01rem;
  1003. }
  1004. .pk_container li {
  1005. overflow: hidden;
  1006. color: #fff;
  1007. margin-bottom: 0.1rem;
  1008. }
  1009. .pk_container .lt li {
  1010. overflow: hidden;
  1011. }
  1012. .pk_container .rt li {
  1013. overflow: hidden;
  1014. }
  1015. .pk_container .pl_lt .bg {
  1016. border: 2px solid rgba(255, 143, 122, 0.5);
  1017. background: rgba(194, 36, 6, 0.5);
  1018. }
  1019. .pk_container .pl_md .bg {
  1020. border: 2px solid rgba(80, 115, 255, 0.5);
  1021. background: rgba(0, 30, 152, 0.5);
  1022. }
  1023. .pk_container .pl_rt .bg {
  1024. border: 2px solid rgba(255, 239, 149, 0.5);
  1025. /*background: rgba(255, 230, 0, 0.5);*/
  1026. /*background: rgba(233, 192, 12, 0.9);*/
  1027. background: rgba(245,195,0,0.9);
  1028. }
  1029. .pk_container li .bg > h5 {
  1030. font-family: vista;
  1031. font-weight: 500;
  1032. font-size: 0.3rem;
  1033. text-align: center;
  1034. color: #fff;
  1035. margin: 0;
  1036. margin-top: 0.1rem;
  1037. margin-bottom: 0.1rem;
  1038. }
  1039. .bg > h5 div {
  1040. float: left;
  1041. width: 20%;
  1042. text-align: left;
  1043. text-indent: 0.1rem;
  1044. }
  1045. .bg > h5 .nameMd {
  1046. width: 60%;
  1047. text-align: center;
  1048. text-indent: 0;
  1049. }
  1050. .pk_container li .user {
  1051. width: 100%;
  1052. overflow: hidden;
  1053. display: block;
  1054. margin: 0 auto;
  1055. }
  1056. .pk_container .user .ult {
  1057. width: 33.333%;
  1058. float: left;
  1059. overflow: visible;
  1060. flex-direction: column;
  1061. }
  1062. .pk_container .user .umd {
  1063. width: 33.333%;
  1064. float: left;
  1065. overflow: visible;
  1066. flex-direction: column
  1067. }
  1068. .pk_container .user .urt {
  1069. width: 33.333%;
  1070. float: right;
  1071. flex-direction: column;
  1072. }
  1073. .centerLi .slowJump {
  1074. animation: mymove 3s infinite;
  1075. -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
  1076. animation-direction: alternate; /*轮流反向播放动画。*/
  1077. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1078. /* Safari 和 Chrome */
  1079. -webkit-animation: mymove 3s infinite;
  1080. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1081. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1082. }
  1083. .user .ult span {
  1084. width: 100%;
  1085. overflow: hidden;
  1086. display: block;
  1087. margin: 0 auto;
  1088. font-family: "Source Han Sans CN";
  1089. font-weight: normal;
  1090. font-size: 0.3rem;
  1091. text-align: center;
  1092. }
  1093. .user .ult em {
  1094. width: 100%;
  1095. overflow: hidden;
  1096. display: block;
  1097. margin: 0 auto;
  1098. }
  1099. .user .ult em div {
  1100. width: 80%;
  1101. overflow: hidden;
  1102. float: right;
  1103. text-align: right;
  1104. padding-right: 0.3rem;
  1105. font-size: 0.8rem;
  1106. line-height: 1.6rem;
  1107. }
  1108. .user .ult s {
  1109. position: relative;
  1110. top: -1.2rem;
  1111. right: 0rem;
  1112. float: right;
  1113. font-family: HeadLineA;
  1114. font-weight: normal;
  1115. font-size: 0.3rem;
  1116. text-align: center;
  1117. text-decoration: none;
  1118. }
  1119. .circle {
  1120. width: 1.73rem;
  1121. height: 1.73rem;
  1122. overflow: visible;
  1123. display: block;
  1124. margin: 0 auto;
  1125. border-radius: 33rem;
  1126. padding-top: 0.09rem;
  1127. }
  1128. .user .umd img {
  1129. width: 1.45rem;
  1130. height: 1.45rem;
  1131. overflow: visible;
  1132. display: block;
  1133. margin: 0 auto;
  1134. border-radius: 33rem;
  1135. border: 0.1rem solid #B9CB01;
  1136. }
  1137. .urt img {
  1138. position: relative;
  1139. right: 0.1rem;
  1140. top: -1.2rem;
  1141. width: 0.35rem;
  1142. height: 0.35rem;
  1143. float: right;
  1144. }
  1145. .urt em {
  1146. overflow: hidden;
  1147. display: block;
  1148. margin: 0 auto;
  1149. font-family: HeadLineA;
  1150. font-weight: normal;
  1151. font-size: 0.7rem;
  1152. letter-spacing: -0.05em;
  1153. text-align: right;
  1154. font-style: normal;
  1155. line-height: 1.5rem;
  1156. padding-right: 25%;
  1157. }
  1158. .bottomLi {
  1159. width: 98%;
  1160. overflow: hidden;
  1161. display: block;
  1162. margin: 0 auto;
  1163. font-weight: normal;
  1164. color: #fff;
  1165. text-align: center;
  1166. font-size: 0.4rem;
  1167. text-indent: 0.2rem;
  1168. }
  1169. .bottomLi img {
  1170. float: left;
  1171. margin-left: 10%;
  1172. }
  1173. .bottomLi span {
  1174. float: left;
  1175. text-align: left;
  1176. }
  1177. .bottomLi .btcla {
  1178. width: 30%;
  1179. float: left;
  1180. text-align: left;
  1181. }
  1182. .bottomLi .btck {
  1183. width: 40%;
  1184. float: left;
  1185. text-align: left;
  1186. }
  1187. .bottomLi .step {
  1188. width: 30%;
  1189. float: right;
  1190. text-align: left;
  1191. }
  1192. @keyframes mymove {
  1193. 0% {
  1194. transform: scale(1); /*开始为原始大小*/
  1195. }
  1196. 25% {
  1197. transform: scale(1.2); /*放大1.1倍*/
  1198. }
  1199. 50% {
  1200. transform: scale(1);
  1201. }
  1202. 75% {
  1203. transform: scale(1.2);
  1204. }
  1205. }
  1206. @-webkit-keyframes mymove /*Safari and Chrome*/
  1207. {
  1208. 0% {
  1209. transform: scale(1); /*开始为原始大小*/
  1210. }
  1211. 25% {
  1212. transform: scale(1.2); /*放大1.1倍*/
  1213. }
  1214. 50% {
  1215. transform: scale(1);
  1216. }
  1217. 75% {
  1218. transform: scale(1.2);
  1219. }
  1220. }
  1221. .partInfo {
  1222. width: 100%;
  1223. overflow: hidden;
  1224. display: block;
  1225. margin: 0 auto;
  1226. padding-top: 1rem;
  1227. }
  1228. .partInfo .rp, .partInfo .bp {
  1229. width: 50%;
  1230. float: left;
  1231. }
  1232. .partInfo .title {
  1233. width: 33%;
  1234. overflow: hidden;
  1235. display: block;
  1236. margin: 0;
  1237. font-size: 0.4rem;
  1238. color: #fff;
  1239. text-align: left;
  1240. }
  1241. .rtitle {
  1242. float: left;
  1243. padding-left: 0.25rem;
  1244. }
  1245. .partInfo .btitle {
  1246. width: 30%;
  1247. float: right;
  1248. }
  1249. .partInfo .title img {
  1250. float: left;
  1251. margin-right: 0.2rem;
  1252. }
  1253. .cubelist {
  1254. width: 100%;
  1255. overflow: hidden;
  1256. display: block;
  1257. margin: 0 auto;
  1258. }
  1259. .teamScore {
  1260. width: 100%;
  1261. overflow: hidden;
  1262. display: block;
  1263. margin: 0 auto;
  1264. }
  1265. .teamScore div {
  1266. width: 50%;
  1267. float: left;
  1268. text-align: center;
  1269. color: #fff;
  1270. font-size: 0.6rem;
  1271. }
  1272. .fastJump {
  1273. animation: mymove 1s infinite;
  1274. -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
  1275. animation-direction: alternate; /*轮流反向播放动画。*/
  1276. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1277. /* Safari 和 Chrome */
  1278. -webkit-animation: mymove 1s infinite;
  1279. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1280. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1281. }
  1282. .slowJump {
  1283. animation: mymove 2s infinite;
  1284. -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
  1285. animation-direction: alternate; /*轮流反向播放动画。*/
  1286. animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1287. /* Safari 和 Chrome */
  1288. -webkit-animation: mymove 3s infinite;
  1289. -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
  1290. -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
  1291. }
  1292. /*two*/
  1293. .pk_container li.two {
  1294. width: 100%;
  1295. overflow: hidden;
  1296. display: block;
  1297. }
  1298. .pk_container li.two .user {
  1299. height: 1.75rem;
  1300. overflow: hidden;
  1301. }
  1302. .two .bottomLi {
  1303. width: 98%;
  1304. font-size: 0.35rem;
  1305. margin-top: 0rem;
  1306. text-align: center;
  1307. }
  1308. .two .bottomLi img {
  1309. width: 0.4rem;
  1310. height: 0.4rem;
  1311. margin-top: 0.15rem;
  1312. }
  1313. .two .bottomLi .btck img {
  1314. width: 0.4rem;
  1315. margin-top: 0.1rem;
  1316. }
  1317. .two .bottomLi span {
  1318. line-height: 0.8rem;
  1319. text-indent: 0.1rem;
  1320. }
  1321. .two .bottomLi .btcla {
  1322. width: 30%;
  1323. }
  1324. .two .bottomLi .btck {
  1325. width: 33%;
  1326. padding-left: 3%;
  1327. }
  1328. .two .bottomLi .step {
  1329. width: 26%;
  1330. padding-right: 0%;
  1331. }
  1332. .two .cla em.plus {
  1333. position: relative;
  1334. left: -0.3rem
  1335. }
  1336. .two .lhj span.plus {
  1337. position: relative;
  1338. left: 1.3rem
  1339. }
  1340. .two .bottomLi .btck img {
  1341. width: 0.5rem;
  1342. height: 0.5rem;
  1343. margin-top: 0.12rem;
  1344. }
  1345. /*three*/
  1346. .pk_container li.three {
  1347. width: 90%;
  1348. overflow: hidden;
  1349. display: block;
  1350. margin: 0 auto;
  1351. margin-bottom: 0.1rem;
  1352. float: none;
  1353. }
  1354. .three .bottomLi {
  1355. width: 98%;
  1356. font-size: 0.35rem;
  1357. margin-top: 0rem;
  1358. text-align: center;
  1359. }
  1360. .three .circle {
  1361. width: 1.2rem;
  1362. height: 1.2rem;
  1363. }
  1364. .three .circle img {
  1365. width: 0.9rem;
  1366. height: 0.9rem;
  1367. }
  1368. .three .user {
  1369. height: 1.2rem;
  1370. overflow: hidden;
  1371. }
  1372. .three .ult em div {
  1373. line-height: 1.2rem;
  1374. }
  1375. .three .urt em {
  1376. line-height: 1.2rem;
  1377. }
  1378. .three .bottomLi img {
  1379. width: 0.4rem;
  1380. height: 0.4rem;
  1381. margin-top: 0.15rem;
  1382. }
  1383. .three .bottomLi .btck img {
  1384. width: 0.4rem;
  1385. margin-top: 0.1rem;
  1386. }
  1387. .three .bottomLi span {
  1388. line-height: 0.8rem;
  1389. text-indent: 0.1rem;
  1390. }
  1391. .three .bottomLi .btcla {
  1392. width: 30%;
  1393. }
  1394. .three .bottomLi .btck {
  1395. width: 33%;
  1396. padding-left: 3%;
  1397. }
  1398. .three .bottomLi .step {
  1399. width: 28%;
  1400. padding-right: 0%;
  1401. }
  1402. .three .cla em.plus {
  1403. position: relative;
  1404. left: -0.3rem
  1405. }
  1406. .three .lhj span.plus {
  1407. position: relative;
  1408. left: 1.3rem
  1409. }
  1410. .three .bottomLi .btck img {
  1411. width: 0.5rem;
  1412. height: 0.5rem;
  1413. margin-top: 0.12rem;
  1414. }
  1415. /*four*/
  1416. .pk_container .four {
  1417. width: 49%;
  1418. float: left;
  1419. /*margin-top: 0.4rem;*/
  1420. /*margin-bottom: 0.5rem;*/
  1421. }
  1422. .four .bg {
  1423. width: 96%;
  1424. overflow: hidden;
  1425. display: block;
  1426. margin: 0 auto;
  1427. }
  1428. .pk_container li.four .bg > h5 {
  1429. font-size: 0.25rem;
  1430. }
  1431. .four .user .ult span {
  1432. font-size: 0.2rem;
  1433. }
  1434. .four .user .ult em div {
  1435. width: 90%;
  1436. margin-right: 0;
  1437. font-size: 0.5rem;
  1438. line-height: 1rem;
  1439. padding-right: 0.2rem;
  1440. }
  1441. .four .user .ult s {
  1442. font-size: 0.2rem;
  1443. line-height: 1rem;
  1444. }
  1445. .four .circle {
  1446. width: 1rem;
  1447. height: 1rem;
  1448. }
  1449. .four .user .umd img {
  1450. width: 0.8rem;
  1451. height: 0.8rem;
  1452. }
  1453. .four .urt img {
  1454. width: 0.15rem;
  1455. height: 0.15rem;
  1456. top: -0.8rem;
  1457. }
  1458. .four .urt em {
  1459. font-size: 0.4rem;
  1460. line-height: 1rem;
  1461. }
  1462. .four .bottomLi {
  1463. width: 100%;
  1464. text-indent: 0.1rem;
  1465. font-size: 0.2rem;
  1466. }
  1467. .four .bottomLi img {
  1468. width: 0.2rem;
  1469. height: 0.2rem;
  1470. }
  1471. .four .bottomLi span {
  1472. width: 60%;
  1473. }
  1474. .four .user {
  1475. height: 1.2rem;
  1476. overflow: hidden;
  1477. }
  1478. .four .nameMd {
  1479. font-size: 0.2rem;
  1480. }
  1481. /*six*/
  1482. /*eight*/
  1483. .eight {
  1484. width: 50%;
  1485. float: left;
  1486. }
  1487. .eight .bg {
  1488. width: 96%;
  1489. overflow: hidden;
  1490. display: block;
  1491. margin: 0 auto;
  1492. }
  1493. .pk_container li.eight .bg > h5 {
  1494. font-size: 0.25rem;
  1495. margin: 0.01rem 0;
  1496. }
  1497. .eight .user .ult span {
  1498. font-size: 0.2rem;
  1499. }
  1500. .eight .user .ult em div {
  1501. width: 90%;
  1502. padding-right: 0.2rem;
  1503. margin-right: 0rem;
  1504. font-size: 0.4rem;
  1505. line-height: 0.8rem;
  1506. }
  1507. .eight .user .ult s {
  1508. font-size: 0.2rem;
  1509. line-height: 1.3rem;
  1510. }
  1511. .eight .circle {
  1512. width: 1rem;
  1513. height: 1rem;
  1514. }
  1515. .eight .user .umd img {
  1516. width: 0.5rem;
  1517. height: 0.5rem;
  1518. }
  1519. .eight .urt img {
  1520. width: 0.15rem;
  1521. height: 0.15rem;
  1522. top: -0.6rem;
  1523. right: 0.2rem;
  1524. }
  1525. .eight .urt em {
  1526. font-size: 0.3rem;
  1527. line-height: 0.8rem;
  1528. padding-right: 45%;
  1529. }
  1530. .eight .bottomLi {
  1531. width: 100%;
  1532. text-indent: 0.1rem;
  1533. font-size: 0.2rem;
  1534. }
  1535. .eight .bottomLi img {
  1536. width: 0.2rem;
  1537. height: 0.2rem;
  1538. }
  1539. .eight .bottomLi span {
  1540. width: 60%;
  1541. }
  1542. .eight .user {
  1543. height: 0.85rem;
  1544. overflow: hidden;
  1545. }
  1546. .eight .nameMd {
  1547. font-size: 0.2rem;
  1548. }
  1549. /*color*/
  1550. .user .umd img.blue {
  1551. border-color: #028FE1;
  1552. }
  1553. .user .umd img.violet {
  1554. border-color: #6D26FA;
  1555. }
  1556. .user .umd img.green {
  1557. border-color: #059F00;
  1558. }
  1559. .user .umd img.yellow {
  1560. border-color: #B5C700;
  1561. }
  1562. .user .umd img.brown {
  1563. border-color: #EA8813;
  1564. }
  1565. .user .umd img.red {
  1566. border-color: #CF1122;
  1567. }
  1568. .birth {
  1569. position: relative;
  1570. top: -2rem;
  1571. width: 1.7rem;
  1572. height: 1px;
  1573. display: block;
  1574. margin: 0 auto;
  1575. }
  1576. .birth img.birthCrow {
  1577. position: relative;
  1578. top: 0.2rem;
  1579. width: 1.1rem;
  1580. height: 0.4rem;
  1581. overflow: hidden;
  1582. display: block;
  1583. margin: 0 auto;
  1584. border: none;
  1585. }
  1586. .birth img.birthText {
  1587. position: relative;
  1588. top: 1rem;
  1589. width: 1.4rem;
  1590. height: 0.6rem;
  1591. overflow: hidden;
  1592. display: block;
  1593. margin: 0 auto;
  1594. border: none;
  1595. }
  1596. .three .birth img.birthCrow {
  1597. top: 0.7rem;
  1598. width: 0.8rem;
  1599. height: 0.3rem;
  1600. }
  1601. .three .birth img.birthText {
  1602. top: 1.1rem;
  1603. width: 1.3rem;
  1604. height: 0.6rem;
  1605. }
  1606. .four .birth {
  1607. width: 1rem;
  1608. }
  1609. .four .birth img.birthCrow {
  1610. top: 0.9rem;
  1611. width: 0.7rem;
  1612. height: 0.3rem;
  1613. }
  1614. .four .birth img.birthText {
  1615. top: 1.3rem;
  1616. width: 0.8rem;
  1617. height: 0.35rem;
  1618. }
  1619. .eight .birth {
  1620. width: 1rem;
  1621. }
  1622. .eight .birth img.birthCrow {
  1623. top: 1.25rem;
  1624. width: 0.5rem;
  1625. height: 0.2rem;
  1626. }
  1627. .eight .birth img.birthText {
  1628. top: 1.5rem;
  1629. width: 0.7rem;
  1630. height: 0.3rem;
  1631. }
  1632. /*isPrivate*/
  1633. .isPrivate {
  1634. position: relative;
  1635. float: right;
  1636. right: -0.3rem;
  1637. width: 55%;
  1638. height: 1px;
  1639. display: block;
  1640. margin: 0 auto;
  1641. overflow: visible;
  1642. }
  1643. .isPrivate i {
  1644. overflow: hidden;
  1645. display: block;
  1646. margin: 0 auto;
  1647. margin-top: 0.2rem;
  1648. width: 1rem !important;
  1649. height: 1rem !important;
  1650. border: none !important;
  1651. background: url("../static/img/privateSign.svg");
  1652. background-size: 100% 100%;
  1653. background-position: top center;
  1654. }
  1655. .two .isPrivate {
  1656. top: -2rem;
  1657. }
  1658. .three .isPrivate {
  1659. top: -1.4rem;
  1660. right: -0.1rem;
  1661. }
  1662. .three .isPrivate i {
  1663. width: 0.6rem !important;
  1664. height: 0.6rem !important;
  1665. }
  1666. .four .isPrivate {
  1667. top: -1.2rem;
  1668. right: -0.2rem;
  1669. }
  1670. .four .isPrivate i {
  1671. width: 0.4rem !important;
  1672. height: 0.4rem !important;
  1673. }
  1674. .eight .isPrivate {
  1675. top: -1rem;
  1676. right: -0.1rem;
  1677. }
  1678. .eight .isPrivate i {
  1679. width: 0.4rem !important;
  1680. height: 0.4rem !important;
  1681. }
  1682. </style>