Wait.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. <template>
  2. <div :class="pageStyle">
  3. <Headside></Headside>
  4. <div class="rankContainer">
  5. <div class="lt">
  6. <div class="recordMain">
  7. <el-carousel :interval="30000" height="100%">
  8. <el-carousel-item v-for="rs in recordMain">
  9. <div>
  10. <h5 v-html="rs.Title"></h5>
  11. <div class="sumContainer">
  12. <div class="sum">
  13. <s>{{rs.Result[0].Unite}}</s>
  14. <sumNumber :cur-number="rs.Result[0].Values"></sumNumber>
  15. </div>
  16. <span class="sumBg"></span>
  17. </div>
  18. </div>
  19. </el-carousel-item>
  20. </el-carousel>
  21. </div>
  22. <div class="bottom">
  23. <el-carousel :interval="15000" height="100%">
  24. <el-carousel-item v-for="Rs in bottom">
  25. <div class="topOne" v-if="Rs.Style == 'tops'">
  26. <h5>{{Rs.Title}}</h5>
  27. <ul>
  28. <li v-for="(tops,i) in Rs.Result">
  29. <div class="dgCenter">
  30. <div class="dghead">
  31. <img :id="'circle_'+i"
  32. v-bind:src="tops.Head" alt="" v-if="tops.Head">
  33. <img :id="'circle_'+i"
  34. v-bind:src="require('../static/img/people/flyhead.png')" alt=""
  35. v-if="!tops.Head">
  36. <s>{{ tops.UserName }}</s>
  37. </div>
  38. <div class="score">
  39. <em>{{ tops.Values}}</em>
  40. <span>
  41. {{tops.Message}}
  42. </span>
  43. </div>
  44. </div>
  45. </li>
  46. </ul>
  47. </div>
  48. <div class="heros" v-if="Rs.Style == 'heros'">
  49. <h5>{{Rs.Title}}</h5>
  50. <ul>
  51. <li v-for="(hero,i) in Rs.Result">
  52. <img :id="'circle_'+i"
  53. v-bind:src="hero.Head" alt="" v-if="hero.Head">
  54. <img :id="'circle_'+i"
  55. v-bind:src="require('../static/img/people/flyhead.png')"
  56. alt="" v-if="!hero.Head">
  57. <img src="../static/img/wait/boy.png" class="sex" v-if="hero.Sex == 1"/>
  58. <img src="../static/img/wait/girl.png" class="sex" v-if="hero.Sex == 2"/>
  59. <div>
  60. <em :id="'red_'+i">No.{{i+1}}</em> {{ hero.UserName }}
  61. </div>
  62. <span>{{ hero.Values }} {{hero.Unite}}</span>
  63. </li>
  64. <li v-if="Rs.Result == ''">
  65. <h5>还没有人突破记录哟~</h5>
  66. </li>
  67. </ul>
  68. </div>
  69. </el-carousel-item>
  70. </el-carousel>
  71. </div>
  72. </div>
  73. <div class="rt">
  74. <el-carousel :interval="15000" height="100%">
  75. <el-carousel-item v-for="Rs in rt">
  76. <h5>{{Rs.Title}}</h5>
  77. <ul>
  78. <li v-for="s in Rs.Result" v-if="Rs.Result">
  79. <img :src="s.Head" alt="" v-if="s.Head">
  80. <img v-bind:src="require('../static/img/people/flyhead.png')" alt="" v-if="!s.Head">
  81. <em>{{s.UserName}}</em>
  82. <s>{{s.Values}}</s>
  83. </li>
  84. <li v-if="Rs.Result == ''">
  85. <h5>还没有排行记录哟~</h5>
  86. </li>
  87. </ul>
  88. </el-carousel-item>
  89. </el-carousel>
  90. </div>
  91. </div>
  92. <el-dialog
  93. title="提示"
  94. :visible.sync="dialogVisible"
  95. width="30%"
  96. >
  97. <span>{{dialogText}}</span>
  98. <span slot="footer" class="dialog-footer">
  99. <el-button type="primary" @click="dialogVisible = false">知道了</el-button>
  100. </span>
  101. </el-dialog>
  102. </div>
  103. </template>
  104. <script>
  105. import Headside from '@/components/Headside'
  106. import sumNumber from '@/components/sumNumber'
  107. import {
  108. getHello,
  109. getClassStat,
  110. HerosRankingQuery,
  111. CalorieStatsQuery,
  112. UserRankingQuery
  113. } from '@/api/getApiRes'
  114. import '../libs/rem';
  115. import '../Global'
  116. // 测试模式 localStorage.eqSn = "8e501b0bde9ce600"
  117. let qs = require('qs');
  118. export default {
  119. data() {
  120. return {
  121. eqSn: '30:9C:23:0C:8B:1E',
  122. pageStyle: RandomBg(),
  123. trueDate: true,//真实数据 true false
  124. autoplayStatus: false,// false
  125. dialogVisible: false,// false
  126. dialogText: '',// false
  127. fakeNums: 8,//
  128. unite: '卡路里',
  129. topMsg: '',
  130. students: [],
  131. studentsLimit: [],
  132. showType: 2,//1 单人
  133. curIndex: false,//1 单人
  134. waitTimer: null,//null
  135. test:
  136. {
  137. Title: '本<s style="font-size: 0.7rem;color: red">周</s>场馆卡路里总消耗',
  138. Title2: '本<s style="font-size: 0.7rem;color: red">月</s>场馆卡路里总消耗',
  139. Result: [{'Values': 0, Unite: '千卡'}],
  140. },
  141. recordMain: [],
  142. bottom: {},
  143. rt: [],
  144. }
  145. },
  146. mounted() {
  147. if (this.trueDate) {
  148. this.init();
  149. } else {
  150. this.students = this.fakeNews();
  151. this.studentsLimit = this.fakeNewsLimit();
  152. this.topMsg = this.students[0];
  153. this.bottom = [
  154. {
  155. "Title": "本周消耗卡路里英雄榜",
  156. "Style": "heros",
  157. "Result": [
  158. {
  159. "UserName": "段长鹏",
  160. "Sex": 1,
  161. "Head": "",
  162. "Values": "4744",
  163. "Unite": "千卡",
  164. "Message": ""
  165. },
  166. {
  167. "UserName": "贾雨奇",
  168. "Sex": 1,
  169. "Head": "http://192.168.0.2/flyhead.png",
  170. "Values": "4034",
  171. "Unite": "千卡",
  172. "Message": ""
  173. },
  174. {
  175. "UserName": "郑伟",
  176. "Sex": 1,
  177. "Head": "http://192.168.0.2/flyhead.png",
  178. "Values": "2290",
  179. "Unite": "千卡",
  180. "Message": ""
  181. }
  182. ]
  183. },
  184. {
  185. "Title": "单次CK值(新个人记录)",
  186. "Style": "tops",
  187. "Result": [
  188. {
  189. "UserName": "郑伟",
  190. "Sex": 1,
  191. "Head": "",
  192. "Values": "1022",
  193. "Unite": "",
  194. "Message": "打破了历史记录100000"
  195. },
  196. {
  197. "UserName": "郑伟",
  198. "Sex": 1,
  199. "Head": "http://192.168.0.2/flyhead.png",
  200. "Values": "1020",
  201. "Unite": "",
  202. "Message": "打破了历史记录100000"
  203. }
  204. ]
  205. }
  206. ];
  207. this.rt = [
  208. {
  209. Title: '月度CK值排行',
  210. Result: this.fakeNews(),
  211. },
  212. {
  213. Title: '月度卡路里值排行',
  214. Result: this.fakeNews(),
  215. }
  216. ];
  217. this.recordMain = [
  218. {
  219. Title: '本<s>周</s>场馆卡路里总消耗',
  220. Result: [{'Values': 0, Unite: '千卡'}],
  221. },
  222. {
  223. Title: '本<s>周</s>场馆卡路里总消耗',
  224. Result: [{'Values': 0, Unite: '千卡'}],
  225. }
  226. ]
  227. }
  228. },
  229. watch: {
  230. '$route': function (val) {
  231. let that = this;
  232. if (val.path == '/') {
  233. this.autoplayStatus = false;
  234. if (this.trueDate) {
  235. that.init();
  236. } else {
  237. this.students = this.fakeNews();
  238. this.topMsg = this.students[0];
  239. }
  240. } else {
  241. clearInterval(this.waitTimer);
  242. }
  243. }
  244. },
  245. beforeDestroy() {
  246. clearInterval(this.waitTimer);
  247. this.waitTimer = null;
  248. },
  249. methods: {
  250. init() {
  251. this.waitTimer = setInterval(() => {
  252. this.curgetClassStat();
  253. this.GetHerosRankingQuery();
  254. this.GetCalorieStatsQuery();
  255. this.GetUserRankingQuery();
  256. }, 1000);
  257. },
  258. fakeNews() {
  259. let item = [];
  260. for (var i = 0; i < 7; i++) {
  261. item.push(
  262. {
  263. "hubId": 0,
  264. "deviceId": 22756,
  265. "calorie": 96.5,
  266. "Values ": 96.5,
  267. "heartRate": i * 5,
  268. "step": i * 40,
  269. "userName": "杨东艳",
  270. "userNmae": "杨东艳",
  271. "UserName": "杨东艳",
  272. "name": "杨东艳",
  273. "updateTime": 1604568915582,
  274. "ActivePercent": i * 5,
  275. "ck": 115.9 - i,
  276. "head": 'flyhead.png'
  277. }
  278. )
  279. }
  280. return item;
  281. },
  282. fakeNewsLimit() {
  283. let item = [];
  284. for (var i = 0; i < 3; i++) {
  285. item.push(
  286. {
  287. "hubId": 0,
  288. "deviceId": 22756,
  289. "calorie": 999.5,
  290. "heartRate": i * 5,
  291. "step": i * 40,
  292. "userName": "杨东艳",
  293. "userNmae": "杨东艳",
  294. "name": "杨东艳",
  295. "updateTime": 1604568915582,
  296. "ActivePercent": i * 5,
  297. "ck": i + 115.1,
  298. "sex": 1,
  299. "head": 'flyhead.png'
  300. }
  301. )
  302. }
  303. return item;
  304. },
  305. GetgetUserList() {
  306. let that = this;
  307. let param = {
  308. eqSn: localStorage.eqSn,
  309. token: localStorage.token,
  310. };
  311. let postdata = qs.stringify(param);
  312. getHello(postdata).then(res => {
  313. let json = res;
  314. if (json.Code == 0) {
  315. that.topMsg = json.Rs[0];
  316. that.students = json.Rs;
  317. that.$message.error(json.Memo);
  318. }
  319. }).catch(function (err) {
  320. console.log(err);
  321. });
  322. },
  323. GetHerosRankingQuery() {
  324. let that = this;
  325. let param = {
  326. eqSn: localStorage.eqSn,
  327. dispNum: 3
  328. };
  329. let postdata = qs.stringify(param);
  330. HerosRankingQuery(postdata).then(res => {
  331. let json = res;
  332. if (json.Code == 0) {
  333. that.bottom = json.Rs;
  334. } else {
  335. if (json.Code == 4002) {
  336. } else {
  337. that.$message.error(json.Memo);
  338. }
  339. }
  340. })
  341. },
  342. GetUserRankingQuery() {
  343. let that = this;
  344. let param = {
  345. eqSn: localStorage.eqSn,
  346. dispNum: 8
  347. };
  348. let postdata = qs.stringify(param);
  349. UserRankingQuery(postdata).then(res => {
  350. let json = res;
  351. if (json.Code == 0) {
  352. that.rt = json.Rs;
  353. } else {
  354. if (json.Code == 4002) {
  355. } else {
  356. that.$message.error(json.Memo);
  357. }
  358. }
  359. })
  360. },
  361. GetCalorieStatsQuery() {
  362. let that = this;
  363. let param = {
  364. eqSn: localStorage.eqSn,
  365. };
  366. let postdata = qs.stringify(param);
  367. CalorieStatsQuery(postdata).then(res => {
  368. let json = res;
  369. if (json.Code == 0) {
  370. that.recordMain = json.Rs;
  371. } else {
  372. that.recordMain = [
  373. {
  374. Title: '',
  375. Result: [{'Values': '', Unite: ''}],
  376. },
  377. {
  378. Title: '',
  379. Result: [{'Values': '', Unite: ''}],
  380. }
  381. ];
  382. if (json.Code == 4002) {
  383. that.dialogVisible = true;
  384. that.dialogText = json.Memo;
  385. } else {
  386. that.$message.error(json.Memo);
  387. }
  388. }
  389. })
  390. },
  391. curgetClassStat() {
  392. let that = this;
  393. let param = {
  394. token: localStorage.token,
  395. eqSn: localStorage.eqSn
  396. };
  397. let postdata = qs.stringify(param);
  398. getClassStat(postdata).then(res => {
  399. let json = res;
  400. if (json.Code == 0) {
  401. // alert(JSON.stringify(json.ClassOn));
  402. // alert("alert:"+json.ClassOn);
  403. // 上课了
  404. if (json.ClassOn == 1) {
  405. // 0: 下课 团课/私教 排名
  406. // 1:团课/私教 todo
  407. // 2:竞技课2PK
  408. // 3:竞技课threepk
  409. switch (parseInt(json.dp)) {
  410. case 0:
  411. that.$router.push({path: '/rank'});
  412. break;
  413. case 1:
  414. that.$router.push({path: '/main'});
  415. break;
  416. case 2:
  417. that.$router.push({path: '/pk'});
  418. break;
  419. case 3:
  420. that.$router.push({path: '/threepk'});
  421. break;
  422. }
  423. }
  424. } else {
  425. // that.$message.error(json.Memo);
  426. }
  427. })
  428. },
  429. },
  430. components: {
  431. Headside,sumNumber
  432. }
  433. }
  434. </script>
  435. <style scoped>
  436. @import "../assets/css/bg.css";
  437. .pages {
  438. position: absolute;
  439. top: 0;
  440. left: 0;
  441. right: 0;
  442. bottom: 0;
  443. width: 100%;
  444. overflow: hidden;
  445. display: block;
  446. margin: 0 auto;
  447. /*transform: scale(1,5);*/
  448. /*-ms-transform: scale(1,5); !* IE 9 *!*/
  449. /*-webkit-transform: scale(0.8,0.8); !* Safari and Chrome *!*/
  450. }
  451. /*/deep/ .el-carousel__item--card {*/
  452. /*width: auto !important;*/
  453. /*}*/
  454. /*/deep/ .el-carousel__item {*/
  455. /*width: auto !important;*/
  456. /*}*/
  457. /*/deep/ .el-carousel__item--card.is-active {*/
  458. /*z-index: 2;*/
  459. /*position: absolute;*/
  460. /*left: 50%;*/
  461. /*transform: translate(-50%, 0px) !important;*/
  462. /*}*/
  463. .rankContainer {
  464. width: 90%;
  465. height: 100%;
  466. overflow: hidden;
  467. display: block;
  468. margin: 0 auto;
  469. }
  470. .rankContainer .lt {
  471. width: 60%;
  472. height: 100%;
  473. float: left;
  474. }
  475. .rankContainer .rt {
  476. width: 40%;
  477. height: 100%;
  478. float: right;
  479. }
  480. .recordMain {
  481. height: 6rem;
  482. /*height: 100%;*/
  483. overflow: hidden;
  484. }
  485. .rankContainer .lt .recordMain h5 {
  486. font-family: vista;
  487. font-weight: normal;
  488. font-size: 0.6rem;
  489. text-align: left;
  490. color: #fff;
  491. margin: 5% auto;
  492. }
  493. .recordMain h5 s {
  494. font-size: 0.8rem;
  495. }
  496. .rankContainer .sum {
  497. position: relative;
  498. top: 0.4rem;
  499. width: 100%;
  500. height: 35%;
  501. overflow: visible;
  502. display: block;
  503. margin: 0 auto;
  504. text-align: center;
  505. z-index: 666;
  506. }
  507. .sumBg {
  508. position: relative;
  509. bottom: 2rem;
  510. width: 100%;
  511. height: 3rem;
  512. overflow: hidden;
  513. display: block;
  514. margin: 0 auto;
  515. /*background: url("../static/img/pingtai.png") bottom center;*/
  516. background: url("../static/img/black.png") bottom center;
  517. background-size: 100% 100%;
  518. background-repeat: no-repeat;
  519. }
  520. .sum em {
  521. width: 7.2rem;
  522. float: right;
  523. font-weight: 900;
  524. font-family: vista;
  525. font-weight: 900;
  526. font-size: 2rem;
  527. text-align: center;
  528. color: #fff;
  529. font-style: normal;
  530. /*text-shadow: #E85297 5px 0 0, #E85297 0 5px 0, #E85297 -5px 0 0, #E85297 0 -5px 0;*/
  531. text-shadow: #000 5px 0 0, #000 0 5px 0, #000 -5px 0 0, #000 0 -5px 0;
  532. }
  533. .sum s {
  534. position: relative;
  535. bottom: -2rem;
  536. width: 2rem;
  537. float: right;
  538. font-style: normal;
  539. font-family: vista;
  540. font-weight: normal;
  541. font-size: 44px;
  542. text-align: center;
  543. color: #fff;
  544. text-decoration: none;
  545. }
  546. .sumContainer {
  547. width: 100%;
  548. /*height: 4rem;*/
  549. overflow: hidden;
  550. display: block;
  551. margin: 0 auto;
  552. }
  553. .topOne {
  554. width: 100%;
  555. overflow: hidden;
  556. display: block;
  557. margin: 0 auto;
  558. }
  559. .topOne h5 {
  560. font-family: vista;
  561. font-weight: normal;
  562. font-size: 0.4rem;
  563. text-align: left;
  564. color: #fff;
  565. margin: 1% 0;
  566. }
  567. ul, li {
  568. list-style: none;
  569. margin: 0;
  570. padding: 0;
  571. }
  572. .topOne ul {
  573. width: 100%;
  574. overflow: hidden;
  575. display: block;
  576. margin: 0 auto;
  577. padding-left: 2px;
  578. padding-top: 0.1rem;
  579. padding-bottom: 0.1rem;
  580. }
  581. .topOne li {
  582. width: 33.3%;
  583. float: left;
  584. }
  585. .topOne .dgCenter {
  586. width: 93%;
  587. overflow: hidden;
  588. float: left;
  589. border-radius: 5px;
  590. background: rgba(0.0 .0 .0 .1);
  591. box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.3);
  592. padding-top: 0.1rem;
  593. padding-bottom: 0.1rem;
  594. }
  595. .dgCenter .dghead {
  596. width: 40%;
  597. float: left;
  598. }
  599. .dghead img {
  600. width: 1rem;
  601. height: 1rem;
  602. overflow: hidden;
  603. display: block;
  604. margin: 0 auto;
  605. padding: 0;
  606. border-radius: 33rem;
  607. border: 2px solid #fff;
  608. }
  609. .dghead s {
  610. width: 100%;
  611. overflow: hidden;
  612. display: block;
  613. font-weight: normal;
  614. font-size: 0.3rem;
  615. text-align: center;
  616. color: #fff;
  617. font-style: normal;
  618. text-decoration: none;
  619. margin-top: 0.2rem;
  620. }
  621. .score {
  622. width: 60%;
  623. float: right;
  624. }
  625. .score em {
  626. width: 100%;
  627. overflow: hidden;
  628. display: block;
  629. margin: 0 auto;
  630. font-family: vista;
  631. font-weight: bold;
  632. font-size: 0.7rem;
  633. text-align: center;
  634. color: #fff;
  635. font-style: normal;
  636. height: 1.4rem;
  637. line-height: 1.4rem;
  638. }
  639. .score span {
  640. width: 100%;
  641. overflow: hidden;
  642. display: block;
  643. margin: 0 auto;
  644. font-family: vista;
  645. font-weight: normal;
  646. font-size: 0.2rem;
  647. color: #fff;
  648. text-align: center;
  649. }
  650. .rt {
  651. padding-top: 0.6rem;
  652. }
  653. .rt h5 {
  654. font-family: vista;
  655. font-weight: normal;
  656. font-size: 36px;
  657. text-align: center;
  658. color: #fff;
  659. margin: 0;
  660. margin-bottom: 0.3rem;
  661. text-indent: 0.2rem;
  662. }
  663. .rt ul {
  664. width: 80%;
  665. overflow: hidden;
  666. display: block;
  667. margin: 0 auto;
  668. padding-top: 3px;
  669. padding-bottom: 3px;
  670. }
  671. .rt li {
  672. width: 80%;
  673. overflow: hidden;
  674. display: block;
  675. margin: 0 auto;
  676. margin-bottom: 0.1rem;
  677. padding: 0.1rem 4%;
  678. /*background: rgba(0, 0, 0, 0.1);*/
  679. border-radius: 5px;
  680. /*box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.3);*/
  681. }
  682. .rt li img {
  683. width: 0.6rem;
  684. height: 0.6rem;
  685. filter: drop-shadow(0px 0px 6px #bf00ff);
  686. border: 2px solid #fff;
  687. float: left;
  688. border-radius: 33rem;
  689. margin-right: 3%;
  690. }
  691. .rt li em {
  692. font-family: vista;
  693. font-weight: normal;
  694. font-size: 0.35rem;
  695. text-align: center;
  696. color: #fff;
  697. font-style: normal;
  698. float: left;
  699. height: 0.6rem;
  700. line-height: 0.6rem;
  701. }
  702. .rt li s {
  703. font-family: vista;
  704. font-weight: normal;
  705. font-size: 0.35rem;
  706. text-align: right;
  707. color: #fff;
  708. text-decoration: none;
  709. height: 0.6rem;
  710. line-height: 0.6rem;
  711. float: right;
  712. }
  713. .heros > h5 {
  714. font-family: vista;
  715. font-weight: normal;
  716. font-size: 0.35rem;
  717. text-align: left;
  718. color: #fff;
  719. margin: 1% 0;
  720. }
  721. .heros ul {
  722. width: 100%;
  723. overflow: hidden;
  724. display: block;
  725. margin: 0 auto;
  726. padding-left: 3px;
  727. padding-top: 6px;
  728. padding-bottom: 6px;
  729. }
  730. .heros li {
  731. width: 2.5rem;
  732. height: 2.35rem;
  733. float: left;
  734. border-radius: 5px;
  735. background: rgba(0.0 .0 .0 .1);
  736. box-shadow: 0px 0px 6px rgba(255, 255, 255, 0.3);
  737. padding-top: 0.2rem;
  738. padding-bottom: 0.2rem;
  739. color: #fff;
  740. font-size: 0.3rem;
  741. text-align: center;
  742. margin-right: 5%;
  743. }
  744. .heros li > img {
  745. width: 1.2rem;
  746. height: 1.2rem;
  747. overflow: hidden;
  748. display: block;
  749. margin: 0 auto;
  750. margin-bottom: 0.2rem;
  751. border-radius: 100%;
  752. border: 2px solid #fff;
  753. }
  754. .heros li > img.sex {
  755. position: relative;
  756. top: -1.5rem;
  757. right: 0.55rem;
  758. width: 0.4rem;
  759. height: 0.4rem;
  760. overflow: hidden;
  761. float: right;
  762. border: none;
  763. }
  764. .heros li em {
  765. font-family: vista;
  766. font-weight: bold;
  767. font-size: 30px;
  768. text-align: center;
  769. font-style: normal;
  770. }
  771. .heros li em#red_0 {
  772. color: #FA5114;
  773. }
  774. .heros li em#red_1 {
  775. color: #FA981F;
  776. }
  777. .heros li em#red_2 {
  778. color: #FFE13C;
  779. }
  780. .heros li #circle_0 {
  781. border: 2px solid #FA5114;
  782. }
  783. .heros li #circle_1 {
  784. border: 2px solid #FA981F;
  785. }
  786. .heros li #circle_2 {
  787. border: 2px solid #FFE13C;
  788. }
  789. .heros li div {
  790. position: relative;
  791. top: -0.7rem;
  792. width: 100%;
  793. overflow: hidden;
  794. display: block;
  795. margin: 0 auto;
  796. text-align: center;
  797. }
  798. .heros li span {
  799. position: relative;
  800. top: -0.67rem;
  801. width: 100%;
  802. overflow: hidden;
  803. display: block;
  804. margin: 0 auto;
  805. }
  806. .bottom {
  807. position: relative;
  808. width: 100%;
  809. height: 4rem;
  810. padding-top: 0.1rem;
  811. bottom: 0.2rem;
  812. }
  813. /deep/ .el-carousel__indicators--horizontal {
  814. display: none;
  815. }
  816. /deep/ .el-carousel {
  817. height: 100%;
  818. }
  819. /deep/ .el-carousel__container {
  820. }
  821. </style>