(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageTwo/me/recordetail"],{1554:function(t,e,n){"use strict";n.r(e);var o=n("1755"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},1755:function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("7ca3")),i=n("8f59");function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c={data:function(){return{token:"",index:0,opts:{dataLabel:!1,color:["#5180D8","#ED7886","#FFB169"],background:"transparent",canvas:{background:"transparent"},legend:{show:!1},title:{name:"",fontSize:20,offsetY:-3,color:"#333333"},subtitle:{name:"千卡",fontSize:14,offsetY:12,color:"#888888"},extra:{ring:{ringWidth:10,labelWidth:0,border:!1}}},isShow:!1,chartData2:{},activeFoodDetail:{}}},components:{qiunDataCharts:function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/qiun-data-charts/components/qiun-data-charts")]).then(function(){return resolve(n("bd05"))}.bind(null,n)).catch(n.oe)}},computed:u(u({},(0,i.mapState)(["user","countFoodInfo"])),{},{userinfo:function(){return this.user.aud_id},foodInfo:function(){return this.countFoodInfo}}),onLoad:function(t){this.$store.dispatch("getCountFoodInfo",{aud_id:this.user.aud_id,time:t.time})},methods:{showFoodDetail:function(t){console.log("item",t);var e=[];this.activeFoodDetail=t,this.$refs.showRight.open(),this.opts.color=[];for(var n=1;n<t.nutrients_four.length;++n)this.opts.color.push(t.nutrients_four[n].color),e.push({name:t.nutrients_four[n].name,value:Number(t.nutrients_four[n].proportion)});this.chartData2=JSON.parse(JSON.stringify({series:[{data:e}]}))}}};e.default=c},"25f0":function(t,e,n){"use strict";n.r(e);var o=n("3942"),r=n("1554");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("2d08");var a=n("828b"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"7dac1049",null,!1,o["a"],void 0);e["default"]=u.exports},"2d08":function(t,e,n){"use strict";var o=n("7b70"),r=n.n(o);r.a},3942:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uniDrawer:function(){return n.e("uni_modules/uni-drawer/components/uni-drawer/uni-drawer").then(n.bind(null,"39d1"))}},r=function(){var t=this.$createElement,e=(this._self._c,this.foodInfo.list.length),n=this.activeFoodDetail.nutrients_four?this.activeFoodDetail.nutrients_four.slice(1):null;this.$mp.data=Object.assign({},{$root:{g0:e,l0:n}})},i=[]},"74ba":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("6c4c");o(n("3240"));var r=o(n("25f0"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(r.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7b70":function(t,e,n){}},[["74ba","common/runtime","common/vendor"]]]);