| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337 |
- <template>
- <div class="pages">
- <Headside></Headside>
- <div class="pk-detail-con">
- <img src="../assets/img/pk/redGood.svg" class="lp_icon"/>
- <div class="progress">
- <div class="progress-bar" :style="{width: pkVal}">
- <i class="lightning"></i>
- </div>
- </div>
- <img src="../assets/img/pk/blueGood.svg" class="rp_icon"/>
- </div>
- <div class="pk_container">
- <div class="lt">
- <ul>
- <li :class="RedstudentsClassName" v-for="(s,i) in students.redUnite">
- <div class="bg">
- <h5>{{ s.Name }}</h5>
- <div class="user">
- <div class="ult">
- <em>
- <div v-if="s.activePercent != 0">
- {{ s.activePercent}}
- </div>
- <div class="plus" v-if="s.activePercent == 0">
- ---
- </div>
- <s>%</s>
- </em>
- </div>
- <div class="umd">
- <div class="circle">
- <img :src="s.Head" alt="" v-if="s.Head">
- <img src="../static/img/people/flyhead.png" alt="" v-if="!s.Head">
- </div>
- </div>
- <div class="urt">
- <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) > 100">{{
- s.realHr }}</em>
- <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) <= 100">{{
- s.realHr }}</em>
- <em class="plus" v-if="s.realHr == 0"> --- </em>
- <img src="../static/img/heart.svg" class=""/>
- </div>
- </div>
- <div class="bottomLi">
- <div class="btcla">
- <img src="../static/img/s1.svg"/>
- <span>{{ s.Cle |fmtFloat }}</span>
- </div>
- <div class="btck">
- <img src="../static/img/s2.svg"/>
- <span>{{ s.Steps }}</span>
- </div>
- <div class="step">
- <img src="../static/img/ck.svg"/>
- <span>{{ s.Ck |fmtFloat}}</span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- <div class="md">
- <div class="partInfo">
- <span class="title rtitle">
- <img src="../assets/img/pk/redFlag.svg"/>
- ck值
- </span>
- <span class="title btitle">
- <img src="../assets/img/pk/blueFlag.svg"/>
- ck值
- </span>
- </div>
- <div class="cubelist">
- <div class="cubes rcube">
- <em>红队</em>
- </div>
- <img class="vs" src="../assets/img/pk/vs.svg"/>
- <div class="cubes bcube">
- <em>蓝队</em>
- </div>
- </div>
- <div class="teamScore">
- <div class="lt">{{redSum}}</div>
- <div class="rt">{{blueSum}}</div>
- </div>
- <div class="bottomInfo">
- <span class="names">
- {{PlanName}}
- </span>
- <div class="teacher">
- <br>
- <span>人数:{{num}}</span>
- </div>
- <div class="classTime">
- {{classInfo.endTime}}
- </div>
- </div>
- </div>
- <div class="rt">
- <ul>
- <li :class="BluestudentsClassName" v-for="(s,i) in students.blueUnite">
- <div class="bg">
- <h5>{{ s.Name }}</h5>
- <div class="user">
- <div class="ult">
- <em>
- <div v-if="s.activePercent != 0">
- {{ s.activePercent}}
- </div>
- <div class="plus" v-if="s.activePercent == 0">
- ---
- </div>
- <s>%</s>
- </em>
- </div>
- <div class="umd">
- <div class="circle">
- <img :src="s.Head" alt="" v-if="s.Head">
- <img src="../static/img/people/flyhead.png" alt="" v-if="!s.Head">
- </div>
- </div>
- <div class="urt">
- <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) > 100">{{
- s.realHr }}</em>
- <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.realHr) <= 100">{{
- s.realHr }}</em>
- <em class="plus" v-if="s.realHr == 0"> --- </em>
- <img src="../static/img/heart.svg" class=""/>
- </div>
- </div>
- <div class="bottomLi">
- <div class="btcla">
- <img src="../static/img/s1.svg"/>
- <span>{{ s.Cle |fmtFloat }}</span>
- </div>
- <div class="btck">
- <img src="../static/img/s2.svg"/>
- <span>{{ s.Steps }}</span>
- </div>
- <div class="step">
- <img src="../static/img/ck.svg"/>
- <span>{{ s.Ck |fmtFloat}}</span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </template>
- <script>
- import '../libs/rem';
- import Headside from '@/components/Headside'
- import {
- getHello,
- getClassStat
- } from '@/api/getApiRes'
- import '../libs/rem';
- let qs = require('qs');
- export default {
- data() {
- return {
- trueDate: true,//真实数据 true false
- studentsClassName: [],
- students: {
- redUnite: [],
- blueUnite: [],
- },
- redSum: 0,
- blueSum: 0,
- pkVal: '50%',
- RedstudentsClassName: '',
- BluestudentsClassName: '',
- PlanName: '',
- num: 0,
- classInfo: {
- name: '竞技课程',
- num: '0',
- btTime: '2020-11-13 09:00:00',//时间戳
- endTime: '00:00:00',
- redSum: 0,
- blueSum: 0,
- }
- }
- },
- mounted() {
- let that = this;
- if (this.trueDate) {
- this.PkTimer = setInterval(() => {
- this.GetgetUserList();
- this.curgetClassStat();
- }, 1000);
- this.GetgetUserList();
- // this.PkEgg = setInterval(() => {
- // this.createEgg();
- // }, 6000);
- } else {
- // 虚假的数据
- let json = {
- "Code": "0",
- "Memo": "Success",
- "Dp": {
- "PlanId": 182,
- "ShopId": 1,
- "SvId": 1,
- "PlanName": "齐源大厦浏览器显示2020-12-02日08:40开始的竞技游戏",
- "Status": 2,
- "BeginTime": "17:15:18",
- "EndTime": 0,
- "ClassType": 2,
- "PkNum": 2
- }
- };
- // 载入课程信息
- let Dp = json.Dp;
- that.ReadLessonInfo(Dp);
- // 载入学生信息
- let Rs = this.fakeNews(16);
- that.UniteBreak(Rs);
- // 人口总数
- that.num = json.Rs ? json.Rs.length : 0;
- this.ClacClassTime();
- }
- },
- beforeDestroy() {
- clearInterval(this.PkTimer);
- clearInterval(this.PkEgg);
- this.PkTimer = null;
- this.PkEgg = null;
- },
- methods: {
- fakeNews(num) {
- let item = [];
- let nums = Math.random() * 100 + 1;
- this.fakeNums = num;
- for (var i = 0; i < this.fakeNums; i++) {
- item.push(
- {
- "SvId": 1,
- "UserId": 1,
- "Cle": i * 14,
- "realHr1": parseInt(Math.random() * 100 + 50),
- "realHr": 60,
- "activePercent": 30,
- "heartRate": 90,
- "Steps": 9999,
- "PureCalorieNoVo2": 999,
- "Name": "刘宇宁",
- "updateTime": 1604568915582,
- "Ck": nums + i * 2.2,
- "Head": "http://192.168.0.2/zw.png",
- "GroupNo": i % 2 + 1
- }
- )
- }
- return item;
- },
- // 载入课程信息
- ReadLessonInfo(Dp) {
- this.PlanName = Dp.PlanName;
- this.BeginTime = Dp.BeginTime;
- },
- // 分队展示
- UniteBreak(Rs) {
- let that = this;
- that.students.redUnite = [];
- that.students.blueUnite = [];
- if (!Rs) {
- that.students.redUnite = [];
- that.students.blueUnite = [];
- } else {
- Rs.map(function (item, t) {
- if (item.GroupNo == 1) {
- that.students.redUnite.push(item);
- }
- if (item.GroupNo == 2) {
- that.students.blueUnite.push(item);
- }
- })
- }
- that.giveClassName(that.students.redUnite, 1);
- that.giveClassName(that.students.blueUnite, 2);
- that.calcSumCK(that.students);
- },
- // 计算各队总分
- calcSumCK(Rs) {
- let that = this;
- let redSum = 0;
- let blueSum = 0;
- // that.redSum
- Rs.redUnite.map(function (item, t) {
- redSum += parseFloat(item.Ck)
- });
- Rs.blueUnite.map(function (item, t) {
- blueSum += parseFloat(item.Ck)
- });
- that.redSum = redSum.toFixed(1);
- that.blueSum = blueSum.toFixed(1);
- // pkVal
- let sumMax = parseFloat(redSum) + parseFloat(blueSum);
- that.pkVal = (redSum / sumMax) * 100 + '%';
- },
- // 获取上课学生信息
- GetgetUserList() {
- let that = this;
- let param = {
- token: localStorage.token,
- eqSn: localStorage.eqSn
- };
- // this.giveClassName(this.Bluestudents,2);
- let postdata = qs.stringify(param);
- getHello(postdata).then(res => {
- let json = res;
- if (json.Code == 0) {
- that.ReadLessonInfo(json.Dp);
- that.UniteBreak(json.Rs);
- // 人口总数
- that.num = json.Rs.length ? json.Rs.length : 0;
- this.ClacClassTime();
- } else {
- // 已下课
- console.log(json.Code);
- if (json.Code == '999') {
- that.$router.push({path: '/2pkRank'});
- } else {
- // 已出错
- that.$message.error(json.Memo);
- }
- }
- })
- },
- // 动态计算排版
- giveClassName(res, type) {
- let that = this;
- let numberClass = '';
- switch (true) {
- case parseInt(res.length) <= 2 && parseInt(res.length) > 0:
- numberClass = 'two';
- break;
- case parseInt(res.length) == 3:
- numberClass = 'three';
- break;
- case parseInt(res.length) <= 4 && parseInt(res.length) > 2:
- numberClass = 'four';
- break;
- case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
- numberClass = 'four';
- break;
- case parseInt(res.length) <= 8 && parseInt(res.length) > 6:
- numberClass = 'eight';
- break;
- }
- if (type == 1) {
- that.RedstudentsClassName = numberClass;
- } else {
- that.BluestudentsClassName = numberClass;
- }
- },
- // 计算团队竞技课持续时间
- ClacClassTime() {
- let BeginTime = new Date(globalcurrent() + ' ' + this.BeginTime);//结束时间
- let nowDate = new Date();
- let date = new Date(nowDate - BeginTime);
- let h = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
- let m = date.getMinutes() < 10 ? '0' + date.getMinutes() + ':' : date.getMinutes() + ':';
- let s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
- this.classInfo.endTime = h + m + s;
- },
- // // 计算双方对抗强度加总
- // CalcTeamCk() {
- // let that = this;
- // let Redsum = 0;
- // let Bluesum = 0;
- // let sumMax = 0;
- // if (that.Redstudents) {
- // that.Redstudents.map(function (i) {
- // Redsum = parseFloat(Redsum) + parseFloat(i.Ck)
- // });
- // }
- // if (that.Bluestudents) {
- // that.Bluestudents.map(function (i) {
- // Bluesum = parseFloat(Bluesum) + parseFloat(i.Ck)
- // });
- // }
- // that.classInfo.redSum = parseFloat(Redsum).toFixed(1);
- // that.classInfo.blueSum = parseFloat(Bluesum).toFixed(1);
- //
- // sumMax = parseFloat(Redsum) + parseFloat(Bluesum);
- // that.classInfo.pkVal = (that.classInfo.redSum / sumMax) * 100 + '%';
- // },
- // 当前课程状态
- curgetClassStat() {
- let that = this;
- let param = {
- token: localStorage.token,
- eqSn: localStorage.eqSn
- };
- let postdata = qs.stringify(param);
- getClassStat(postdata).then(res => {
- let json = res;
- if (json.Code == 0) {
- // 没开课
- if (json.ClassOn == 0) {
- console.log("xiakele ");
- // 0: 下课 团课/私教 排名
- // 1:团课/私教 todo
- // 2:竞技课2PK
- // 3:竞技课3PK
- switch (parseInt(json.dp)) {
- case 2:
- that.$router.push({path: '/2pkRank'});
- break;
- }
- }
- } else {
- // that.$message.error(json.Memo);
- }
- })
- },
- },
- filters: {
- fmtNum(val) {
- if (val == 0) {
- return '--'
- } else {
- if (parseInt(val) < 0) return 0;
- if (parseInt(val) > 0) return val
- }
- },
- fmtFloat(val) {
- if (val == 0) {
- return '0.0'
- } else {
- return parseFloat(val).toFixed(1);
- }
- }
- },
- watch: {
- '$route': function (val) {
- if (val.path == '/pk') {
- if (this.trueDate) {
- this.PkTimer = setInterval(() => {
- this.GetgetUserList();
- this.ClacClassTime();
- this.curgetClassStat();
- }, 1000);
- this.GetgetUserList();
- // this.PkEgg = setInterval(() => {
- // this.createEgg();
- // }, 6000);
- } else {
- let Rs = this.fakeNews(16);
- that.UniteBreak(Rs);
- }
- } else {
- clearInterval(this.PkTimer);
- clearInterval(this.PkEgg);
- }
- }
- },
- components: {
- Headside
- }
- }
- </script>
- <style scoped>
- @import "../assets/css/bg.css";
- .pages {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- background-color: #028fe1;
- background: url("../static/img/pkBg.png");
- background-size: 100%;
- background-repeat: no-repeat;
- }
- * {
- font-family: vista;
- }
- ul, li {
- list-style: none;
- margin: 0;
- padding: 0;
- }
- em {
- font-style: normal;
- }
- .pk-detail-con {
- position: relative;
- top: 0.5rem;
- width: 98%;
- height: 0.6rem;
- display: block;
- margin: 0 auto;
- overflow: visible;
- }
- .progress {
- width: 100%;
- height: 0.3rem;
- overflow: visible;
- background-color: #04A6EE;
- border-radius: 19px;
- background-image: url("../static/img/pk/blue.png");
- /*background-image: linear-gradient(45deg, #60b7ff 25%, #0a84e9 0, #0a84e9 50%, #60b7ff 0, #60b7ff 75%, #0a84e9 0);*/
- /*background-size: 40px 40px;*/
- }
- .progress-bar {
- height: 0.3rem;
- text-align: left;
- background-color: #F75E07;
- -moz-transition: width .6s ease;
- -webkit-transition: width .6s ease;
- transition: width .6s ease;
- background-image: url("../static/img/pk/red.png");
- /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
- /*background-size: 40px 40px;*/
- }
- .progress, .progress-bar {
- /*background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
- /*background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
- /*background-image: linear-gradient(rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%);*/
- }
- .lightning {
- position: relative;
- top: -0.5rem;
- width: 1rem;
- height: 1.3rem;
- float: right;
- margin-right: -0.5rem;
- background: url("../static/img/pk/light.png") no-repeat center;
- background-size: cover;
- }
- .lp_icon {
- position: absolute;
- left: -0.1rem;
- top: -0.3rem;
- width: 0.8rem;
- height: 0.8rem;
- float: left;
- }
- .rp_icon {
- position: absolute;
- right: 0;
- top: -0.3rem;
- width: 0.8rem;
- height: 0.8rem;
- float: right;
- }
- .pk_container {
- width: 98%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .pk_container .lt {
- width: 35%;
- float: left;
- }
- .pk_container .rt {
- width: 35%;
- float: right;
- }
- .pk_container .md {
- width: 30%;
- float: left;
- }
- .pk_container ul {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- padding-top: 0.01rem;
- }
- .pk_container li {
- overflow: hidden;
- color: #fff;
- margin-bottom: 0.1rem;
- }
- .pk_container .lt li {
- overflow: hidden;
- }
- .pk_container .rt li {
- overflow: hidden;
- }
- .pk_container .lt .bg {
- border: 2px solid rgba(255, 143, 122, 0.5);
- background: rgba(194, 36, 6, 0.5);
- }
- .pk_container .rt .bg {
- border: 2px solid rgba(80, 115, 255, 0.5);
- background: rgba(0, 30, 152, 0.5);
- }
- .pk_container li .bg > h5 {
- font-family: vista;
- font-weight: 500;
- font-size: 0.3rem;
- text-align: center;
- color: #fff;
- margin: 0;
- margin-top: 0.1rem;
- margin-bottom: 0.1rem;
- }
- .pk_container li .user {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .pk_container .user .ult {
- width: 33.333%;
- float: left;
- overflow: visible;
- flex-direction: column;
- }
- .pk_container .user .umd {
- width: 33.333%;
- float: left;
- overflow: hidden;
- flex-direction: column
- }
- .pk_container .user .urt {
- width: 33.333%;
- float: right;
- flex-direction: column;
- }
- .centerLi .slowJump {
- animation: mymove 3s infinite;
- -webkit-animation: mymove 3s infinite; /*Safari and Chrome*/
- animation-direction: alternate; /*轮流反向播放动画。*/
- animation-timing-function: ease-in-out; /*动画的速度曲线*/
- /* Safari 和 Chrome */
- -webkit-animation: mymove 3s infinite;
- -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
- -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
- }
- .user .ult span {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- font-family: "Source Han Sans CN";
- font-weight: normal;
- font-size: 0.3rem;
- text-align: center;
- }
- .user .ult em {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .user .ult em div {
- width: 80%;
- overflow: hidden;
- float: right;
- text-align: right;
- padding-right: 0.3rem;
- font-size: 0.8rem;
- line-height: 1.6rem;
- }
- .user .ult s {
- position: relative;
- top: -1.2rem;
- right: 0rem;
- float: right;
- font-family: HeadLineA;
- font-weight: normal;
- font-size: 0.3rem;
- text-align: center;
- text-decoration: none;
- }
- .circle {
- width: 1.65rem;
- height: 1.65rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- border-radius: 250px;
- padding-top: 0.09rem;
- }
- .user .umd img {
- width: 1.5rem;
- height: 1.5rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- border-radius: 250px;
- border: 5px solid #B9CB01;
- }
- .urt img {
- position: relative;
- right: 0.1rem;
- top: -1.2rem;
- width: 0.35rem;
- height: 0.35rem;
- float: right;
- }
- .urt em {
- overflow: hidden;
- display: block;
- margin: 0 auto;
- font-family: HeadLineA;
- font-weight: normal;
- font-size: 0.7rem;
- letter-spacing: -0.05em;
- text-align: right;
- font-style: normal;
- line-height: 1.5rem;
- padding-right: 25%;
- }
- .bottomLi {
- width: 98%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- font-weight: normal;
- color: #fff;
- text-align: center;
- font-size: 0.4rem;
- text-indent: 0.2rem;
- }
- .bottomLi img {
- /*width: 0.24rem;*/
- /*height: 0.24rem;*/
- float: left;
- margin-left: 10%;
- }
- .bottomLi span {
- float: left;
- text-align: left;
- }
- .bottomLi .btcla {
- width: 30%;
- float: left;
- text-align: left;
- }
- .bottomLi .btck {
- width: 40%;
- float: left;
- text-align: left;
- }
- .bottomLi .step {
- width: 30%;
- float: right;
- text-align: left;
- }
- @keyframes mymove {
- 0% {
- transform: scale(1); /*开始为原始大小*/
- }
- 25% {
- transform: scale(1.2); /*放大1.1倍*/
- }
- 50% {
- transform: scale(1);
- }
- 75% {
- transform: scale(1.2);
- }
- }
- @-webkit-keyframes mymove /*Safari and Chrome*/
- {
- 0% {
- transform: scale(1); /*开始为原始大小*/
- }
- 25% {
- transform: scale(1.2); /*放大1.1倍*/
- }
- 50% {
- transform: scale(1);
- }
- 75% {
- transform: scale(1.2);
- }
- }
- .md {
- width: 30%;
- overflow: hidden;
- float: left;
- }
- .partInfo {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- padding-top: 1rem;
- }
- .partInfo .rp, .partInfo .bp {
- width: 50%;
- float: left;
- }
- .partInfo .title {
- width: 33%;
- overflow: hidden;
- display: block;
- margin: 0;
- font-size: 0.4rem;
- color: #fff;
- text-align: left;
- }
- .rtitle {
- float: left;
- padding-left: 0.25rem;
- }
- .partInfo .btitle {
- width: 30%;
- float: right;
- }
- .partInfo .title img {
- float: left;
- margin-right: 0.2rem;
- }
- .cubelist {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .cubelist .cubes {
- width: 33%;
- height: 2rem;
- overflow: hidden;
- float: left;
- background-position: top center;
- }
- .cubelist .vs {
- width: 33%;
- height: 2rem;
- overflow: hidden;
- float: left;
- }
- .cubelist .cubes em {
- width: 80%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- text-align: center;
- font-size: 0.3rem;
- font-style: normal;
- color: #fff;
- line-height: 2rem;
- }
- .cubes.rcube {
- background: url("../static/img/pk/rcube.png");
- background-size: 100% 100%;
- }
- .cubes.bcube {
- background: url("../static/img/pk/bcube.png");
- background-size: 100% 100%;
- }
- .teamScore {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .teamScore div {
- width: 50%;
- float: left;
- text-align: center;
- color: #fff;
- font-size: 0.6rem;
- }
- .bottomInfo {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .bottomInfo .names {
- width: 98%;
- height: 0.6rem;
- border-radius: 36px;
- background: #0925b4;
- border: 2px solid rgba(255, 255, 255, 0.5);
- font-size: 0.4rem;
- font-family: Roboto;
- font-weight: normal;
- text-align: center;
- color: #e1ff00;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- margin-top: 0.2rem;
- }
- .teacher {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- margin-top: 0.1rem;
- margin-bottom: 0.1rem;
- color: #fff;
- font-size: 0.3rem;
- }
- .teacher span {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .classTime {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- color: #fff;
- text-align: center;
- }
- .fastJump {
- animation: mymove 1s infinite;
- -webkit-animation: mymove 1s infinite; /*Safari and Chrome*/
- animation-direction: alternate; /*轮流反向播放动画。*/
- animation-timing-function: ease-in-out; /*动画的速度曲线*/
- /* Safari 和 Chrome */
- -webkit-animation: mymove 1s infinite;
- -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
- -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
- }
- .slowJump {
- animation: mymove 2s infinite;
- -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
- animation-direction: alternate; /*轮流反向播放动画。*/
- animation-timing-function: ease-in-out; /*动画的速度曲线*/
- /* Safari 和 Chrome */
- -webkit-animation: mymove 3s infinite;
- -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
- -webkit-animation-timing-function: ease-in-out; /*动画的速度曲线*/
- }
- /*two*/
- .pk_container li.two {
- width: 90%;
- overflow: hidden;
- display: block;
- }
- .two .bottomLi {
- width: 98%;
- font-size: 0.35rem;
- margin-top: 0.3rem;
- text-align: center;
- }
- .two .bottomLi img {
- width: 0.4rem;
- height: 0.4rem;
- margin-top: 0.15rem;
- }
- .two .bottomLi .btck img {
- width: 0.4rem;
- margin-top: 0.1rem;
- }
- .two .bottomLi span {
- line-height: 0.8rem;
- text-indent: 0.1rem;
- }
- .two .bottomLi .btcla {
- width: 30%;
- }
- .two .bottomLi .btck {
- width: 33%;
- padding-left: 3%;
- }
- .two .bottomLi .step {
- width: 28%;
- padding-right: 0%;
- }
- .two .cla em.plus {
- position: relative;
- left: -0.3rem
- }
- .two .lhj span.plus {
- position: relative;
- left: 1.3rem
- }
- .two .bottomLi .btck img {
- width: 0.5rem;
- height: 0.5rem;
- margin-top: 0.12rem;
- }
- /*three*/
- .pk_container li.three {
- width: 90%;
- overflow: hidden;
- display: block;
- }
- .three .bottomLi {
- width: 98%;
- font-size: 0.35rem;
- margin-top: 0rem;
- text-align: center;
- }
- .three .circle {
- width: 1.2rem;
- height: 1.2rem;
- }
- .three .circle img {
- width: 0.9rem;
- height: 0.9rem;
- }
- .three .user {
- height: 1.2rem;
- overflow: hidden;
- }
- .three .ult em div {
- line-height: 1.2rem;
- }
- .three .urt em {
- line-height: 1.2rem;
- }
- .three .bottomLi img {
- width: 0.4rem;
- height: 0.4rem;
- margin-top: 0.15rem;
- }
- .three .bottomLi .btck img {
- width: 0.4rem;
- margin-top: 0.1rem;
- }
- .three .bottomLi span {
- line-height: 0.8rem;
- text-indent: 0.1rem;
- }
- .three .bottomLi .btcla {
- width: 30%;
- }
- .three .bottomLi .btck {
- width: 33%;
- padding-left: 3%;
- }
- .three .bottomLi .step {
- width: 28%;
- padding-right: 0%;
- }
- .three .cla em.plus {
- position: relative;
- left: -0.3rem
- }
- .three .lhj span.plus {
- position: relative;
- left: 1.3rem
- }
- .three .bottomLi .btck img {
- width: 0.5rem;
- height: 0.5rem;
- margin-top: 0.12rem;
- }
- /*four*/
- .four {
- width: 49%;
- float: left;
- }
- .four .bg {
- width: 96%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .pk_container li.four .bg > h5 {
- font-size: 0.25rem;
- }
- .four .user .ult span {
- font-size: 0.2rem;
- }
- .four .user .ult em div {
- width: 90%;
- margin-right: 0.05rem;
- font-size: 0.5rem;
- line-height: 1rem;
- }
- .four .user .ult s {
- font-size: 0.1rem;
- line-height: 1rem;
- }
- .four .circle {
- width: 1rem;
- height: 1rem;
- }
- .four .user .umd img {
- width: 0.8rem;
- height: 0.8rem;
- }
- .four .urt img {
- width: 0.2rem;
- height: 0.2rem;
- top: -0.8rem;
- }
- .four .urt em {
- font-size: 0.4rem;
- line-height: 1rem;
- }
- .four .bottomLi {
- width: 100%;
- text-indent: 0.1rem;
- font-size: 0.2rem;
- }
- .four .bottomLi img {
- width: 0.2rem;
- height: 0.2rem;
- }
- .four .bottomLi span {
- width: 60%;
- }
- .four .user {
- height: 1.2rem;
- overflow: hidden;
- }
- /*six*/
- /*eight*/
- .eight {
- width: 49%;
- float: left;
- }
- .eight .bg {
- width: 96%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .pk_container li.eight .bg > h5 {
- font-size: 0.25rem;
- margin: 0.01rem 0;
- }
- .eight .user .ult span {
- font-size: 0.2rem;
- }
- .eight .user .ult em div {
- width: 90%;
- margin-right: 0.05rem;
- font-size: 0.5rem;
- line-height: 1rem;
- }
- .eight .user .ult s {
- font-size: 0.1rem;
- line-height: 1rem;
- }
- .eight .circle {
- width: 1rem;
- height: 1rem;
- }
- .eight .user .umd img {
- width: 0.8rem;
- height: 0.8rem;
- }
- .eight .urt img {
- width: 0.2rem;
- height: 0.2rem;
- top: -0.8rem;
- }
- .eight .urt em {
- font-size: 0.4rem;
- line-height: 1rem;
- }
- .eight .bottomLi {
- width: 100%;
- text-indent: 0.1rem;
- font-size: 0.2rem;
- }
- .eight .bottomLi img {
- width: 0.2rem;
- height: 0.2rem;
- }
- .eight .bottomLi span {
- width: 60%;
- }
- .eight .user {
- height: 1.2rem;
- overflow: hidden;
- }
- .pk_container .rt li {
- float: right;
- }
- </style>
|