1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(function(){"use strict";var e={809:function(e,t,n){n.d(t,{P:function(){return r}});const r=e=>{let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?decodeURIComponent(n[2]):null}},7188:function(e,t,n){var r=n(4843),o=n(7918);function a(e,t,n,r,a,i){const u=(0,o.g2)("router-view");return(0,o.uX)(),(0,o.Wv)(u)}n(5786);var i=n(1471),u=n(809),c=(0,o.pM)({setup(){const e=(0,i.rd)();let t=(0,u.P)("p");t&&e.push({path:"/"+t})}}),l=n(4097);const f=(0,l.A)(c,[["render",a]]);var s=f;const d=[{path:"/sleep",name:"sleep",component:()=>Promise.all([n.e(975),n.e(425)]).then(n.bind(n,1425)),meta:{title:"睡眠"}},{path:"/stepNumber",name:"stepNumber",component:()=>Promise.all([n.e(975),n.e(885)]).then(n.bind(n,6885)),meta:{title:"步数"}},{path:"/heartRate",name:"heartRate",component:()=>Promise.all([n.e(975),n.e(5)]).then(n.bind(n,3005)),meta:{title:"心率"}},{path:"/silenceHeartRate",name:"silenceHeartRate",component:()=>Promise.all([n.e(975),n.e(607)]).then(n.bind(n,1607)),meta:{title:"静息心率"}},{path:"/oxygenSaturation",name:"oxygenSaturation",component:()=>Promise.all([n.e(975),n.e(773)]).then(n.bind(n,6773)),meta:{title:"血氧饱和度"}},{path:"/pressure",name:"pressure",component:()=>Promise.all([n.e(975),n.e(496)]).then(n.bind(n,8496)),meta:{title:"压力"}},{path:"/temperature",name:"temperature",component:()=>Promise.all([n.e(975),n.e(688)]).then(n.bind(n,3688)),meta:{title:"体温"}},{path:"/weekly",name:"weekly",component:()=>Promise.all([n.e(975),n.e(750)]).then(n.bind(n,2750)),meta:{title:"周报"}},{path:"/monthly",name:"monthly",component:()=>Promise.all([n.e(975),n.e(477)]).then(n.bind(n,8477)),meta:{title:"月报"}}],m=(0,i.aE)({history:(0,i.Bt)(""),routes:d});var p=m,h=n(3469),b=(0,h.y$)({state:{},getters:{},mutations:{},actions:{},modules:{}});n(7227);const g=e=>e.toString().padStart(2,"0"),v=()=>{let e=new Date,t=e.getFullYear(),n=g(e.getMonth()+1),r=g(e.getDate());return t+"-"+n+"-"+r},y=(e,t,n)=>{let r=new Date(e+" 00:00:00");"before"===t&&r.setDate(r.getDate()-n),"after"===t&&r.setDate(r.getDate()+n);let o=r.getFullYear(),a=g(r.getMonth()+1),i=g(r.getDate());return o+"-"+a+"-"+i};var w={getCurrentDay:v,changeDay:y};const P=(0,r.Ef)(s);P.use(b),P.use(p),P.config.globalProperties.$times=w,P.mount("#app")}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,function(){var e=[];n.O=function(t,r,o,a){if(!r){var i=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],a=e[f][2];for(var u=!0,c=0;c<r.length;c++)(!1&a||i>=a)&&Object.keys(n.O).every(function(e){return n.O[e](r[c])})?r.splice(c--,1):(u=!1,a<i&&(i=a));if(u){e.splice(f--,1);var l=o();void 0!==l&&(t=l)}}return t}a=a||0;for(var f=e.length;f>0&&e[f-1][2]>a;f--)e[f]=e[f-1];e[f]=[r,o,a]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce(function(t,r){return n.f[r](e,t),t},[]))}}(),function(){n.u=function(e){return"js/"+e+"."+{5:"85ef1c92",425:"b115d421",477:"73e8bf49",496:"927279d5",607:"8b80594a",688:"2f3752ed",750:"ace1c509",773:"e5d4a3aa",885:"d5bdfadc",975:"6cd7525d"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"css/"+e+"."+{5:"4eb23eb5",425:"97a3e35c",477:"42c55bcd",496:"58c8310c",607:"2a1f5bd0",688:"9de6db8a",750:"e1d73b90",773:"d3e2f153",885:"9f77af7c"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="ma:";n.l=function(r,o,a,i){if(e[r])e[r].push(o);else{var u,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var s=l[f];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==t+a){u=s;break}}u||(c=!0,u=document.createElement("script"),u.charset="utf-8",u.timeout=120,n.nc&&u.setAttribute("nonce",n.nc),u.setAttribute("data-webpack",t+a),u.src=r),e[r]=[o];var d=function(t,n){u.onerror=u.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach(function(e){return e(n)}),t)return t(n)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=d.bind(null,u.onerror),u.onload=d.bind(null,u.onload),c&&document.head.appendChild(u)}}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,t,r,o,a){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",n.nc&&(i.nonce=n.nc);var u=function(n){if(i.onerror=i.onload=null,"load"===n.type)o();else{var r=n&&n.type,u=n&&n.target&&n.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+u+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=r,c.request=u,i.parentNode&&i.parentNode.removeChild(i),a(c)}};return i.onerror=i.onload=u,i.href=t,r?r.parentNode.insertBefore(i,r.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=n[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){o=i[r],a=o.getAttribute("data-href");if(a===e||a===t)return o}},r=function(r){return new Promise(function(o,a){var i=n.miniCssF(r),u=n.p+i;if(t(i,u))return o();e(r,u,null,o,a)})},o={524:0};n.f.miniCss=function(e,t){var n={5:1,425:1,477:1,496:1,607:1,688:1,750:1,773:1,885:1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=r(e).then(function(){o[e]=0},function(t){throw delete o[e],t}))}}}(),function(){var e={524:0};n.f.j=function(t,r){var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(function(n,r){o=e[t]=[n,r]});r.push(o[2]=a);var i=n.p+n.u(t),u=new Error,c=function(r){if(n.o(e,t)&&(o=e[t],0!==o&&(e[t]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,o[1](u)}};n.l(i,c,"chunk-"+t,t)}},n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,a,i=r[0],u=r[1],c=r[2],l=0;if(i.some(function(t){return 0!==e[t]})){for(o in u)n.o(u,o)&&(n.m[o]=u[o]);if(c)var f=c(n)}for(t&&t(r);l<i.length;l++)a=i[l],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(f)},r=self["webpackChunkma"]=self["webpackChunkma"]||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r=n.O(void 0,[504],function(){return n(7188)});r=n.O(r)})(); |