<view class="content data-v-7dac1049"><view class="content_box data-v-7dac1049"><view class="set data-v-7dac1049"><view class="date data-v-7dac1049">{{foodInfo.date}}</view></view><view class="box data-v-7dac1049"><view class="kcal2 data-v-7dac1049"><view class="top data-v-7dac1049"><view class="left data-v-7dac1049"><view class="center data-v-7dac1049">可以吃<text class="data-v-7dac1049">{{foodInfo.remaining_kcal}}</text><view class="unit data-v-7dac1049">Kcal</view></view></view><view class="right data-v-7dac1049"><view class="item border-bottom data-v-7dac1049"><text class="name data-v-7dac1049">已摄入</text><text class="bold data-v-7dac1049">{{''+foodInfo.today_intake.kcal+'千卡'}}</text></view><view class="item data-v-7dac1049"><text class="name data-v-7dac1049">碳水</text><text class="bold data-v-7dac1049">{{''+foodInfo.today_intake.carbohydrate+"/"+foodInfo.suggestion.carbohydrate+''}}</text></view><view class="item data-v-7dac1049"><text class="name data-v-7dac1049">脂肪</text><text class="bold data-v-7dac1049">{{''+foodInfo.today_intake.fat+"/"+foodInfo.suggestion.fat+''}}</text></view><view class="item data-v-7dac1049"><text class="name data-v-7dac1049">蛋白</text><text class="bold data-v-7dac1049">{{''+foodInfo.today_intake.protein+"/"+foodInfo.suggestion.protein+''}}</text></view></view></view></view><view class="tabbar-box data-v-7dac1049"><block wx:if="{{$root.g0}}"><view class="list data-v-7dac1049"><block wx:for="{{foodInfo.list}}" wx:for-item="ite" wx:for-index="ind" wx:key="ind"><view class="listbox data-v-7dac1049"><view class="left data-v-7dac1049"><view class="title data-v-7dac1049">{{ite.name}}</view><view class="kcalval data-v-7dac1049"><text class="data-v-7dac1049">{{ite.val}}</text>{{ite.unit+''}}</view></view><view class="right data-v-7dac1049"><block wx:for="{{ite.list}}" wx:for-item="it" wx:for-index="id"><view data-event-opts="{{[['tap',[['showFoodDetail',['$0'],[[['foodInfo.list','',ind],['list','',id]]]]]]]}}" class="item data-v-7dac1049" bindtap="__e"><image src="{{it.pic_url}}" mode="aspectFill" class="data-v-7dac1049"></image><text class="data-v-7dac1049">{{it.name}}</text><text class="data-v-7dac1049">{{it.weight}}</text><text class="data-v-7dac1049">{{it.val+"千卡"}}</text></view></block></view></view></block></view></block></view></view></view><uni-drawer vue-id="452bfd0e-1" mode="right" width="300" data-ref="showRight" class="data-v-7dac1049 vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><scroll-view style="height:100%;" scroll-y="true" class="data-v-7dac1049"><view class="foodDetail data-v-7dac1049"><view class="foodInfo data-v-7dac1049"><image src="{{activeFoodDetail.pic_url}}" mode="aspectFill" class="data-v-7dac1049"></image><view class="info data-v-7dac1049"><view class="name data-v-7dac1049">{{activeFoodDetail.name}}</view><view class="kcal data-v-7dac1049">{{activeFoodDetail.val+"千卡"}}</view></view></view><view class="foodContent data-v-7dac1049"><view class="title data-v-7dac1049">热量和营养</view><view class="progress data-v-7dac1049"><view class="chart-wrap _div data-v-7dac1049"><qiun-data-charts vue-id="{{('452bfd0e-2')+','+('452bfd0e-1')}}" type="ring" opts="{{opts}}" canvas2d="{{true}}" canvasId="foodCharts" chartData="{{chartData2}}" cHeight="{{250}}" cWidth="{{250}}" class="data-v-7dac1049" bind:__l="__l"></qiun-data-charts><view class="uchart-kcal data-v-7dac1049">{{activeFoodDetail.val}}</view></view><block wx:if="{{activeFoodDetail.nutrients_four}}"><view class="info data-v-7dac1049"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="info-item data-v-7dac1049"><view class="color data-v-7dac1049" style="{{'background-color:'+(''+item.color)+';'}}"></view><view class="data-v-7dac1049">{{item.name+"："+item.proportion+"%"}}</view></view></block></view></block></view><view class="tips data-v-7dac1049"><text class="data-v-7dac1049">营养素</text><text class="data-v-7dac1049">{{activeFoodDetail.weight+"含量"}}</text></view><view class="foodDetailList data-v-7dac1049"><block wx:for="{{activeFoodDetail.nutrients_list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="foodDetailItem data-v-7dac1049"><view class="name data-v-7dac1049">{{item.name_ch}}</view><view class="value data-v-7dac1049">{{item.value+item.unit+''}}</view></view></block></view></view></view></scroll-view></uni-drawer></view>