ReedawFoodApp/unpackage/dist/build/app-plus/app-service.js

8 lines
812 KiB
JavaScript
Raw Normal View History

2026-03-31 13:51:12 +08:00
(this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"011a":function(t,e){function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t.exports=i=function(){return!!e},t.exports.__esModule=!0,t.exports["default"]=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"01a8":function(t,e,i){"use strict";i.r(e);var n=i("ab08"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"01c0":function(t,e,i){"use strict";i.r(e);var n=i("d089"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"0219":function(t,e,i){"use strict";var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("7ca3")),s=i("8f59"),r=n(i("552f"));function o(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}var c={data:function(){return{opts:{color:[],title:{name:""}},opts2:{color:[],subtitle:{name:""}},chartData:{},chartData2:{},foodInfo:{},details:{}}},components:{qiunDataCharts:r.default},computed:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){(0,a.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},(0,s.mapState)(["user","countFoodInfo"])),onLoad:function(t){this.handleList()},methods:{handleList:function(){var t=[],e=[];this.opts.color=[],this.opts2.color=[],this.foodInfo=this.countFoodInfo,this.details=this.countFoodInfo.details;for(var i=0;i<this.foodInfo.list.length;++i)this.opts.color.push(this.foodInfo.list[i].color),t.push({name:this.foodInfo.list[i].name,value:Number(this.foodInfo.list[i].kcal_proportion)});for(var n in this.opts.title.name=this.foodInfo.nutrients_four[0].today_intake,this.chartData=JSON.parse(JSON.stringify({series:[{data:t}]})),this.details)this.details.hasOwnProperty(n)&&(this.opts2.color.push(this.details[n].color),e.push({name:this.details[n].name,value:Number(this.details[n].proportion)}));this.chartData2=JSON.parse(JSON.stringify({series:[{data:e}]}))}}};e.default=c},"0415":function(t,e,i){"use strict";i.r(e);var n=i("19a9"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"0443":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("view",{staticClass:t._$s(0,"sc","weightPages"),attrs:{_i:0}},[i("view",{staticClass:t._$s(1,"sc","content "),attrs:{_i:1}},[i("view",{staticClass:t._$s(2,"sc","status"),attrs:{_i:2}},[t._v(t._$s(2,"t0-0",t._s(t.bleTipsText)))]),i("view",{staticClass:t._$s(3,"sc","text"),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.text)))]),i("view",{staticClass:t._$s(4,"sc","image"),attrs:{_i:4}},[i("image",{staticClass:t._$s(5,"sc","image3"),attrs:{_i:5}})]),i("view",{staticClass:t._$s(6,"sc","tips"),attrs:{_i:6}},[i("view"),i("text"),i("text")])]),t._$s(10,"i",t.isHeight)?i("view",{staticClass:t._$s(10,"sc","wrapper"),attrs:{_i:10}},[i("view",{staticClass:t._$s(11,"sc","bg"),attrs:{_i:11}}),i("view",{staticClass:t._$s(12,"sc","Blue"),attrs:{_i:12}},[i("view",{staticClass:t._$s(13,"sc","h4"),attrs:{_i:13}}),i("view",{staticClass:t._$s(14,"sc","Blue-box"),attrs:{_i:14}},[i("text",[t._v(t._$s(15,"t0-0",t._s(t.height))+t._$s(15,"t0-1",t._s(t.unit)))])]),i("view",{staticClass:t._$s(16,"sc","Blue-box"),attrs:{_i:16}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.weight,expression:"weight"}],attrs:{_i:17},domProps:{value:t._$s(17,"v-model",t.weight)},on:{input:function(e){e.target.composing||(t.weight=e.targe
2025-05-30 11:14:38 +08:00
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
2026-03-31 13:51:12 +08:00
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),s=a.type,r=a.payload,o=(a.options,{type:s,payload:r}),c=this._mutations[s];c&&(this._withCommit((function(){c.forEach((function(t){t(r)}))})),this._subscribers.slice().forEach((function(t){return t(o,n.state)})))},f.prototype.dispatch=function(t,i){var n=this,a=y(t,i),s=a.type,r=a.payload,o={type:s,payload:r},c=this._actions[s];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(r)}))):c[0](r);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),g(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=m(e.state,t.slice(0,-1));d.delete(i,t[t.length-1])})),_(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),_(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,h);var w=O((function(t,e){var i={};return k(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=S(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})),x=O((function(t,e){var i={};return k(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 s=S(this.$store,"mapMutations",t);if(!s)return;n=s.context.commit}return"function"===typeof a?a.apply(this,[n].concat(e)):n.apply(this.$store,[a].concat(e))}})),i})),$=O((function(t,e){var i={};return k(e).forEach((function(e){var n=e.key,a=e.val;a=t+a,i[n]=function(){if(!t||S(this.$store,"mapGetters",t))return this.$store.getters[a]},i[n].vuex=!0})),i})),C=O((function(t,e){var i={};return k(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 s=S(this.$store,"mapActions",t);if(!s)return;n=s.context.dispatch}return"function"===typeof a?a.apply(this,[n].concat(e)):n.apply(this.$store,[a].concat(e))}})),i}));function k(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 O(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 i},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e,i={},s=Object.prototype,r=s.hasOwnProperty,o=Object.defineProperty||function(t,e,i){t[e]=i.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function f(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,i){return t[e]=i}}function h(t,e,i,n){var a=e&&e.prototype instanceof y?e:y,s=Object.create(a.prototype),r=new A(n||[]);return o(s,"_invoke",{value:T(t,i,r)}),s}function p(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=h;var _="suspendedStart",v="executing",g="completed",m={};function y(){}function b(){}function w(){}var x={};f(x,l,(function(){return this}));var $=Object.getPrototypeOf,C=$&&$($(L([])));C&&C!==s&&r.call(C,l)&&(x=C);var k=w.prototype=y.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function i(a,s,o,c){var l=p(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)}var a;o(this,"_invoke",{value:function(t,n){function s(){return new e((function(e,a){i(t,n,e,a)}))}return a=a?a.then(s,s):s()}})}function T(t,i,n){var a=_;return function(s,r){if(a===v)throw Error("Generator is already running");if(a===g){if("throw"===s)throw r;return{value:e,done:!0}}for(n.method=s,n.arg=r;;){var o=n.delegate;if(o){var c=P(o,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===_)throw a=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var l=p(t,i,n);if("normal"===l.type){if(a=n.done?g:"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(a=g,n.method="throw",n.arg=l.arg)}}}function P(t,i){var n=i.method,a=t.iterator[n];if(a===e)return i.delegate=null,"throw"===n&&t.iterator["return"]&&(i.method="return",i.arg=e,P(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var s=p(a,t.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,m;var r=s.arg;return r?r.done?(i[t.resultName]=r.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,m):r:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,m)}function I(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function L(t){if(t||""===t){var i=t[l];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function i(){for(;++a<t.length;)if(r.call(t,a))return i.value=t[a],i.done=!1,i;return i.value=e,i.done=!0,i};return s.next=s}}throw new TypeError(n(t)+" is not iterable")}return b.prototype=w,o(k,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,d,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,d,"GeneratorFunction")),t.prototype=Object.create(k),t},i.awrap=function(t){return{__await:t}},O(S.prototype),f(S.prototype,u,(function(){return this})),i.AsyncIterator=S,i.async=functi