measuret.wxml 7.48 KB
   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
<!--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" wx:if="{{hospitalId!=666668}}">
<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 class="measuret_body" wx:if="{{hospitalId==666668}}">
<view style="font-size: 26rpx;">六月龄膳食调查</view>
<checkbox-group bindchange="foodClick1">
<view class="section section_gap" wx:for="{{foodList1}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames1[$index]}}11" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames1[$index]}}21" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames1[$index]}}</view>
</view>
</checkbox-group>
<view style="font-size: 26rpx;">七月龄膳食调查</view>
<checkbox-group bindchange="foodClick1">
<view class="section section_gap" wx:for="{{foodList2}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames2[$index]}}12" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames2[$index]}}22" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames2[$index]}}</view>
</view>
</checkbox-group>
<view style="font-size: 26rpx;">八月龄膳食调查</view>
<checkbox-group bindchange="foodClick1">
<view class="section section_gap" wx:for="{{foodList3}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames3[$index]}}13" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames3[$index]}}23" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames3[$index]}}</view>
</view>
</checkbox-group>
<view style="color: #fff;">1</view>
<view style="font-size: 26rpx;">九月龄膳食调查</view>
<checkbox-group bindchange="foodClick1">
<view class="section section_gap" wx:for="{{foodList4}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames4[$index]}}14" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames4[$index]}}24" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames4[$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" wx:if="{{hospitalId==666668}}">
<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 style="font-size: 26rpx;">六月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets1}}" 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">{{foodListNames1[$index]}}</view>
</view>
<view style="font-size: 26rpx;">七月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets2}}" 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">{{foodListNames2[$index]}}</view>
</view>
<view style="color: #fff;"> 1</view>
<view style="font-size: 26rpx;">八月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets3}}" 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">{{foodListNames3[$index]}}</view>
</view>
<view style="color: #fff;"> 1</view>
<view style="font-size: 26rpx;">九月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets4}}" 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">{{foodListNames4[$index]}}</view>
</view>
</view>
<view style="clear:both"></view>
</view>
</scroll-view>
<scroll-view scroll-y="true" style="pointer-events:none" wx:if="{{hospitalId!=666668}}">
<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>