| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918 |
- <template>
- <div class="pages">
- <Headside></Headside>
- <div class="pk-detail-con">
- <div class="progress">
- <div class="progress-bar" :style="{width: pkVal}">
- <i class="lightning"></i>
- </div>
- <div class="right-bar" :style="{width: yellowVal}">
- <i class="lightning"></i>
- </div>
- </div>
- </div>
- <div class="lessonInfo">
- <div class="lt">
- <div class="bottomInfo">
- <span class="names">
- {{PlanName}}
- </span>
- <div class="teacher">
- <span v-if="Teacher"> 教练:{{Teacher}}</span>
- <span>人数:{{num}}</span>
- </div>
- </div>
- </div>
- <div class="md">
- <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>
- <img class="vs" src="../assets/img/pk/vs.svg"/>
- <div class="cubes ycube">
- <em>黄队</em>
- </div>
- </div>
- <div class="teamScore">
- <div class="lt">{{redSum}} <em>CK</em></div>
- <div class="md">{{blueSum}} <em>CK</em></div>
- <div class="rt">{{yellowSum}} <em>CK</em></div>
- </div>
- </div>
- <div class="rt">
- <div class="classTime">
- {{classInfo.endTime}}
- </div>
- </div>
- </div>
- <div class="pk_container">
- <div class="pl_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" v-if=" s.RealHr != 0">
- <power :cur-power="s.PowerPercent"></power>
- </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 class="isPrivate" v-if="s.IsPrivate == 1">
- <i></i>
- </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 class="pl_md">
- <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" v-if=" s.RealHr != 0">
- <power :cur-power="s.PowerPercent"></power>
- </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 class="isPrivate" v-if="s.IsPrivate == 1">
- <i></i>
- </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 class="pl_rt">
- <ul>
- <li :class="YellowstudentsClassName" v-for="(s,i) in students.yellowUnite">
- <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" v-if=" s.RealHr != 0">
- <power :cur-power="s.PowerPercent"></power>
- </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"
- 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 class="isPrivate" v-if="s.IsPrivate == 1">
- <i></i>
- </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';
- import power from '@/components/power'
- let qs = require('qs');
- export default {
- data() {
- return {
- trueDate: true,//启用真实数据 true / false
- RedstudentsClassName: '',
- BluestudentsClassName: '',
- YellowstudentsClassName: '',
- studentsClassName: [],
- redSum: 0,
- blueSum: 0,
- yellowSum: 0,
- pkVal: '33.33%',
- yellowVal: '33.33%',
- students: {
- redUnite: [],
- blueUnite: [],
- yellowUnite: [],
- },
- PlanName: '',
- Teacher: '',
- num: 0,
- classInfo: {
- name: '竞技课程',
- num: '0',
- btTime: '2020-11-13 09:00:00',//时间戳
- endTime: '00:00:00',
- redSum: 0,
- blueSum: 0,
- },
- totalTime: 30,
- 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(21, 3);
- that.UniteBreak(Rs);
- // 人口总数
- that.num = Rs ? Rs.length + 1 : 0;
- this.ClacClassTime();
- }
- },
- watch: {
- '$route': function (val) {
- if (val.path == '/threepk') {
- if (this.trueDate) {
- this.init();
- // this.PkEgg = setInterval(() => {
- // this.createEgg();
- // }, 6000);
- } else {
- let Rs = fakeNews(16, 3);
- 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.PkTimer = setInterval(() => {
- this.GetgetUserList();
- this.curgetClassStat();
- }, 1000);
- this.GetgetUserList();
- this.timer2 = setInterval(() => {
- this.createEgg();
- }, 31000);
- this.timer3 = setInterval(() => {
- this.createNewStudent();
- }, 6000);
- },
- // 载入课程信息
- 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 = [];
- that.students.yellowUnite = [];
- if (!Rs) {
- that.students.redUnite = [];
- that.students.blueUnite = [];
- that.students.yellowUnite = [];
- } 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);
- }
- if (item.GroupNo == 3) {
- that.students.yellowUnite.push(item);
- }
- })
- }
- that.giveClassName(that.students.redUnite, 1);
- that.giveClassName(that.students.blueUnite, 2);
- that.giveClassName(that.students.yellowUnite, 3);
- that.calcSumCK(that.students);
- },
- // 计算各队总分
- calcSumCK(Rs) {
- let that = this;
- let redSum = 0;
- let blueSum = 0;
- let yellowSum = 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))
- });
- Rs.yellowUnite.map(function (item, t) {
- yellowSum += parseFloat(item.Ck.toFixed(1))
- });
- that.redSum = redSum.toFixed(1);
- that.blueSum = blueSum.toFixed(1);
- that.yellowSum = yellowSum.toFixed(1);
- // 进度条 FormatCk
- let redFmtSum = 0;
- let blueFmtSum = 0;
- let yellowFmtSum = 0;
- Rs.redUnite.map(function (item, t) {
- redFmtSum += item.FormatCk
- });
- Rs.blueUnite.map(function (item, t) {
- blueFmtSum += item.FormatCk
- });
- Rs.yellowUnite.map(function (item, t) {
- yellowFmtSum += item.FormatCk
- });
- // pkVal
- let sumMax = redFmtSum + blueFmtSum + yellowFmtSum;
- // 当为0时均分
- if (sumMax == 0) {
- that.pkVal = '33.33%';
- that.yellowVal = '33.33%';
- } else {
- // 限制最大
- let pkval = parseInt((redFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((redFmtSum / sumMax) * 100);
- let yellowVal = parseInt((yellowFmtSum / sumMax) * 100) > 100 ? 100 : parseInt((yellowFmtSum / sumMax) * 100);
- that.pkVal = pkval.toFixed(1) + '%';
- that.yellowVal = yellowVal.toFixed(1) + '%';
- }
- // 获取人数 计算人均CK
- // let redHuman = 0;
- // let blueHuman = 0;
- // let yellowHuman = 0;
- // if (Rs.redUnite != '') {
- // redHuman = Rs.redUnite.length;
- // that.redSum = parseFloat(redSum / redHuman).toFixed(1);
- // } else {
- // that.redSum = 0
- // }
- //
- // if (Rs.blueUnite != '') {
- // blueHuman = Rs.blueUnite.length;
- // that.blueSum = parseFloat(blueSum / blueHuman).toFixed(1);
- // } else {
- // that.blueSum = 0
- // }
- // if (Rs.yellowUnite != '') {
- // yellowHuman = Rs.yellowUnite.length;
- // that.yellowSum = parseFloat(yellowSum / yellowHuman).toFixed(1);
- // } else {
- // that.yellowSum = 0
- // }
- // let sumMax = parseFloat(that.redSum) + parseFloat(that.blueSum) + parseFloat(that.yellowSum);
- // // 当为0时均分
- // if (sumMax == 0) {
- // that.pkVal = '50%';
- // that.yellowVal = '33.33%';
- // } else {
- // // 限制最大
- // let pkval = parseInt((that.redSum / sumMax) * 100) > 100 ? 100 : parseInt((that.redSum / sumMax) * 100);
- // let yellowVal = parseInt((that.yellowSum / sumMax) * 100) > 100 ? 100 : parseInt((that.yellowSum / sumMax) * 100);
- // that.pkVal = pkval + '%';
- // that.yellowVal = yellowVal + '%';
- // }
- },
- // 获取上课学生信息
- GetgetUserList() {
- let that = this;
- let param = {
- token: localStorage.token,
- eqSn: localStorage.eqSn
- };
- 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: '/3pkRank'});
- } 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) <= 4 && parseInt(res.length) >= 3:
- numberClass = 'four';
- break;
- case parseInt(res.length) <= 6 && parseInt(res.length) > 4:
- numberClass = 'eight';
- break;
- case parseInt(res.length) > 6:
- numberClass = 'eight';
- break;
- }
- if (type == 1) {
- that.RedstudentsClassName = numberClass;
- }
- if (type == 2) {
- that.BluestudentsClassName = numberClass;
- }
- if (type == 3) {
- that.YellowstudentsClassName = 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 + '%';
- // },
- // 启动一个成就彩蛋
- 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 = 30;
- 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 = 15;
- let clock = window.setInterval(() => {
- this.studentTime--;
- let num = (15 - this.studentTime) / 15 * 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)
- },
- // 当前课程状态
- 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("已下课");
- // 0: 下课 团课/私教 排名
- // 1:团课/私教 todo
- // 2:竞技课2PK
- // 3:竞技课3PK
- that.$router.push({path: '/3pkRank'});
- console.log('json.dp' + json.dp);
- switch (parseInt(json.dp)) {
- case 2:
- that.$router.push({path: '/3pkRank'});
- break;
- case 3:
- that.$router.push({path: '/3pkRank'});
- 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,power
- }
- }
- </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("../assets/img/threepk/threepkbg.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: absolute;*/
- position: relative;
- top: 0rem;
- width: 100%;
- height: 0.6rem;
- display: block;
- margin: 0 auto;
- padding-top: 0.35rem;
- overflow: hidden;
- }
- .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 {
- float: left;
- 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-size: 40px 40px;
- /*background-image: linear-gradient(45deg, #ff9960 25%, #f75e07 0, #f75e07 50%, #ff9960 0, #ff9960 75%, #f75e07 0);*/
- /*background-size: 40px 40px;*/
- }
- .right-bar {
- float: right;
- position: relative;
- right: 0;
- top: 0rem;
- height: 0.3rem;
- text-align: right;
- background-color: #DBB900;
- -moz-transition: width .6s ease;
- -webkit-transition: width .6s ease;
- transition: width .6s ease;
- background-image: url("../static/img/pk/red.png");
- background-size: 40px 40px;
- }
- .progress, .progress-bar {
- /*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: 100%;
- }
- .right-bar .lightning {
- position: relative;
- top: -0.5rem;
- width: 1rem;
- height: 1.3rem;
- margin-right: -0.5rem;
- background: url("../static/img/pk/light.png") no-repeat center;
- background-size: 100%;
- left: -0.4rem;
- float: left;
- }
- .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;
- }
- .lessonInfo {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .lessonInfo .lt {
- width: 30%;
- float: left;
- }
- .lessonInfo .md {
- width: 40%;
- float: left;
- }
- .lessonInfo .rt {
- width: 30%;
- float: right;
- }
- .bottomInfo {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .bottomInfo .names {
- width: 70%;
- 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;
- color: #fff;
- font-size: 0.3rem;
- padding-top: 0.2rem;
- }
- .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;
- }
- .cubelist {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .cubelist .cubes {
- width: 20%;
- height: 1.5rem;
- overflow: hidden;
- float: left;
- background-position: top center;
- }
- .cubelist .vs {
- width: 20%;
- height: 0.6rem;
- overflow: hidden;
- float: left;
- padding-top: 0.4rem;
- }
- .cubelist .cubes em {
- width: 80%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- text-align: center;
- font-size: 0.2rem;
- font-style: normal;
- color: #fff;
- line-height: 1.5rem;
- }
- .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%;
- }
- .cubes.ycube {
- background: url("../static/img/pk/ycube.png");
- background-size: 100% 100%;
- }
- .teamScore {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .lessonInfo .teamScore div {
- width: 25%;
- float: left;
- color: #fff;
- font-size: 0.4rem;
- text-align: left;
- }
- .lessonInfo .teamScore .md {
- width: 50%;
- text-align: center;
- }
- .lessonInfo .teamScore .rt {
- float: right;
- text-align: right;
- }
- .lessonInfo .teamScore em {
- font-size: 0.2rem;
- }
- .pk_container {
- width: 100%;
- overflow: hidden;
- display: block;
- margin: 0 auto;
- }
- .pk_container .pl_lt {
- width: 33.333%;
- float: left;
- }
- .pk_container .pl_rt {
- width: 33.333%;
- float: right;
- }
- .pk_container .pl_md {
- width: 33.333%;
- float: left;
- }
- .pk_container ul {
- width: 98%;
- 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 .pl_lt .bg {
- border: 2px solid rgba(255, 143, 122, 0.5);
- background: rgba(194, 36, 6, 0.5);
- }
- .pk_container .pl_md .bg {
- border: 2px solid rgba(80, 115, 255, 0.5);
- background: rgba(0, 30, 152, 0.5);
- }
- .pk_container .pl_rt .bg {
- border: 2px solid rgba(255, 239, 149, 0.5);
- /*background: rgba(255, 230, 0, 0.5);*/
- /*background: rgba(233, 192, 12, 0.9);*/
- background: rgba(245,195,0,0.9);
- }
- .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: 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: 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.73rem;
- height: 1.73rem;
- overflow: visible;
- display: block;
- margin: 0 auto;
- border-radius: 33rem;
- padding-top: 0.09rem;
- }
- .user .umd img {
- width: 1.45rem;
- height: 1.45rem;
- overflow: visible;
- display: block;
- margin: 0 auto;
- 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 {
- 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);
- }
- }
- .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;
- }
- .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;
- }
- .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: 100%;
- overflow: hidden;
- display: block;
- }
- .pk_container li.two .user {
- height: 1.75rem;
- overflow: hidden;
- }
- .two .bottomLi {
- width: 98%;
- font-size: 0.35rem;
- margin-top: 0rem;
- 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: 26%;
- 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;
- margin: 0 auto;
- margin-bottom: 0.1rem;
- float: none;
- }
- .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*/
- .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%;
- margin-right: 0;
- font-size: 0.5rem;
- line-height: 1rem;
- padding-right: 0.2rem;
- }
- .four .user .ult s {
- font-size: 0.2rem;
- line-height: 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;
- }
- .four .nameMd {
- font-size: 0.2rem;
- }
- /*six*/
- /*eight*/
- .eight {
- width: 50%;
- 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%;
- padding-right: 0.2rem;
- margin-right: 0rem;
- font-size: 0.4rem;
- line-height: 0.8rem;
- }
- .eight .user .ult s {
- font-size: 0.2rem;
- line-height: 1.3rem;
- }
- .eight .circle {
- width: 1rem;
- height: 1rem;
- }
- .eight .user .umd img {
- width: 0.5rem;
- height: 0.5rem;
- }
- .eight .urt img {
- width: 0.15rem;
- height: 0.15rem;
- top: -0.6rem;
- right: 0.2rem;
- }
- .eight .urt em {
- font-size: 0.3rem;
- line-height: 0.8rem;
- padding-right: 45%;
- }
- .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: 0.85rem;
- overflow: hidden;
- }
- .eight .nameMd {
- font-size: 0.2rem;
- }
- /*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.4rem;
- 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: 0.8rem;
- height: 0.35rem;
- }
- .eight .birth {
- width: 1rem;
- }
- .eight .birth img.birthCrow {
- top: 1.25rem;
- width: 0.5rem;
- height: 0.2rem;
- }
- .eight .birth img.birthText {
- top: 1.5rem;
- width: 0.7rem;
- height: 0.3rem;
- }
- /*isPrivate*/
- .isPrivate {
- position: relative;
- float: right;
- right: -0.35rem;
- width: 55%;
- height: 1px;
- display: block;
- margin: 0 auto;
- overflow: visible;
- }
- .isPrivate i {
- overflow: hidden;
- display: block;
- margin: 0 auto;
- margin-top: 0.2rem;
- width: 0.8rem !important;
- height: 0.8rem !important;
- border: none !important;
- background: url("../static/img/privateSign.svg");
- background-size: 100% 100%;
- background-position: top center;
- }
- .two .isPrivate {
- top: -2rem;
- }
- .three .isPrivate {
- top: -1.4rem;
- right: -0.1rem;
- }
- .three .isPrivate i {
- width: 0.6rem !important;
- height: 0.6rem !important;
- }
- .four .isPrivate {
- top: -1.28rem;
- right: -0.27rem;
- }
- .four .isPrivate i {
- width: 0.4rem !important;
- height: 0.4rem !important;
- }
- .eight .isPrivate {
- top: -1rem;
- right: -0.1rem;
- }
- .eight .isPrivate i {
- width: 0.4rem !important;
- height: 0.4rem !important;
- }
- </style>
|