chunk-24ed1501.bb2ca79b.js 11 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24ed1501"],{"0bda":function(e,t,s){"use strict";s("81c4")},"20a5":function(e,t,s){"use strict";var a=s("1c8b"),n=s("3da3"),r=s("e1d9"),i=s("c7e6"),l=s("efe2"),c=1..toFixed,o=Math.floor,u=function(e,t,s){return 0===t?s:t%2===1?u(e,t-1,s*e):u(e*e,t/2,s)},v=function(e){var t=0,s=e;while(s>=4096)t+=12,s/=4096;while(s>=2)t+=1,s/=2;return t},p=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!l((function(){c.call({})}));a({target:"Number",proto:!0,forced:p},{toFixed:function(e){var t,s,a,l,c=r(this),p=n(e),f=[0,0,0,0,0,0],d="",m="0",g=function(e,t){var s=-1,a=t;while(++s<6)a+=e*f[s],f[s]=a%1e7,a=o(a/1e7)},h=function(e){var t=6,s=0;while(--t>=0)s+=f[t],f[t]=o(s/e),s=s%e*1e7},_=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var s=String(f[e]);t=""===t?s:t+i.call("0",7-s.length)+s}return t};if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(t=v(c*u(2,69,1))-69,s=t<0?c*u(2,-t,1):c/u(2,t,1),s*=4503599627370496,t=52-t,t>0){g(0,s),a=p;while(a>=7)g(1e7,0),a-=7;g(u(10,a,1),0),a=t-1;while(a>=23)h(1<<23),a-=23;h(1<<a),g(1,1),h(2),m=_()}else g(0,s),g(1<<-t,0),m=_()+i.call("0",p);return p>0?(l=m.length,m=d+(l<=p?"0."+i.call("0",p-l)+m:m.slice(0,l-p)+"."+m.slice(l-p))):m=d+m,m}})},"2f91":function(e,t,s){e.exports=s.p+"img/long.019a6e43.png"},"394b":function(e,t,s){},"5a65":function(e,t,s){e.exports=s.p+"img/s1.1e8e1e24.svg"},"7b65":function(e,t,s){"use strict";s("8d93")},"81c4":function(e,t,s){},"84b3":function(e,t,s){var a=s("d890"),n=s("c10f").trim,r=s("fc8c"),i=a.parseFloat,l=1/i(r+"-0")!==-1/0;e.exports=l?function(e){var t=n(String(e)),s=i(t);return 0===s&&"-"==t.charAt(0)?-0:s}:i},"8d93":function(e,t,s){},9359:function(e,t,s){e.exports=s.p+"img/ck.2fec7c9a.svg"},"97de":function(e,t,s){"use strict";s("394b")},a953:function(e,t,s){e.exports=s.p+"img/heart.430dbfcd.svg"},b40f:function(e,t,s){e.exports=s.p+"img/s2.e7c096c2.svg"},b92a:function(e,t,s){var a=s("1c8b"),n=s("84b3");a({global:!0,forced:parseFloat!=n},{parseFloat:n})},cd56:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.pageStyle},[a("Headside"),a("div",{staticClass:"userList"},[a("ul",e._l(e.students,(function(t,n){return e.students.length>0?a("li",{directives:[{name:"show",rawName:"v-show",value:e.students,expression:"students"}],class:e.studentsClassName[n].name},[1==e.students.length?a("div",{staticClass:"ltLi"}):e._e(),a("div",{staticClass:"centerLi"},[a("div",{staticClass:"topLi"},[a("div",{staticClass:"human"},[a("span",{staticClass:"name"},[a("div",{staticClass:"nameLt"},[1==t.Sex?a("i",{staticClass:"el-icon-male"}):e._e(),2==t.Sex?a("i",{staticClass:"el-icon-female"}):e._e()]),a("div",{staticClass:"nameMd"},[e._v(e._s(t.Name))]),a("div",{staticClass:"namert"})]),t.Head?a("img",{attrs:{src:t.Head,alt:""}}):e._e(),t.Head?e._e():a("img",{attrs:{src:s("467c"),alt:""}})]),a("div",{staticClass:"cla"},[0!=t.realHr?a("em",[e._v(e._s(e._f("max100")(t.activePercent)))]):e._e(),0==t.activePercent&&0==t.realHr?a("em",{staticClass:"plus"},[e._v(" --- ")]):e._e()]),e._m(0,!0),a("div",[a("div",{staticClass:"lhj"},[a("div",{class:[{heartJump:!0}]},[0!=t.realHr?a("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(t.activePercent)>90,expression:"parseInt(s.activePercent) > 90"}],staticClass:"fastJump"},[e._v(e._s(t.realHr))]):e._e(),0!=t.realHr?a("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(t.activePercent)<=90&&parseInt(t.activePercent)>30,expression:"parseInt(s.activePercent) <= 90 && parseInt(s.activePercent) > 30"}],staticClass:"normalJump"},[e._v(" "+e._s(t.realHr))]):e._e(),0!=t.realHr?a("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(t.activePercent)<=30,expression:"parseInt(s.activePercent) <= 30"}],staticClass:"slowJump"},[e._v(e._s(t.realHr))]):e._e(),0==t.realHr?a("span",{staticClass:"plus"},[e._v(" --- ")]):e._e()])]),e._m(1,!0)])]),a("div",{staticClass:"bottomLi"},[a("div",{staticClass:"btcla"},[a("img",{attrs:{src:s("5a65")}}),a("span",[e._v(e._s(e._f("fmtInt")(t.Cle)))])]),a("div",{staticClass:"btck"},[a("img",{attrs:{src:s("b40f")}}),a("span",[e._v(e._s(e._f("fmtInt")(t.PureCalorieNoVo2)))])]),a("div",{staticClass:"step"},[a("img",{attrs:{src:s("9359")}}),a("span",[e._v(e._s(e._f("fmtFloat")(t.Ck)))])])])]),1==e.students.length?a("div",{staticClass:"rtLi"}):e._e(),1==e.students.length?a("img",{staticClass:"longIcon",attrs:{src:s("2f91")}}):e._e()]):e._e()})),0)]),a("levelIcon"),a("newRecord",{attrs:{"toper-info":e.toperInfo}})],1)},n=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"lcla"},[s("span",[e._v("%")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"rhj"},[a("img",{attrs:{src:s("a953")}})])}],r=(s("20a5"),s("b92a"),s("33a2"),s("1fb3"),s("0b0b")),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"",visible:e.toperInfo.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.toperInfo,"dialogVisible",t)}}},[a("div",{staticClass:"eggContainer"},[a("div",{staticClass:"toper"},[a("img",{attrs:{src:e.toperInfo.toper.Head,alt:""}}),a("span",[e._v(e._s(e.toperInfo.toper.UserName))])]),a("div",{staticClass:"info"},[a("div",{staticClass:"lt"},[a("h5",[e._v(e._s(e.toperInfo.toper.CleTitle))]),a("div",{staticClass:"detail"},[a("em",[e._v(e._s(e._f("fmtInt")(e.toperInfo.toper.Cle)))]),a("span",[e._v(e._s(e.toperInfo.toper.CleUnit))])]),a("img",{staticClass:"icons",attrs:{src:s("cdd4")}})]),a("div",{staticClass:"rt"},[a("h5",[e._v(e._s(e.toperInfo.toper.CkTitle))]),a("div",{staticClass:"detail"},[a("em",[e._v(e._s(e._f("fmtFloat")(e.toperInfo.toper.Ck)))]),a("span",[e._v(e._s(e.toperInfo.toper.CkUnit))])]),a("img",{staticClass:"icons",attrs:{src:s("cdd4")}})])])])])},l=[],c={data:function(){return{dialogTableVisible:!0,dialogFormVisible:!1}},props:["toperInfo"],filters:{fmtNum:function(e){return 0==e?"--":parseInt(e)<0?0:parseInt(e)>0?e:void 0},fmtFloat:function(e){return 0==e?"0":parseFloat(e).toFixed(1)},fmtInt:function(e){return 0==e?"0":parseInt(e)}}},o=c,u=(s("0bda"),s("2c07")),v=Object(u["a"])(o,i,l,!1,null,"321c801b",null),p=v.exports,f=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},d=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"levelIcon"},[s("ul",[s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" 0%-"),s("br"),e._v(" 39% ")])]),s("em",[e._v("激活放松")])]),s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" 40%-"),s("br"),e._v("54% ")])]),s("em",[e._v("动态热身")])]),s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" 55%-"),s("br"),e._v("69% ")])]),s("em",[e._v("脂肪燃烧")])]),s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" 70%-"),s("br"),e._v("79% ")])]),s("em",[e._v("糖分消耗")])]),s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" 80%-"),s("br"),e._v("89% ")])]),s("em",[e._v("心肺训练")])]),s("li",[s("span",{staticClass:"cube"},[s("div",[e._v(" ≥90% ")])]),s("em",[e._v("峰值锻炼")])])])])}],m={},g=m,h=(s("7b65"),Object(u["a"])(g,f,d,!1,null,"022c3c17",null)),_=h.exports,b=s("b8a1"),C=(s("7d2a"),s("379d"),s("1cfa")),I={data:function(){return{eqSn:"30:9C:23:0C:8B:1E",pageStyle:RandomBg(),trueDate:!1,totalTime:4,times:1,thisClassName:"",studentsClassName:[],students:[],single:[],dialogVisible:!1,serachBtnStatus:!1,dialogMsg:"",imgsrc:"../static/img/people/",toperInfo:{dialogVisible:!1,toper:{}},fakeEgg:{Rs:{DuId:37,UserId:0,UserName:"郑伟",Sex:1,Head:"https://img-operation.csdnimg.cn/csdn/silkroad/img/1604989753379.png",Cle:400,CleTitle:"个人单次卡路里记录",CleUnit:"千卡",CkTitle:"个人单次CK记录",Ck:99.9,CkUnit:"CK值"}},mainTimer:null,timer2:null}},mounted:function(){var e=this;if(this.trueDate)this.GetgetUserList(),this.curgetClassStat(),this.mainTimer=setInterval((function(){e.GetgetUserList(),e.curgetClassStat()}),1e3),this.timer2=setInterval((function(){e.createEgg()}),6e3),this.createEgg();else{var t=fakeNews(1);this.giveClassName(t),this.students=t}},watch:{$route:function(e){var t=this;"/main"==e.path?this.trueDate?(this.mainTimer=setInterval((function(){t.GetgetUserList(),t.curgetClassStat()}),1e3),this.GetgetUserList(),this.timer2=setInterval((function(){t.createEgg()}),6e3)):(this.students=fakeNews(2),this.giveClassName(this.students)):(clearInterval(this.mainTimer),clearInterval(this.timer2))}},beforeDestroy:function(){clearInterval(this.mainTimer),clearInterval(this.timer2),this.mainTimer=null,this.timer2=null},methods:{alertInfo:function(e){alert(e)},createEgg:function(){var e=this,t=this,s={token:localStorage.token,eqSn:localStorage.eqSn},a=C.stringify(s);Object(b["h"])(a).then((function(s){var a=s;if(0==a.Code)e.OpenEgg(a);else{if(999==a.Code)return!1;999!=a.Code&&t.$message.error(a.Memo+"[egg]")}}))},OpenEgg:function(e){var t=this;this.toperInfo.toper=e.Rs,this.toperInfo.dialogVisible=!0;var s=this;this.totalTime=4;var a=window.setInterval((function(){t.totalTime--,parseInt(t.totalTime)<0&&(s.toperInfo.dialogVisible=!1,clearInterval(a))}),1e3)},GetgetUserList:function(){var e=this,t={token:localStorage.token,eqSn:localStorage.eqSn},s=C.stringify(t);Object(b["g"])(s).then((function(t){var s=t;0==s.Code?(e.students=s.Rs,e.giveClassName(s.Rs)):"999"==s.Code?e.students="":e.$message.error(s.Memo)}))},curgetClassStat:function(){console.log(123);var e=this,t={token:localStorage.token,eqSn:localStorage.eqSn},s=C.stringify(t);Object(b["f"])(s).then((function(t){var s=t;if(0==s.Code){if(0==s.ClassOn)switch(console.log("下课了"),parseInt(s.dp)){case 0:e.$router.push({path:"/rank"});break;case 1:e.$router.push({path:"/"});break;case 2:e.$router.push({path:"/pk"});break;case 3:e.$router.push({path:"/threepk"});break}}else console.log("已上课")}))},giveClassName:function(e){for(var t=this,s="",a="",n=0;n<parseInt(e.length);n++){switch(!0){case 1==parseInt(e.length):s="max";break;case 2==parseInt(e.length):s="two";break;case parseInt(e.length)<=4&&parseInt(e.length)>2:s="three";break;case parseInt(e.length)<=6&&parseInt(e.length)>4:s="six";break;case parseInt(e.length)<=9&&parseInt(e.length)>6:s="nine";break;case parseInt(e.length)<=12&&parseInt(e.length)>9:s="ten";break;case parseInt(e.length)<=15&&parseInt(e.length)>12:s="twelve";break;case parseInt(e.length)<=20&&parseInt(e.length)>15:s="sixteen";break;case parseInt(e.length)<=24&&parseInt(e.length)>20:s="twenty";break;case parseInt(e.length)<=30&&parseInt(e.length)>24:s="twentyFour";break;case parseInt(e.length)>31:s="thirtyFive";break}var r=parseInt(e[n].activePercent);switch(!0){case r>=90:a="red";break;case r<=89&&r>79:a="brown";break;case r<=79&&r>70:a="yellow";break;case r<=70&&r>54:a="green";break;case r<=54&&r>39:a="violet";break;case r<=39:a="blue";break}t.studentsClassName[n]={name:s+" "+a}}}},filters:{fmtNum:function(e){return 0==e?"--":parseInt(e)<0?0:parseInt(e)>0?e:void 0},fmtFloat:function(e){return 0==e?"0.0":parseFloat(e).toFixed(1)},fmtInt:function(e){return 0==e?"0":parseInt(e)},max100:function(e){return e<=100?e:100}},components:{Headside:r["a"],newRecord:p,levelIcon:_}},k=I,w=(s("97de"),Object(u["a"])(k,a,n,!1,null,"2b3eebd7",null));t["default"]=w.exports},cdd4:function(e,t,s){e.exports=s.p+"img/record_icon.3167655f.svg"},e1d9:function(e,t,s){var a=s("2118");e.exports=function(e){if("number"!=typeof e&&"Number"!=a(e))throw TypeError("Incorrect invocation");return+e}}}]);
  2. //# sourceMappingURL=chunk-24ed1501.bb2ca79b.js.map