<!--pages/diet/measuret.wxml-->
<view class="card">
<view style="width:100%;height:100%;position:absolute;background-color:#999;z-index:9999;top:0;left:0;opacity:0.5;" wx:if="{{show}}"></view>
<view class="title">
<text class="time">录入时间:{{toDay}}</text>
<text bindtap="saveFoodlist" class="my_apport">确认记录</text>
</view>
<view class="measuret">
<view class="measuret_title" hover-stop-propagation="true">
<label class="checkbox">
<checkbox value="cb" checked="true" color="#68bcfa"/>表示已添加
</label>
<label class="checkbox">
<checkbox value="cb" checked="true" color="#ed7d31" />表示爱吃
</label>
</view>
<view class="measuret_body">
<checkbox-group bindchange="foodClick">
<view class="section section_gap" wx:for="{{foodList}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames[$index]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames[$index]}}2" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames[$index]}}</view>
</view>
</checkbox-group>
</view>
</view>
<view style="clear:both"></view>
</view>
<view class="my_apport" bindtap="getBabyNutritionList" style="margin: 5px auto;position: relative;width: 120px;">
查看历史报告
</view>
<scroll-view scroll-y="true" style="pointer-events:none">
<view class="card" wx:for="{{array}}" wx:for-item="item">
<view class="title">
<text class="time">录入时间:{{item.createTime||yyyy/mm/dd}}</text>
</view>
<view class="measuret_body list">
<view class="section section_gap" wx:for="{{item.diets}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames[$index]}}</view>
</view>
</view>
<view style="clear:both"></view>
</view>
</scroll-view>