measuret.wxml 11.4 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
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
<!--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!=4055&&networkutil==1)||(hospitalId!=666668&&(networkutil==0||networkutil==4))}}">
<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==4055&&networkutil==1)||(hospitalId==666668&&(networkutil==0||networkutil==4))}}">
<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]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames1[$index]}}2" 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="foodClick2">
<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]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames2[$index]}}2" 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="foodClick3">
<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]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames3[$index]}}2" 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="foodClick4">
<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]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames4[$index]}}2" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames4[$index]}}</view>
</view>
</checkbox-group>
<view style="color: #fff;">1</view>
<view style="font-size: 26rpx;">十月龄膳食调查</view>
<checkbox-group bindchange="foodClick5">
<view class="section section_gap" wx:for="{{foodList5}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames5[$index]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames5[$index]}}2" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames5[$index]}}</view>
</view>
</checkbox-group>
<view style="color: #fff;">1</view>
<view style="font-size: 26rpx;">十一月龄膳食调查</view>
<checkbox-group bindchange="foodClick6">
<view class="section section_gap" wx:for="{{foodList6}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames6[$index]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames6[$index]}}2" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames6[$index]}}</view>
</view>
</checkbox-group>
<view style="color: #fff;">1</view>
<view style="font-size: 26rpx;">十二月龄膳食调查</view>
<checkbox-group bindchange="foodClick7">
<view class="section section_gap" wx:for="{{foodList7}}" wx:for-index="$index" wx:for-item="item">
<view class="body-view">
<checkbox type="checkbox" value="{{foodListNames7[$index]}}1" checked="{{item.add}}" color="#68bcfa" />
<checkbox type="checkbox" value="{{foodListNames7[$index]}}2" disabled = "{{item.add == 0}}" checked="{{item.love}}" color="#ed7d31" />
</view>
<view class="section__title">{{foodListNames7[$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==4055&&networkutil==1)||(hospitalId==666668&&(networkutil==0||networkutil==4))}}">
<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 style="color: #fff;"> 1</view>
<view style="font-size: 26rpx;">十月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets5}}" 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">{{foodListNames5[$index]}}</view>
</view>
<view style="color: #fff;"> 1</view>
<view style="font-size: 26rpx;">十一月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets6}}" 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">{{foodListNames6[$index]}}</view>
</view>
<view style="color: #fff;"> 1</view>
<view style="font-size: 26rpx;">十二月龄膳食调查</view>
<view class="section section_gap" wx:for="{{item.diets7}}" 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">{{foodListNames7[$index]}}</view>
</view>
</view>
<view style="clear:both"></view>
</view>
</scroll-view>
<scroll-view scroll-y="true" style="pointer-events:none" wx:if="{{(hospitalId!=4055&&networkutil==1)||(hospitalId!=666668&&(networkutil==0||networkutil==4))}}">
<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>