14 lines
537 KiB
JavaScript
14 lines
537 KiB
JavaScript
|
|
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0004":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("9523")),r=i("26cb"),s=n(i("fa40")),o=n(i("7bce")),c=n(i("ecc4"));function l(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?l(Object(i),!0).forEach((function(e){(0,a.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var d={components:{targetWeight:s.default,firstweight:o.default,qiunDataCharts:c.default},computed:u(u({},(0,r.mapState)(["user","Trend","appTheme"])),{},{userInfo:function(){return this.user},endDate:function(){return this.$tools.getDate("start")},startDate:function(){return this.$tools.GetDateStr(-90)}}),mounted:function(){this.active=0;for(var e=this.$json.TrendList,i={weight:{categories:[],series:[{color:"#ff9f40",name:"\u4f53\u91cd",data:[]}]},bmi:{categories:[],series:[{name:"bmi",color:"#5ba7ff",data:[]}]},muscle:{categories:[],series:[{color:"#ff7f91",name:"\u808c\u8089",data:[]}]},fat_r:{categories:[],series:[{color:"#3fcba7",name:"\u8102\u80aa",data:[]}]}},n=0;n<e.length;n++)i.weight.categories.push(e[n].time),i.bmi.categories.push(e[n].time),i.muscle.categories.push(e[n].time),i.fat_r.categories.push(e[n].time),i.weight.series.forEach((function(t){t.data.push(e[n].weight)})),i.bmi.series.forEach((function(t){t.data.push(e[n].bmi)})),i.muscle.series.forEach((function(t){t.data.push(e[n].muscle)})),i.fat_r.series.forEach((function(t){t.data.push(e[n].fat_r)}));for(n=0;n<this.weightList.length;n++)this.weightList[n].Line=i[this.weightList[n].key];this.showbox(0),t("log","222",i,this.weightList," at pages/weight/components/charts.vue:169")},methods:{getList:function(e,i){t("log","fanhui",e,i," at pages/weight/components/charts.vue:174");var n=this;n.$model.getTrendList({familyid:uni.getStorageSync("familyid"),starttime:e,endtime:i}).then((function(t){if(t){for(var e=0;e<n.weightList.length;e++)n.weightList[e].Line=t[n.weightList[e].key];n.showbox(0)}}))},showbox:function(t){var e=this;e.handTrue=!1,this.$nextTick((function(){e.handTrue=!0,e.lineData=e.weightList[t].Line})),e.active1=t},handStartTimeH:function(t){if(this.endTime){if(Date.parse(t.target.value)>Date.parse(this.endTime))return void this.$tools.msg("\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65f6\u95f4")}else if(Date.parse(t.target.value)>Date.parse(this.endDate))return void this.$tools.msg("\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65f6\u95f4");this.startTime=t.target.value;var e=this.endTime?this.endTime:this.endDate;this.getList(this.startTime,e)},handEndTimeH:function(t){if(this.startTime){if(Date.parse(t.target.value)<Date.parse(this.startTime))return void this.$tools.msg("\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65f6\u95f4")}else if(Date.parse(t.target.value)<Date.parse(this.startDate))return void this.$tools.msg("\u8bf7\u9009\u62e9\u6b63\u786e\u7684\u65f6\u95f4");this.endTime=t.target.value;var e=this.startTime?this.startTime:this.startDate;this.getList(e,this.endTime)},handleClick:function(t){0!=t?1!=t||this.$store.commit("changeFirst",!0):this.$store.commit("changeTarget",!0)},navTo:function(t){uni.navigateTo({url:t})}},data:function(){return{lineData:null,type:null,active1:0,weight:"",startTime:"",endTime:"",active:0,token:null,handTrue:!0,TrendList:[],weightList:[{title:"\u4f53\u91cd",key:"weight",showCon:!1,Line:{categories:[],series:[{color:"#fb7b92",name:"\u4f53\u91cd",data:[]}]}},{title:"BMI",key:"bmi",Line:{categories:[],series:[{color:"#6bb0fe",name:"bmi",data:[]}]}},{title:"\u808c\u8089",key:"muscle",showCon:!1,Line:{categories:[],series:[{color:"#ff9f40",name:"\u808c\u8089\u7387",data:[]}]}},{tit
|
||
|
|
/*!
|
||
|
|
* vuex v3.6.2
|
||
|
|
* (c) 2021 Evan You
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
function(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var i=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,i.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(d))}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(t){0},f.prototype.commit=function(t,e,i){var n=this,a=y(t,e,i),r=a.type,s=a.payload,o=(a.options,{type:r,payload:s}),c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(o,n.state)})))},f.prototype.dispatch=function(t,i){var n=this,a=y(t,i),r=a.type,s=a.payload,o={type:r,payload:s},c=this._actions[r];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(e){0}var l=c.length>1?Promise.all(c.map((function(t){return t(s)}))):c[0](s);return new Promise((function(t,i){l.then((function(i){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(e){0}t(i)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(e){0}i(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){var i="function"===typeof t?{before:t}:t;return p(i,this._actionSubscribers,e)},f.prototype.watch=function(t,e,i){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,i)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),m(this,this.state,t,this._modules.get(t),i.preserveState),v(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var i=_(e.state,t.slice(0,-1));d.delete(i,t[t.length-1])})),g(this)},f.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(t){return String.fromCharCode(t)})).join("")]=function(t){this._modules.update(t),g(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,h);var b=S((function(t,e){var i={};return $(e).forEach((function(e){var n=e.key,a=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=T(this.$store,"mapState",t);if(!n)return;e=n.context.state,i=n.context.getters}return"function"===typeof a?a.call(this,e,i):e[a]},i[n].vuex=!0})),i})),w=S((function(t,e){var i={};return $(e).forEach((function(e){var n=e.key,a=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.commit;if(t){var r=T(this.$store,"mapMutations",t);if(!r)return;n=r.context.commit}return"function"===typeof a?a.apply(this,[n].concat(e)):n.apply(this.$store,[a].concat(e))}})),i})),C=S((function(t,e){var i={};return $(e).forEach((function(e){var n=e.key,a=e.val;a=t+a,i[n]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[a]},i[n].vuex=!0})),i})),k=S((function(t,e){var i={};return $(e).forEach((function(e){var n=e.key,a=e.val;i[n]=function(){var e=[],i=arguments.length;while(i--)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var r=T(this.$store,"mapActions",t);if(!r)return;n=r.context.dispatch}return"function"===typeof a?a.apply(this,[n].concat(e)):n.apply(this.$store,[a].concat(e))}})),i}));function $(t){return function(t){return Array.isArray(t)||o(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function S(t){return function(e,i){return"string"!==typeof e?(i=e,e=""):"/"!==e.ch
|
||
|
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=a=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},i=Object.prototype,r=i.hasOwnProperty,s=Object.defineProperty||function(t,e,i){t[e]=i.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function d(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(D){d=function(t,e,i){return t[e]=i}}function f(t,e,i,n){var a=e&&e.prototype instanceof g?e:g,r=Object.create(a.prototype),o=new P(n||[]);return s(r,"_invoke",{value:k(t,i,o)}),r}function h(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(D){return{type:"throw",arg:D}}}e.wrap=f;var p={};function g(){}function v(){}function m(){}var _={};d(_,c,(function(){return this}));var y=Object.getPrototypeOf,x=y&&y(y(A([])));x&&x!==i&&r.call(x,c)&&(_=x);var b=m.prototype=g.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){var i;s(this,"_invoke",{value:function(a,s){function o(){return new e((function(i,o){(function i(a,s,o,c){var l=h(t[a],t,s);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,o,c)}),(function(t){i("throw",t,o,c)})):e.resolve(d).then((function(t){u.value=t,o(u)}),(function(t){return i("throw",t,o,c)}))}c(l.arg)})(a,s,i,o)}))}return i=i?i.then(o,o):o()}})}function k(t,e,i){var n="suspendedStart";return function(a,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw r;return O()}for(i.method=a,i.arg=r;;){var s=i.delegate;if(s){var o=$(s,i);if(o){if(o===p)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var c=h(t,e,i);if("normal"===c.type){if(n=i.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n="completed",i.method="throw",i.arg=c.arg)}}}function $(t,e){var i=e.method,n=t.iterator[i];if(void 0===n)return e.delegate=null,"throw"===i&&t.iterator["return"]&&(e.method="return",e.arg=void 0,$(t,e),"throw"===e.method)||"return"!==i&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+i+"' method")),p;var a=h(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:O}}function O(){return{value:void 0,done:!0}}return v.prototype=m,s(b,"constructor",{value:m,configurable:!0}),s(m,"constructor",{value:v,configurable:!0}),v.displayName=d(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,d(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(C.prototype),d(C.prototype,l,(f
|
||
|
|
/*!
|
||
|
|
* vue-i18n v8.28.2
|
||
|
|
* (c) 2022 kazuya kawaguchi
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/
|
||
|
|
var a=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],r=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function s(t,e){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}var o=Array.isArray;function c(t){return null!==t&&"object"===typeof t}function l(t){return"boolean"===typeof t}function u(t){return"string"===typeof t}var d=Object.prototype.toString;function f(t){return"[object Object]"===d.call(t)}function h(t){return null===t||void 0===t}function p(t){return"function"===typeof t}function g(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];var i=null,n=null;return 1===t.length?c(t[0])||o(t[0])?n=t[0]:"string"===typeof t[0]&&(i=t[0]):2===t.length&&("string"===typeof t[0]&&(i=t[0]),(c(t[1])||o(t[1]))&&(n=t[1])),{locale:i,params:n}}function v(t){return JSON.parse(JSON.stringify(t))}function m(t,e){return!!~t.indexOf(e)}var _=Object.prototype.hasOwnProperty;function y(t,e){return _.call(t,e)}function x(t){for(var e=arguments,i=Object(t),n=1;n<arguments.length;n++){var a=e[n];if(void 0!==a&&null!==a){var r=void 0;for(r in a)y(a,r)&&(c(a[r])?i[r]=x(i[r],a[r]):i[r]=a[r])}}return i}function b(t,i){if(t===i)return!0;var n=c(t),a=c(i);if(!n||!a)return!n&&!a&&String(t)===String(i);try{var r=o(t),s=o(i);if(r&&s)return t.length===i.length&&t.every((function(t,e){return b(t,i[e])}));if(r||s)return!1;var l=Object.keys(t),u=Object.keys(i);return l.length===u.length&&l.every((function(e){return b(t[e],i[e])}))}catch(e){return!1}}function w(t){return null!=t&&Object.keys(t).forEach((function(e){"string"==typeof t[e]&&(t[e]=function(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}(t[e]))})),t}var C={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var i=e.data,n=e.parent,a=e.props,r=e.slots,s=n.$i18n;if(s){var o=a.path,c=a.locale,l=a.places,u=r(),d=s.i(o,c,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(u)||l?function(t,e){var i=e?function(t){0;return Array.isArray(t)?t.reduce($,{}):Object.assign({},t)}(e):{};if(!t)return i;t=t.filter((function(t){return t.tag||""!==t.text.trim()}));var n=t.every(S);0;return t.reduce(n?k:$,i)}(u.default,l):u),f=a.tag&&!0!==a.tag||!1===a.tag?a.tag:"span";return f?t(f,i,d):d}}};function k(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function $(t,e,i){return t[i]=e,t}function S(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var T,P={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var i=e.props,n=e.parent,r=e.data,s=n.$i18n;if(!s)return null;var o=null,l=null;u(i.format)?o=i.format:c(i.format)&&(i.format.key&&(o=i.format.key),l=Object.keys(i.format).reduce((function(t,e){var n;return m(a,e)?Object.assign({},t,(n={},n[e]=i.format[e],n)):t}),null));var d=i.locale||s.locale,f=s._ntp(i.value,d,o,l),h=f.map((function(t,e){var i,n=r.scopedSlots&&r.scopedSlots[t.type];return n?n((i={},i[t.type]=t.value,i.index=e,i.parts=f,i)):t.value})),p=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return p?t(p,{attrs:r.attrs,class:r["class"],staticClass:r.staticClass},h):h}};function A(t,e,i){I(t,i)&&L(t,e,i)}function O(t,e,i,n){if(I(t,i)){var a=i.context.$i18n;(function(t,e){var i=e.context;return t._locale===i.$i18n.locale})(t,i)&&b(e.value,e.oldValue)&&b(t._localeMessage,a.getLocaleMessage(a.locale))||L(t,e,i)}}function D(t,e,i,n){var a=i.context;if(a){var r=i.context.$i18n||{};e.modifiers.preserve||r.preserveDirective
|