tray-page-order-orderReportDetail.073031d1.js 34 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["tray-page-order-orderReportDetail"],{"0739":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("d4b5"),a("aa9c");var s=i(a("2634")),n=i(a("2fdc")),l=i(a("39d8")),o=a("1106"),r=a("815c"),c=i(a("5fea")),d={components:{SubtnCalendarT:c.default},data:function(){return{days:0,dateColumns:[[]],defaultIndex:0,date:"",startDate:"",endDate:"",currentWeek:"",indicatorStyle:"height: 100rpx;",showPopup:!1,showCalendar:!1,stat:{kcal:0,recommend_kcal:0,in_kcal:0,order_count:0},heat:{today:0,last_day:0,top_once:0,week:0,last_week:0,top_day:0},type:{today:0,last_day:0,week:0,last_week:0},heatRadio:{breakfast:{in_kcal:0,recommend_kcal:"0-0"},lunch:{in_kcal:0,recommend_kcal:"0-0"},dinner:{in_kcal:0,recommend_kcal:"0-0"},total:{in_kcal:0,recommend_kcal:"0-0"}},supplyRatio:{carbohydrate:{in_can:0,recommend_can:"0-0"},protein:{in_can:0,recommend_can:"0-0"},fat:{in_can:0,recommend_can:"0-0"},dietary_fiber:{in_can:0,recommend_can:"0-0"}},progress:{line1:0,line2:0,line3:0},nutrition:{carbohydrate:{percent:50,in:0,recommend:0},protein:{percent:50,in:0,recommend:0},fat:{percent:50,in:0,recommend:0},dietary_fiber:{percent:50,in:0,recommend:0}},heatStatChartOpts:{color:["#16c7b7"],padding:[15,15,0,15],dataLabel:!0,xAxis:{disableGrid:!0,fontSize:10,fontColor:"#ccc"},yAxis:{gridColor:"#e9f5f5",disabled:!1,disableGrid:!1,gridType:"dash",dashLength:"4",data:[{axisLineColor:"#FFFFFF",fontColor:"#ccc",fontSize:10}]},legend:{show:!1},extra:{column:{type:"group",width:16,labelPosition:"outside",activeBgColor:"#000000",activeBgOpacity:.04,linearType:"custom",customColor:["#58d5ca","#a5e6e2"],colorStop:"0.3",linearOpacity:"0.6"}}},heatStatChartData:{},kcalChartData:{},supplyChartData:{},ringChartopts:{rotate:!1,rotateLock:!1,color:["#FCA1A0","#8D85FE","#FECC6E","#AAE0D1"],padding:[30,10,15,10],float:"bottom",dataLabel:!0,enableScroll:!1,legend:{show:!1},title:{name:"",fontSize:15,color:"#666666"},subtitle:{name:"",fontSize:25,color:"#4B98FE"},extra:{ring:(0,l.default)({ringWidth:40,activeOpacity:.5,activeRadius:10,offsetAngle:60,labelWidth:0,border:!0,borderWidth:0,borderColor:"#FFFFFF"},"border",!1)}}}},onLoad:function(){var t=new Date,e=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate();this.date=e,this.createWeek(),this.drawAllCharts()},methods:{drawAllCharts:function(){var t=this;return(0,n.default)((0,s.default)().mark((function e(){var a,i,n,l;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getOrderChartReportDetailApi)({date:t.date,startDate:t.startDate,endDate:t.endDate,days:t.days});case 2:a=e.sent,t.stat=a.stat,t.heat=a.heat,t.type=a.type,t.heatRadio=a.heatRadio,t.supplyRatio=a.supplyRatio,t.heatRadio.breakfast.in_kcal<t.heatRadio.breakfast.recommend_kcal.split("-")[0]&&(t.heatRadio.breakfast.type=2),t.heatRadio.breakfast.in_kcal>t.heatRadio.breakfast.recommend_kcal.split("-")[0]&&t.heatRadio.breakfast.in_kcal<t.heatRadio.breakfast.recommend_kcal.split("-")[1]&&(t.heatRadio.breakfast.type=3),t.heatRadio.lunch.in_kcal<t.heatRadio.lunch.recommend_kcal.split("-")[0]&&(t.heatRadio.lunch.type=2),t.heatRadio.lunch.in_kcal>t.heatRadio.lunch.recommend_kcal.split("-")[0]&&t.heatRadio.lunch.in_kcal<t.heatRadio.lunch.recommend_kcal.split("-")[1]&&(t.heatRadio.lunch.type=3),t.heatRadio.dinner.in_kcal<t.heatRadio.dinner.recommend_kcal.split("-")[0]&&(t.heatRadio.dinner.type=2),t.heatRadio.dinner.in_kcal>t.heatRadio.dinner.recommend_kcal.split("-")[0]&&t.heatRadio.dinner.in_kcal<t.heatRadio.dinner.recommend_kcal.split("-")[1]&&(t.heatRadio.dinner.type=3),t.heatRadio.total.in_kcal<t.heatRadio.total.recommend_kcal.split("-")[0]&&(t.heatRadio.total.type=2),t.heatRadio.total.in_kcal>t.heatRadio.total.recommend_kcal.split("-")[0]&&t.heatRadio.total.in_kcal<t.heatRadio.total.recommend_kcal.split("-")[1]&&(t.heatRadio.total.type=3),t.supplyRatio.carbohydrate.in_can<t.supplyRatio.carbohydrate.recommend_can.split("-")[0]&&(t.supplyRatio.carbohydrate.type=2),t.supplyRatio.carbohydrate.in_can>t.supplyRatio.carbohydrate.recommend_can.split("-")[0]&&t.supplyRatio.carbohydrate.in_can<t.supplyRatio.carbohydrate.recommend_can.split("-")[1]&&(t.supplyRatio.carbohydrate.type=3),t.supplyRatio.protein.in_can<t.supplyRatio.protein.recommend_can.split("-")[0]&&(t.supplyRatio.protein.type=2),t.supplyRatio.protein.in_can>t.supplyRatio.protein.recommend_can.split("-")[0]&&t.supplyRatio.protein.in_can<t.supplyRatio.protein.recommend_can.split("-")[1]&&(t.supplyRatio.protein.type=3),t.supplyRatio.fat.in_can<t.supplyRatio.fat.recommend_can.split("-")[0]&&(t.supplyRatio.fat.type=2),t.supplyRatio.fat.in_can>t.supplyRatio.fat.recommend_can.split("-")[0]&&t.supplyRatio.fat.in_can<t.supplyRatio.fat.recommend_can.split("-")[1]&&(t.supplyRatio.fat.type=3),t.supplyRatio.dietary_fiber.in_can<t.supplyRatio.dietary_fiber.recommend_can.split("-")[0]&&(t.supplyRatio.dietary_fiber.type=2),t.supplyRatio.dietary_fiber.in_can>t.supplyRatio.dietary_fiber.recommend_can.split("-")[0]&&(t.supplyRatio.dietary_fiber.type=3),t.stat.calorie<1920&&(t.progress.line1=t.stat.calorie/1920*100,t.progress.line2=0,t.progress.line3=0),t.stat.calorie>1920&&t.stat.calorie<2346&&(t.progress.line1=100,t.progress.line2=(t.stat.calorie-1920)/426*100,t.progress.line3=0),t.stat.calorie>2346&&(t.progress.line1=100,t.progress.line2=100,t.progress.line3=(t.stat.calorie-2346)/426*100,t.progress.line3>100&&(t.progress.line3=100)),i={categories:a.x,series:[{name:"摄入量",data:a.y}]},t.heatStatChartData=JSON.parse(JSON.stringify(i)),n={series:[{format:function(){},data:a.kcalChart}]},t.kcalChartData=JSON.parse(JSON.stringify(n)),l={series:[{format:function(){},data:a.energyChart}]},t.supplyChartData=JSON.parse(JSON.stringify(l));case 33:case"end":return e.stop()}}),e)})))()},queryReportDay:function(t){this.days=t,this.drawAllCharts()},handleUpdateDate:function(t){this.startDate=this.dateColumns[0][this.defaultIndex].start,this.endDate=this.dateColumns[0][this.defaultIndex].end,this.drawAllCharts()},handleShowDate:function(){this.showPopup=!0},bindChange:function(t){this.defaultIndex=t.detail.value[0]},handleLastWeek:function(){this.defaultIndex<=0||(this.defaultIndex--,console.log(this.dateColumns[0],this.defaultIndex),this.startDate=this.dateColumns[0][this.defaultIndex].start,this.endDate=this.dateColumns[0][this.defaultIndex].end,this.drawAllCharts())},handleNextWeek:function(){this.defaultIndex>=this.dateColumns[0].length-1||(this.defaultIndex++,console.log(this.dateColumns[0],this.defaultIndex),this.startDate=this.dateColumns[0][this.defaultIndex].start,this.endDate=this.dateColumns[0][this.defaultIndex].end,this.drawAllCharts())},handleUpdateData:function(t){this.date=t.date,this.drawAllCharts()},createWeek:function(){this.dateColumns[0]=[];for(var t=(new Date).getFullYear(),e=0;e<t-1970;e++)this.dateColumns[0].push({value:t-e});this.dateColumns[1]=(0,r.createYear)(this.dateColumns[0][0].value),this.defaultIndex=this.dateColumns[1].length-1;var a=this.dateColumns[1][this.dateColumns[1].length-1],i=[a.start,a.end,"".concat(a.value)];this.startDate=i[0],this.endDate=i[1],this.currentWeek=i[2],this.dateColumns.shift()}}};e.default=d},"258e":function(t,e,a){"use strict";a.r(e);var i=a("0739"),s=a.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=s.a},"2dc3":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.flexCenter[data-v-f1620260]{display:flex;justify-content:space-between;align-items:center}.businessReport[data-v-f1620260]{min-height:100vh;background:#f2f2f2;padding:%?24?%;position:relative;padding-bottom:%?100?%}.businessReport .footer[data-v-f1620260]{position:fixed;width:100%;bottom:0;left:0;padding:%?24?%;box-sizing:border-box}.businessReport .footer .btn[data-v-f1620260]{width:100%;background:#fece0c;text-align:center;height:%?80?%;line-height:%?80?%;font-weight:600;font-size:%?26?%}.flexTitle[data-v-f1620260]{margin-top:%?40?%;display:flex;align-items:center}.flexTitle .flexTitle_circle[data-v-f1620260]{display:inline-block;height:%?40?%;width:%?20?%;background-color:#fdcd0d;border-radius:%?20?%}.flexTitle .flexTitle_title[data-v-f1620260]{font-size:%?40?%;font-weight:600;text-indent:%?20?%}.type1[data-v-f1620260]{color:#ed8473;font-size:%?32?%}.type2[data-v-f1620260]{color:#f3a95f;font-size:%?32?%}.type3[data-v-f1620260]{color:#71cbb9;font-size:%?32?%}.rowBox[data-v-f1620260]{background:#fff;border-radius:%?10?%;padding:%?16?%;margin-top:%?20?%}.rowBox .header[data-v-f1620260]{font-size:%?28?%}.rowBox .chartHeader[data-v-f1620260]{font-size:%?24?%}.datetime .dateselect[data-v-f1620260]{display:flex;flex-direction:row}.datetime .dateselect .dateselectText[data-v-f1620260]{height:%?100?%;width:50%;text-align:center;line-height:%?100?%;border-radius:%?20?%}.datetime .dateRageselect[data-v-f1620260]{display:flex;justify-content:center;align-items:center}.datetime .dateRageselect .date[data-v-f1620260]{height:%?100?%;width:95vw;text-align:center;line-height:%?100?%;margin-top:%?10?%;background-color:#efeeee;border-radius:%?15?%}.datetime .dateRageselect .left[data-v-f1620260]{width:%?100?%;height:%?100?%;text-align:center;line-height:%?100?%;font-size:18px;font-weight:600}.datetime .dateRageselect .right[data-v-f1620260]{width:%?100?%;height:%?100?%;text-align:center;line-height:%?100?%;font-size:18px;font-weight:600}.determine .title[data-v-f1620260]{font-size:%?28?%}.determine .title .num[data-v-f1620260]{font-size:%?34?%;font-weight:600}.determine .tips[data-v-f1620260]{padding:%?6?%;border:1px solid #ecbf75;color:#ecbf75;background:#fff0d7;margin:%?20?% 0 %?50?%;font-size:%?24?%}.determine .scheduleBox .imgBox[data-v-f1620260]{text-align:center}.determine .scheduleBox .imgBox .img[data-v-f1620260]{width:%?50?%;height:%?50?%}.determine .scheduleBox .scheduleLists[data-v-f1620260]{display:flex;padding-top:%?20?%}.determine .scheduleBox .scheduleLists .schedule[data-v-f1620260]{text-align:center;flex:1;margin-right:%?16?%}.determine .scheduleBox .scheduleLists .schedule .bar[data-v-f1620260]{border-radius:%?50?%;width:100%;height:%?24?%;background:#f2f2f2}.determine .scheduleBox .scheduleLists .schedule .bar .barContent[data-v-f1620260]{height:100%;border-radius:%?50?%;background:#f6cd27}.determine .scheduleBox .scheduleLists .schedule .text[data-v-f1620260]{padding:%?16?%}.determine .scheduleBox .scheduleLists .schedule[data-v-f1620260]:last-child{margin:0}.kaclBox .header .left[data-v-f1620260]{font-size:%?40?%;font-weight:500;margin-left:%?16?%}.kaclBox .tip[data-v-f1620260]{font-size:%?25?%;margin-left:%?16?%;color:#aeaeb7}.kaclBox .kacl_flag[data-v-f1620260]{display:flex}.kaclBox .kacl_flag .kacl_flag_item[data-v-f1620260]{margin-left:%?20?%;font-size:%?30?%;color:#c6c4cf}.kaclBox .heatBox[data-v-f1620260]{background-color:#f5f6fa;border-radius:%?20?%;margin-top:%?35?%}.kaclBox .heatBox .heatBox_[data-v-f1620260]{padding:%?20?%}.kaclBox .heatBox .heatBox_ .heatTitle[data-v-f1620260]{display:flex;justify-content:space-between;margin-top:%?20?%;color:#767edf;font-size:%?30?%;line-height:%?60?%}.kaclBox .heatBox .heatBox_ .heatContent[data-v-f1620260]{display:flex;justify-content:space-between;margin-top:%?38?%;font-weight:500;line-height:%?60?%;font-size:%?28?%}.kaclBox .heatBox .heatBox_ .heatContent .title[data-v-f1620260]{font-size:%?35?%}.kaclBox .heatBox .heatBox_ .heatTotal[data-v-f1620260]{display:flex;justify-content:space-between;margin-top:%?38?%;padding:%?30?% 0;border-top:1px solid #eaeaea;font-weight:500;line-height:%?60?%;font-size:%?28?%}.kaclBox .heatBox .heatBox_ .heatTotal .title[data-v-f1620260]{font-size:%?35?%}.heatStat .chart[data-v-f1620260]{background:#effbfb;padding:%?24?%}.heatStat .numsBox[data-v-f1620260]{margin-top:%?30?%;border-top:%?2?% solid #f3f3f3}.heatStat .numsBox .lineText[data-v-f1620260]{line-height:%?86?%;font-size:%?38?%}.heatStat .numsBox .lineContent[data-v-f1620260]{display:flex;position:reactive;padding-left:%?21?%;margin-top:%?20?%}.heatStat .numsBox .lineBox[data-v-f1620260]{width:95%;padding:%?40?%;background-color:#f5f6fa;margin:0 auto;border-radius:%?20?%}.heatStat .numsBox .lineBox .line[data-v-f1620260]{display:flex;flex-direction:row;align-items:center;font-size:%?25?%}.heatStat .numsBox .lineBox .line .bar[data-v-f1620260]{border-radius:%?50?%;width:%?380?%;height:%?24?%;margin:%?16?% 0;padding-left:%?24?%}.heatStat .numsBox .lineBox .line .bar .barContent[data-v-f1620260]{height:100%;border-radius:%?50?%;background:#b7d3fb}.tipsBox[data-v-f1620260]{margin-bottom:%?20?%}.tipsBox .tip[data-v-f1620260]{padding:%?6?%;color:#d8ab6c;background:#fef5e6;border-radius:%?10?%}.my_popup[data-v-f1620260]{height:%?650?%;border-radius:%?8?% %?8?% 0 0;position:relative;font-size:%?36?%;font-weight:500;color:#1b1d21}.my_popup .my_selectDeta[data-v-f1620260]{height:%?104?%;line-height:%?104?%;text-align:center;position:relative}.my_popup .my_selectDeta .my_selectDeta_icon[data-v-f1620260]{position:absolute;right:%?24?%;top:0}.my_popup .my_button[data-v-f1620260]{position:absolute;background-color:#00c2b2;bottom:0;left:0;right:0;margin:%?24?% %?36?%}.my_popup .picker-view[data-v-f1620260]{width:%?750?%;height:%?600?%;margin-top:%?20?%}.my_popup .picker-view .item[data-v-f1620260]{line-height:%?68?%;text-align:center}.my_popup .tabbar[data-v-f1620260]{box-sizing:border-box;width:%?328?%;padding:%?8?%;height:%?72?%;margin:0 auto;display:flex;border-radius:%?8?%;background-color:#f4f5f7;justify-content:space-around}.my_popup .tabbar uni-view[data-v-f1620260]{padding:%?5?% %?12?%;font-size:%?30?%;color:#1b1d21;background:#f4f5f7}.my_popup .tabbar .bg[data-v-f1620260]{background:#0101ca;border-radius:%?8?%;color:#fff}',""]),t.exports=e},4382:function(t,e,a){var i=a("2dc3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("967d").default;s("1f7d7f60",i,!0,{sourceMap:!1,shadowMode:!1})},8760:function(t,e,a){"use strict";var i=a("4382"),s=a.n(i);s.a},a097:function(t,e,a){"use strict";a.r(e);var i=a("d0b5"),s=a("258e");for(var n in s)["default"].indexOf(n)<0&&function(t){a.d(e,t,(function(){return s[t]}))}(n);a("8760");var l=a("828b"),o=Object(l["a"])(s["default"],i["b"],i["c"],!1,null,"f1620260",null,!1,i["a"],void 0);e["default"]=o.exports},d0b5:function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var i={tnPopup:a("1fbf").default},s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"businessReport"},[a("v-uni-view",{staticClass:"datetime rowBox"},[a("v-uni-view",{staticClass:"dateselect"},[a("v-uni-view",{staticClass:"dateselectText",style:{backgroundColor:0==t.days?"#FDCD0D":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.queryReportDay(0)}}},[t._v("营养日报")]),a("v-uni-view",{staticClass:"dateselectText",style:{backgroundColor:7==t.days?"#FDCD0D":""},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.queryReportDay(7)}}},[t._v("营养周报")])],1),0==t.days?a("v-uni-view",{staticClass:"dateRageselect"},[a("v-uni-view",{staticClass:"date",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showCalendar=!0}}},[t._v(t._s(t.date))])],1):t._e(),7==t.days?a("v-uni-view",{staticClass:"dateRageselect"},[a("v-uni-view",{staticClass:"left",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleLastWeek()}}},[t._v(t._s("<"))]),a("v-uni-view",{staticClass:"center",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleShowDate()}}},[t._v(t._s(t.startDate)+" - "+t._s(t.endDate))]),a("v-uni-view",{staticClass:"right",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.handleNextWeek()}}},[t._v(t._s(">"))])],1):t._e()],1),a("v-uni-view",{staticClass:"flexTitle"},[a("v-uni-text",{staticClass:"flexTitle_circle"}),a("v-uni-text",{staticClass:"flexTitle_title"},[t._v("饮食记录评价")])],1),a("v-uni-view",{staticClass:"determine rowBox"},[a("v-uni-view",{staticClass:"title"},[0==t.days?a("v-uni-text",[t._v("你今日用餐"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.stat.order_count))]),t._v("次,共摄入热量"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.stat.calorie))]),t._v("kcal")],1):a("v-uni-text",[t._v("你本周用餐"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.stat.order_count))]),t._v("次,共摄入热量"),a("v-uni-text",{staticClass:"num"},[t._v(t._s(t.stat.calorie))]),t._v("kcal")],1)],1),0==t.days?a("v-uni-view",{staticClass:"tips"},[t._v("每天建议摄入热量:1920-2346kcal")]):a("v-uni-view",{staticClass:"tips"},[t._v("每周建议摄入热量:13400-16422kcal")]),a("v-uni-view",{staticClass:"scheduleBox"},[a("v-uni-view",{staticClass:"imgBox"},[100==t.progress.line1&&0==t.progress.line3?a("v-uni-image",{staticClass:"img",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/happy.png",mode:"aspectFill"}}):t._e(),t.progress.line1<100||t.progress.line3>0?a("v-uni-image",{staticClass:"img",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/sad.png",mode:"aspectFill"}}):t._e()],1),a("v-uni-view",{staticClass:"scheduleLists"},[a("v-uni-view",{staticClass:"schedule"},[a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.progress.line1+"%"}})],1),a("v-uni-view",{staticClass:"text"},[t._v("不足")])],1),a("v-uni-view",{staticClass:"schedule"},[a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.progress.line2+"%"}})],1),a("v-uni-view",{staticClass:"text"},[t._v("合适")])],1),a("v-uni-view",{staticClass:"schedule"},[a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.progress.line3+"%"}})],1),a("v-uni-view",{staticClass:"text"},[t._v("超标")])],1)],1)],1)],1),a("v-uni-view",{staticClass:"flexTitle"},[a("v-uni-text",{staticClass:"flexTitle_circle"}),a("v-uni-text",{staticClass:"flexTitle_title"},[t._v("饮食")])],1),a("v-uni-view",{staticClass:"heatStat rowBox"},[a("v-uni-view",{staticClass:"header"},[a("v-uni-text",{staticStyle:{display:"inline-block",width:"25rpx",height:"25rpx","background-color":"#FDCD0D","border-radius":"50%","margin-left":"20rpx"}}),a("v-uni-text",{staticStyle:{"margin-left":"15rpx"}},[t._v("热量统计")])],1),a("v-uni-view",{staticClass:"chartBox",staticStyle:{padding:"20rpx"}},[a("v-uni-view",{staticClass:"chartHeader flexCenter",staticStyle:{padding:"10rpx 0 40rpx 0"}},[a("v-uni-text",{staticClass:"left"},[t._v("单位:千米")]),a("v-uni-text",{staticClass:"right"},[t._v("累计记录:近7天")])],1),a("v-uni-view",{staticClass:"chart",staticStyle:{width:"100%",height:"405rpx","border-radius":"20rpx"}},[t.heatStatChartData.series?a("v-uni-view",{staticClass:"title",staticStyle:{"padding-bottom":"16rpx"}},[t._v("饮食摄入")]):t._e(),a("qiun-data-charts",{directives:[{name:"show",rawName:"v-show",value:!t.showPopup&&!t.showCalendar,expression:"!showPopup && !showCalendar"}],attrs:{canvas2d:!0,type:"column",opts:t.heatStatChartOpts,chartData:t.heatStatChartData}})],1)],1),0==t.days?a("v-uni-view",{staticClass:"numsBox"},[a("v-uni-view",{staticClass:"lineText"},[a("v-uni-text",{staticStyle:{display:"inline-block",width:"25rpx",height:"25rpx","background-color":"#FDCD0D","border-radius":"50%","margin-left":"20rpx"}}),a("v-uni-text",{staticStyle:{"margin-left":"15rpx"}},[t._v("摄入热量")])],1),a("v-uni-view",{staticClass:"lineBox"},[a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("今日")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.heat.today+t.heat.last_day>0?t.heat.today/(t.heat.today+t.heat.last_day)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.heat.today)+"千卡")])],1),a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("昨天")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.heat.today+t.heat.last_day>0?t.heat.last_day/(t.heat.today+t.heat.last_day)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.heat.last_day)+"千卡")])],1)],1),a("v-uni-view",{staticClass:"lineContent"},[a("v-uni-image",{staticStyle:{width:"32rpx",height:"32rpx",position:"absolute",left:"60rpx"},attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/star.png",mode:"aspectFill"}}),a("v-uni-text",{staticStyle:{display:"inline-block",width:"36rpx",height:"36rpx","background-color":"#FDEEB8","border-radius":"50%"}}),a("v-uni-text",{staticStyle:{"margin-left":"20rpx"}},[t._v("本日共摄入热量"+t._s(t.heat.today)+"千卡,最高的一餐摄入"+t._s(t.heat.top_once)+"千卡")])],1)],1):a("v-uni-view",{staticClass:"numsBox"},[a("v-uni-view",{staticClass:"lineText"},[a("v-uni-text",{staticStyle:{display:"inline-block",width:"25rpx",height:"25rpx","background-color":"#FDCD0D","border-radius":"50%","margin-left":"20rpx"}}),a("v-uni-text",{staticStyle:{"margin-left":"15rpx"}},[t._v("摄入热量")])],1),a("v-uni-view",{staticClass:"lineBox"},[a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("本周")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.heat.week+t.heat.last_week>0?t.heat.week/(t.heat.week+t.heat.last_week)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.heat.week)+"千卡")])],1),a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("上周")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.heat.week+t.heat.last_week>0?t.heat.last_week/(t.heat.week+t.heat.last_week)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.heat.last_week)+"千卡")])],1)],1),a("v-uni-view",{staticClass:"lineContent"},[a("v-uni-image",{staticStyle:{width:"32rpx",height:"32rpx",position:"absolute",left:"60rpx"},attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/star.png",mode:"aspectFill"}}),a("v-uni-text",{staticStyle:{display:"inline-block",width:"36rpx",height:"36rpx","background-color":"#FDEEB8","border-radius":"50%"}}),a("v-uni-text",{staticStyle:{"margin-left":"20rpx"}},[t._v("本周共摄入热量"+t._s(t.heat.week)+"千卡,最高的一餐摄入"+t._s(t.heat.top_day)+"千卡")])],1)],1),0==t.days?a("v-uni-view",{staticClass:"numsBox"},[a("v-uni-view",{staticClass:"lineText"},[a("v-uni-text",{staticStyle:{display:"inline-block",width:"25rpx",height:"25rpx","background-color":"#FDCD0D","border-radius":"50%","margin-left":"20rpx"}}),a("v-uni-text",{staticStyle:{"margin-left":"15rpx"}},[t._v("食物种类")])],1),a("v-uni-view",{staticClass:"lineBox"},[a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("今日")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.type.today+t.type.last_day>0?t.type.today/(t.type.today+t.type.last_day)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.type.today)+"种")])],1),a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("昨天")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.type.today+t.type.last_day>0?t.type.last_day/(t.type.today+t.type.last_day)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.type.last_day)+"种")])],1)],1),a("v-uni-view",{staticClass:"lineContent"},[a("v-uni-image",{staticStyle:{width:"32rpx",height:"32rpx",position:"absolute",left:"60rpx"},attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/star.png",mode:"aspectFill"}}),a("v-uni-text",{staticStyle:{display:"inline-block",width:"36rpx",height:"36rpx","background-color":"#FDEEB8","border-radius":"50%"}}),a("v-uni-text",{staticStyle:{"margin-left":"20rpx"}},[t._v("本日共摄入食物"+t._s(t.type.today)+"种")])],1)],1):a("v-uni-view",{staticClass:"numsBox"},[a("v-uni-view",{staticClass:"lineText"},[a("v-uni-text",{staticStyle:{display:"inline-block",width:"25rpx",height:"25rpx","background-color":"#FDCD0D","border-radius":"50%","margin-left":"20rpx"}}),a("v-uni-text",{staticStyle:{"margin-left":"15rpx"}},[t._v("食物种类")])],1),a("v-uni-view",{staticClass:"lineBox"},[a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("本周")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.type.week+t.type.last_week>0?t.type.week/(t.type.week+t.type.last_week)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.type.week)+"种")])],1),a("v-uni-view",{staticClass:"line"},[a("v-uni-view",[t._v("上周")]),a("v-uni-view",{staticClass:"bar"},[a("v-uni-view",{staticClass:"barContent",style:{width:t.type.week+t.type.last_week>0?t.type.last_week/(t.type.week+t.type.last_week)*100+"%":"0%"}})],1),a("v-uni-view",[t._v(t._s(t.type.last_week)+"种")])],1)],1),a("v-uni-view",{staticClass:"lineContent"},[a("v-uni-image",{staticStyle:{width:"32rpx",height:"32rpx",position:"absolute",left:"60rpx"},attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/star.png",mode:"aspectFill"}}),a("v-uni-text",{staticStyle:{display:"inline-block",width:"36rpx",height:"36rpx","background-color":"#FDEEB8","border-radius":"50%"}}),a("v-uni-text",{staticStyle:{"margin-left":"20rpx"}},[t._v("本周共摄入食物"+t._s(t.type.week)+"种")])],1)],1)],1),a("v-uni-view",{staticClass:"flexTitle"},[a("v-uni-text",{staticClass:"flexTitle_circle"}),a("v-uni-text",{staticClass:"flexTitle_title"},[t._v("热量分析")])],1),a("v-uni-view",{staticClass:"kaclBox rowBox"},[a("v-uni-view",{staticClass:"header flexCenter"},[a("v-uni-text",{staticClass:"left"},[t._v("热量比及摄入")]),a("v-uni-text",{staticClass:"right"})],1),a("v-uni-view",{staticClass:"kacl_flag"},[a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#ED8473","font-size":"32rpx"}},[t._v("↑")]),a("v-uni-text",[t._v("偏高")])],1),a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#F3A95F","font-size":"32rpx"}},[t._v("↓")]),a("v-uni-text",[t._v("偏低")])],1),a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#71CBB9","font-size":"32rpx"}},[t._v("✓")]),a("v-uni-text",[t._v("合适")])],1)],1),a("v-uni-view",{staticClass:"chartBox flexCenter"},[a("v-uni-view",{staticClass:"chart",staticStyle:{width:"100%",height:"405rpx"}},[a("qiun-data-charts",{directives:[{name:"show",rawName:"v-show",value:!t.showPopup&&!t.showCalendar,expression:"!showPopup && !showCalendar"}],attrs:{canvas2d:!0,type:"ring",opts:t.ringChartopts,chartData:t.kcalChartData}})],1)],1),a("v-uni-view",{staticClass:"heatBox"},[a("v-uni-view",{staticClass:"heatBox_"},[a("v-uni-view",{staticClass:"heatTitle"},[a("v-uni-view",[t._v("名称")]),a("v-uni-view",[t._v("摄入(千卡)")]),a("v-uni-view",[t._v("推荐(千卡)")])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("早餐")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.heatRadio.breakfast.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.heatRadio.breakfast.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.heatRadio.breakfast.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.breakfast.in_kcal))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.breakfast.recommend_kcal))])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("午餐")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.heatRadio.lunch.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.heatRadio.lunch.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.heatRadio.lunch.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.lunch.in_kcal))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.lunch.recommend_kcal))])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("晚餐")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.heatRadio.dinner.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.heatRadio.dinner.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.heatRadio.dinner.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.dinner.in_kcal))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.dinner.recommend_kcal))])],1),a("v-uni-view",{staticClass:"heatTotal"},[a("v-uni-view",{staticClass:"title"},[t._v("总摄入")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.heatRadio.total.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.heatRadio.total.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.heatRadio.total.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.total.in_kcal))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.heatRadio.total.recommend_kcal))])],1)],1)],1)],1),a("v-uni-view",{staticClass:"flexTitle"},[a("v-uni-text",{staticClass:"flexTitle_circle"}),a("v-uni-text",{staticClass:"flexTitle_title"},[t._v("营养素分析")])],1),a("v-uni-view",{staticClass:"kaclBox rowBox"},[a("v-uni-view",{staticClass:"header flexCenter"},[a("v-uni-text",{staticClass:"left"},[t._v("供能比及摄入")]),a("v-uni-text",{staticClass:"right"})],1),a("v-uni-view",[a("v-uni-text",{staticClass:"tip"},[t._v("脂肪提供的热量是同等克数蛋白质的2.25倍")])],1),a("v-uni-view",{staticClass:"kacl_flag"},[a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#ED8473","font-size":"32rpx"}},[t._v("↑")]),a("v-uni-text",[t._v("偏高")])],1),a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#F3A95F","font-size":"32rpx"}},[t._v("↓")]),a("v-uni-text",[t._v("偏低")])],1),a("v-uni-view",{staticClass:"kacl_flag_item"},[a("v-uni-text",{staticStyle:{color:"#71CBB9","font-size":"32rpx"}},[t._v("✓")]),a("v-uni-text",[t._v("合适")])],1)],1),a("v-uni-view",{staticClass:"chartBox flexCenter"},[a("v-uni-view",{staticClass:"chart",staticStyle:{width:"100%",height:"405rpx"}},[a("qiun-data-charts",{directives:[{name:"show",rawName:"v-show",value:!t.showPopup&&!t.showCalendar,expression:"!showPopup && !showCalendar"}],attrs:{canvas2d:!0,type:"ring",opts:t.ringChartopts,chartData:t.supplyChartData}})],1)],1),a("v-uni-view",{staticClass:"heatBox"},[a("v-uni-view",{staticClass:"heatBox_"},[a("v-uni-view",{staticClass:"heatTitle"},[a("v-uni-view",[t._v("名称")]),a("v-uni-view",[t._v("摄入(克)")]),a("v-uni-view",[t._v("推荐(克)")])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("碳水")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.supplyRatio.carbohydrate.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.supplyRatio.carbohydrate.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.supplyRatio.carbohydrate.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.carbohydrate.in_can))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.carbohydrate.recommend_can))])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("蛋白质")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.supplyRatio.protein.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.supplyRatio.protein.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.supplyRatio.protein.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.protein.in_can))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.protein.recommend_can))])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("脂肪")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.supplyRatio.fat.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.supplyRatio.fat.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.supplyRatio.fat.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.fat.in_can))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.fat.recommend_can))])],1),a("v-uni-view",{staticClass:"heatContent"},[a("v-uni-view",{staticClass:"title"},[t._v("膳食纤维")]),a("v-uni-view",{staticStyle:{position:"absolute",left:"177px"}},[1==t.supplyRatio.dietary_fiber.type?a("v-uni-text",{staticClass:"type1"},[t._v("↑")]):t._e(),2==t.supplyRatio.dietary_fiber.type?a("v-uni-text",{staticClass:"type2"},[t._v("↓")]):t._e(),3==t.supplyRatio.dietary_fiber.type?a("v-uni-text",{staticClass:"type3"},[t._v("✓")]):t._e(),a("v-uni-text",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.dietary_fiber.in_can))])],1),a("v-uni-view",{staticStyle:{color:"#9898A3"}},[t._v(t._s(t.supplyRatio.dietary_fiber.recommend_can))])],1)],1)],1)],1),a("tn-popup",{attrs:{mode:"bottom"},model:{value:t.showPopup,callback:function(e){t.showPopup=e},expression:"showPopup"}},[a("v-uni-view",{staticClass:"my_popup"},[a("v-uni-view",{staticClass:"my_selectDeta"},[t._v("选择周")]),a("v-uni-picker-view",{staticClass:"picker-view",attrs:{"indicator-style":t.indicatorStyle,value:[t.defaultIndex],"immediate-change":!0},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindChange.apply(void 0,arguments)}}},[a("v-uni-picker-view-column",t._l(t.dateColumns[0],(function(e,i){return a("v-uni-view",{key:i,staticClass:"item"},[t._v(t._s(e.value))])})),1)],1),a("v-uni-button",{staticClass:"my_button",attrs:{type:"primary"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleUpdateDate.apply(void 0,arguments)}}},[t._v("确定")])],1)],1),a("subtn-calendar-t",{attrs:{mode:"date"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleUpdateData.apply(void 0,arguments)}},model:{value:t.showCalendar,callback:function(e){t.showCalendar=e},expression:"showCalendar"}})],1)},n=[]}}]);