threepk.vue 52 KB

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