| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629 |
- <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>
- <div class="nameLt">
- <i class="el-icon-male" v-if="s.Sex == 1"></i>
- <i class="el-icon-female" v-if="s.Sex == 2"></i>
- </div>
- <div class="nameMd">{{ s.Name }}</div>
- <div class="namert">
- <!--<img src="../static/img/comm/isPrivate.svg" alt="" v-if="s.isPrivate" style="float: right;margin-right: 0.2rem;margin-top: 0.1rem">-->
- </div>
- </h5>
- <div class="user">
- <div class="ult">
- <em>
- <div v-if="s.realHr != 0">{{ s.activePercent |max100}}</div>
- <div class="plus" v-if="s.activePercent == 0 && s.realHr == 0">---</div>
- <s>%</s>
- </em>
- </div>
- <div class="umd">
- <div class="circle">
- <img :class="s.sportLevel" :src="s.Head" alt="" v-if="s.Head">
- <img :class="s.sportLevel" src="../static/img/people/flyhead.png" alt=""
- v-if="!s.Head">
- </div>
- <!-- 生日快乐 -->
- <div class="birth" v-if="s.IsBirthday == 1">
- <img src="../assets/img/birth/birthCrow.png" class="birthCrow"/>
- <img src="../assets/img/birth/birthText.png" class="birthText"/>
- </div>
- </div>
- <div class="urt">
- <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.activePercent) > 90">{{
- s.realHr }}</em>
- <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.activePercent) <= 90">{{
- 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 |fmtInt }}</span>
- </div>
- <div class="btck">
- <img src="../static/img/s2.svg"/>
- <span>{{ s.PureCalorieNoVo2 |fmtInt }}</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">
- <span v-if="Teacher"> 教练:{{Teacher}}</span>
- <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>
- <div class="nameLt">
- <i class="el-icon-male" v-if="s.Sex == 1"></i>
- <i class="el-icon-female" v-if="s.Sex == 2"></i>
- </div>
- <div class="nameMd">{{ s.Name }}</div>
- <div class="namert"></div>
- </h5>
- <div class="user">
- <div class="ult">
- <em>
- <div v-if="s.realHr != 0">
- {{ s.activePercent |max100 }}
- </div>
- <div class="plus" v-if="s.activePercent == 0&& s.realHr == 0">
- ---
- </div>
- <s>%</s>
- </em>
- </div>
- <div class="umd">
- <div class="circle">
- <img :class="s.sportLevel" :src="s.Head" alt="" v-if="s.Head">
- <img :class="s.sportLevel" src="../static/img/people/flyhead.png" alt=""
- v-if="!s.Head">
- <!-- 生日快乐 -->
- <div class="birth" v-if="s.IsBirthday == 1">
- <img src="../assets/img/birth/birthCrow.png" class="birthCrow"/>
- <img src="../assets/img/birth/birthText.png" class="birthText"/>
- </div>
- </div>
- </div>
- <div class="urt">
- <em class="fastJump" v-if="s.realHr != 0" v-show="parseInt(s.activePercent) > 90">{{
- s.realHr }}</em>
- <em class="slowJump" v-if="s.realHr != 0" v-show="parseInt(s.activePercent) <= 90">{{
- 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 |fmtInt }}</span>
- </div>
- <div class="btck">
- <img src="../static/img/s2.svg"/>
- <span>{{ s.PureCalorieNoVo2 |fmtInt}}</span>
- </div>
- <div class="step">
- <img src="../static/img/ck.svg"/>
- <span>{{ s.Ck |fmtFloat}}</span>
- </div>
- </div>
- </div>
- </li>
- </ul>
- </div>
- </div>
- <newRecord :toper-info="toperInfo"></newRecord>
- <newStudent :student-info="studentInfo"></newStudent>
- </div>
- </template>
- <script>
- import '../libs/rem';
- import Headside from '@/components/Headside'
- import newRecord from '@/components/newRecord'
- import newStudent from '@/components/newStudent'
- import {
- getHello,
- getClassStat,
- getRecordBreak,
- getNewUser
- } 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,
- Teacher: '',
- classInfo: {
- name: '竞技课程',
- num: '0',
- btTime: '2020-11-13 09:00:00',//时间戳
- endTime: '00:00:00',
- redSum: 0,
- blueSum: 0,
- },
- totalTime: 4,
- studentTime: 15,
- toperInfo: {
- dialogVisible: false,
- toper: {},
- },
- studentInfo: {
- dialogVisible: false,
- Rs: [],
- percent: 0
- },
- }
- },
- mounted() {
- let that = this;
- if (this.trueDate) {
- this.init();
- // 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 = fakeNews(14, 2);
- that.UniteBreak(Rs);
- // 人口总数
- that.num = json.Rs ? json.Rs.length : 0;
- this.ClacClassTime();
- }
- },
- watch: {
- '$route': function (val) {
- let that = this;
- if (val.path == '/pk') {
- if (this.trueDate) {
- this.init();
- // this.PkEgg = setInterval(() => {
- // this.createEgg();
- // }, 6000);
- } else {
- let Rs = fakeNews(16);
- that.UniteBreak(Rs);
- }
- } else {
- clearInterval(this.PkTimer);
- clearInterval(this.PkEgg);
- clearInterval(this.timer2);
- clearInterval(this.timer3);
- this.PkTimer = null;
- this.PkEgg = null;
- this.timer2 = null;
- this.timer3 = null;
- }
- }
- },
- beforeDestroy() {
- clearInterval(this.PkTimer);
- clearInterval(this.PkEgg);
- clearInterval(this.timer2);
- clearInterval(this.timer3);
- this.PkTimer = null;
- this.PkEgg = null;
- this.timer2 = null;
- this.timer3 = null;
- },
- methods: {
- init(){
- this.GetgetUserList();
- this.createEgg();
- this.createNewStudent();
- this.PkTimer = setInterval(() => {
- this.GetgetUserList();
- this.ClacClassTime();
- this.curgetClassStat();
- }, 1000);
- this.timer2 = setInterval(() => {
- this.createEgg();
- }, 31000);
- this.timer3 = setInterval(() => {
- this.createNewStudent();
- }, 6000);
- },
- // 启动一个成就彩蛋
- createEgg() {
- let that = this;
- let param = {
- token: localStorage.token,
- eqSn: localStorage.eqSn
- };
- let postdata = qs.stringify(param);
- getRecordBreak(postdata).then(res => {
- let json = res;
- if (json.Code == 0) {
- // 欢迎新学生时不显示彩蛋
- if (that.studentInfo.dialogVisible == true) {
- console.log('正在显示新学生');
- return false
- }else{
- this.OpenEgg(json);
- }
- } else {
- // 并没有人破记录
- if (json.Code == 999) return false;
- if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
- }
- })
- },
- // 欢迎新同学
- createNewStudent() {
- let that = this;
- let param = {
- token: localStorage.token,
- eqSn: localStorage.eqSn
- };
- let postdata = qs.stringify(param);
- getNewUser(postdata).then(res => {
- let json = res;
- if (json.Code == 0) {
- console.log('来新生了');
- // 显示彩蛋时不欢迎新学生
- if (that.toperInfo.dialogVisible == true) {
- console.log('正在显示彩蛋');
- return false
- }else{
- that.OpenStudent(json.Rs);
- }
- } else {
- // 并没有人破记录
- if (json.Code == 999) return false;
- if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
- }
- })
- },
- OpenEgg(msg) {
- this.toperInfo.toper = msg.Rs;
- this.toperInfo.dialogVisible = true;
- // 倒计时5秒自动关闭
- let that = this;
- this.totalTime = 4;
- let clock = window.setInterval(() => {
- this.totalTime--;
- if (parseInt(this.totalTime) < 0) {
- that.toperInfo.dialogVisible = false;
- clearInterval(clock);
- }
- }, 1000)
- },
- OpenStudent(msg) {
- let that = this;
- that.studentInfo.Rs = msg;
- that.studentInfo.dialogVisible = true;
- this.studentInfo.percent = 0;
- // 倒计时5秒自动关闭
- this.studentTime = 6;
- let clock = window.setInterval(() => {
- this.studentTime--;
- let num = (6 - this.studentTime) / 6 * 100;
- this.studentInfo.percent = parseInt(num) > 100 ? 100 : num;
- console.log('num' + num);
- if (parseInt(this.studentTime) <= 0) {
- that.studentInfo.dialogVisible = false;
- clearInterval(clock);
- }
- }, 1000)
- },
- // 载入课程信息
- ReadLessonInfo(Dp) {
- this.PlanName = Dp.PlanName;
- this.BeginTime = Dp.BeginTime;
- this.Teacher = Dp.Teacher;
- },
- // 分队展示
- 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) {
- item.sportLevel = sportLevel(item.activePercent);
- 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.toFixed(1));
- });
- Rs.blueUnite.map(function (item, t) {
- blueSum += parseFloat(item.Ck.toFixed(1));
- });
- that.redSum = redSum.toFixed(1);
- that.blueSum = blueSum.toFixed(1);
- // that.redSum = redSum;
- // that.blueSum = blueSum;
- // 进度条 formatCk
- let redFmtSum = 0;
- let blueFmtSum = 0;
- Rs.redUnite.map(function (item, t) {
- redFmtSum += item.formatCk
- });
- Rs.blueUnite.map(function (item, t) {
- blueFmtSum += item.formatCk
- });
- // pkVal
- let sumMax = redFmtSum + blueFmtSum;
- // 当为0时均分
- if (sumMax == 0) {
- that.pkVal = '50%';
- } else {
- // 限制最大
- let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
- that.pkVal = pkval + '%';
- }
- },
- // 获取上课学生信息
- 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) {
- if (!json.Dp) {
- // that.$message.error('没有获取到课程信息');
- return false
- } else {
- 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) > 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 - 8 * 60 * 60 * 1000);//减掉东八区时区问题
- 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
- that.$router.push({path: '/2pkRank'});
- 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);
- }
- },
- fmtInt(val) {
- if (val == 0) {
- return '0'
- } else {
- return parseInt(val);
- }
- },
- max100(val) {
- if (val <= 100) {
- return val
- } else {
- return 100
- }
- }
- },
- components: {
- Headside, newRecord,newStudent
- }
- }
- </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;
- }
- .bg > h5 div {
- float: left;
- width: 20%;
- text-align: left;
- text-indent: 0.1rem;
- }
- .bg > h5 .nameMd {
- width: 60%;
- text-align: center;
- text-indent: 0;
- }
- .pk_container li .user {
- width: 100%;
- overflow: visible;
- 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: visible;
- 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.7rem;
- height: 1.7rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- border-radius: 33rem;
- padding-top: 0.09rem;
- }
- .user .umd img {
- width: 1.5rem;
- height: 1.5rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- /*border-radius: 33rem;*/
- border-radius: 33rem;
- border: 0.1rem 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 {
- width: 0.4rem;
- 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;
- }
- .two .urt img {
- width: 0.3rem;
- height: 0.3rem;
- }
- /*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 .user .ult em {
- height: 1rem;
- }
- .three .urt em {
- line-height: 1.2rem;
- }
- .three .user .urt {
- height: 1rem;
- }
- .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*/
- .pk_container .four {
- width: 49%;
- float: left;
- margin-top: 0.4rem;
- margin-bottom: 0.5rem;
- }
- .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%;
- font-size: 0.5rem;
- line-height: 1rem;
- padding-right: 0.2rem;
- }
- .four .user .ult s {
- font-size: 0.2rem;
- line-height: 1rem;
- height: 1rem;
- overflow: hidden;
- }
- .four .user .ult em {
- height: 1.1rem;
- }
- .four .circle {
- width: 1rem;
- height: 1rem;
- }
- .four .user .umd img {
- width: 0.8rem;
- height: 0.8rem;
- }
- .four .urt img {
- width: 0.15rem;
- height: 0.15rem;
- 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: 0rem;
- font-size: 0.5rem;
- line-height: 1rem;
- padding-right: 0.2rem;
- }
- .eight .user .ult s {
- font-size: 0.2rem;
- line-height: 1rem;
- }
- .eight .circle {
- width: 1rem;
- height: 1rem;
- }
- .eight .user .umd img {
- width: 0.8rem;
- height: 0.8rem;
- }
- .eight .urt img {
- width: 0.15rem;
- height: 0.15rem;
- top: -0.8rem;
- }
- .eight .urt em {
- font-size: 0.4rem;
- line-height: 1rem;
- }
- .eight .user .ult em {
- height: 1.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;
- }
- /*color*/
- .user .umd img.blue {
- border-color: #028FE1;
- }
- .user .umd img.violet {
- border-color: #6D26FA;
- }
- .user .umd img.green {
- border-color: #059F00;
- }
- .user .umd img.yellow {
- border-color: #B5C700;
- }
- .user .umd img.brown {
- border-color: #EA8813;
- }
- .user .umd img.red {
- border-color: #CF1122;
- }
- .birth {
- position: relative;
- top: -2rem;
- width: 1.7rem;
- height: 1px;
- display: block;
- margin: 0 auto;
- }
- .birth img.birthCrow {
- position: relative;
- top: 0.2rem;
- width: 1.1rem;
- height: 0.4rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- border: none;
- }
- .birth img.birthText {
- position: relative;
- top: 1rem;
- width: 1.6rem;
- height: 0.6rem;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- border: none;
- }
- .three .birth img.birthCrow {
- top: 0.7rem;
- width: 0.8rem;
- height: 0.3rem;
- }
- .three .birth img.birthText {
- top: 1.1rem;
- width: 1.3rem;
- height: 0.6rem;
- }
- .four .birth {
- width: 1rem;
- }
- .four .birth img.birthCrow {
- top: 0.9rem;
- width: 0.7rem;
- height: 0.3rem;
- }
- .four .birth img.birthText {
- top: 1.3rem;
- width: 1rem;
- height: 0.4rem;
- }
- .eight .birth {
- width: 1rem;
- }
- .eight .birth img.birthCrow {
- top: 0.9rem;
- width: 0.7rem;
- height: 0.3rem;
- }
- .eight .birth img.birthText {
- top: 1.3rem;
- width: 1rem;
- height: 0.4rem;
- }
- </style>
|