pk.vue 46 KB

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