weightReport.wxml 13.9 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
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
<!--pages/weightReport/weightReport.wxml-->
<view wx:if="{{info&&0 === isShow}}">
<view class='top_bar'>
<view>膳食营养报告<text style="float:right;margin-right:15px;font-size:15px;font-weight:500;margin-top:10px;">{{recordTime}}</text></view>
<view class='top_bar_text'>
<text>{{info}}</text>
</view>
</view>
<view class='collectionView'>
<view bindtap="godetails" data-id="1" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>儿童基本信息</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="2" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>喂养指南</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="3" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>膳食结构</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="4" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>一日喂养参考</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="5" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>一周喂养参考</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="6" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title' wx:if="{{hospitalId=='216'}}">菜谱推荐</view>
<view class='cell_title' wx:if="{{hospitalId!='216'}}">食谱推荐</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="7" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>辅食添加建议</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="8" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>挑食建议</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="9" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>进食行为建议</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
<view bindtap="godetails" data-id="10" class='cell'>
<view class='cell_img'><view>“</view></view>
<view class='cell_title'>喂养常见问题及处理</view>
<view class='cell_checkDetail'>查看详情</view>
</view>
</view>
</view>
<view class="white-block" wx:if="{{1 === isShow}}">
<view class='top_title'>
<image></image>
<text>儿童基本信息</text>
</view>

<view class='info_card'>
<view class='info_card_title'>姓名</view>
<view class='info_card_content'>{{printDataS.userInfo.babyName}}</view>
<view class='info_card_title'>就诊卡</view>
<view class='info_card_content'>{{printDataS.userInfo.vcCardNo}}</view>
<view class='info_card_title'>性别</view>
<view class='info_card_content'>{{printDataS.userInfo.babySex}}</view>
<view class='info_card_title'>月龄</view>
<view class='info_card_content'>{{printDataS.userInfo.monthAge}}</view>
<view class='info_card_title'>所需热量</view>
<view class='info_card_content'>{{printDataS.userInfo.kaul}}</view>
</view>

<view class='weightInfo_card'>
<view class='weightInfo_item'>
<view class='weightInfo_item_text'>{{printDataS.userInfo.height}}</view>
<view class='weightInfo_item_unit'>测量身长(高)</view>
</view>
<view class='weightInfo_item'>
<view class='weightInfo_item_text'>{{printDataS.userInfo.weight}}</view>
<view class='weightInfo_item_unit'>测量体重</view>
</view>
<view class='weightInfo_item'>
<view class='weightInfo_item_text'>{{printDataS.userInfo.bmi}}</view>
<view class='weightInfo_item_unit'>BMI</view>
</view>
</view>

<!-- <view style='margin-right:20px;margin-left:20px;' wx:if="{{info.risk}}">
<view style='font-weight=555;font-size: 15px;color: #261F0C;margin-top:40px;'>高危因素</view>
<view class='risk_view' style='margin-top:25px'>
<text class='risk_view_item' wx:for="{{info.riskArr}}" style='margin-right:10px;margin-top:5px'>{{item}}</text>
</view>
</view> -->
<view class="my_apport" bindtap="goBack" > 返回 </view>

</view>
<view class="white-block" wx:if="{{2 === isShow}}">
<view class='top_title'>
<image></image>
<text>喂养指南</text>
</view>
<view wx:if="{{printDataS.feedingGuide}}">
<view>{{printDataS.userInfo.totalSuggest}}</view>
<view wx:for="{{printDataS.feedingGuide}}" wx:for-index="key" wx:for-item="val">
<text style="font-weight: bold"></text>{{val}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{3 === isShow}}">
<view class='top_title'>
<image></image>
<text>膳食结构</text>
</view>
<view wx:if="{{printDataS.dietStructure}}" >
<view wx:for="{{printDataS.dietStructure}}" wx:for-item="fstjItem">
<text style="font-weight: bold"></text>{{fstjItem}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{4 === isShow}}">
<view class='top_title'>
<image></image>
<text>一日喂养参考</text>
</view>
<view>
<view wx:if="{{printDataS.oneDayRecipes}}" wx:for="{{printDataS.oneDayRecipes}}" wx:for-item="item">
<view>{{item}}</view>
</view>
<table wx:if="{{printDataS.breakfast}}" class="caca-table" style="width: 100%;">
<tr>
<th>早餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.breakfast}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.breakfast}}">
</view>
</td>
</tr>
<tr>
<th>早加餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.breakfastAdd}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.breakfastAdd}}">
</view>
</td>
</tr>
<tr>
<th>午餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.lunch}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.lunch}}">
</view>
</td>
</tr>

<tr>
<th>午加餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.lunchAdd}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.lunchAdd}}">
</view>
</td>
</tr>

<tr>
<th>晚餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.dinner}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.dinner}}">
</view>
</td>
</tr>
<tr>
<th>晚加餐</th>
<td style="height: 16mm;padding:0">
<table style=" width:100%;border-collapse: collapse;">
<tr style="padding-left: 2mm" wx:for="{{printDataS.dinnerAdd}}">
<td style="width:30mm;border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[0]}}</td>
<td style="border:1px solid #fff; padding:0.5mm 2mm; height:10mm">{{item.split(':')[1]}}</td>
</tr>
</table>
<view style="padding-left: 2mm" wx:for="{{printDataS.dinnerAdd}}">
</view>
</td>
</tr>
</table>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{5 === isShow}}">
<view class='top_title'>
<image></image>
<text>一周喂养参考</text>
</view>
<view>
<table class="caca-table" wx:if="{{printDataS.mondays}}" style="margin:0 auto;box-shadow: none;">
<tr>
<th>时间</th>
<th>周一</th>
<th>周二</th>
<th>周三</th>
<th>周四</th>
<th>周五</th>
<th>周六</th>
<th>周日</th>
</tr>
<tr wx:for="{{printDataS.mondays}}">
<td>{{item[0]}}</td>
<td>{{printDataS.mondays[$index][1]}}</td>
<td>{{printDataS.tuesdays[$index][1]}}</td>
<td>{{printDataS.wednesdays[$index][1]}}</td>
<td>{{printDataS.thursdays[$index][1]}}</td>
<td>{{printDataS.fridays[$index][1]}}</td>
<td>{{printDataS.saturdays[$index][1]}}</td>
<td>{{printDataS.sundays[$index][1]}}</td>
</tr>
</table>
<table class="caca-table" wx:if="{{printDataS.monday}}" style="margin:0 auto;box-shadow: none;">
<tr>
<th>时间</th>
<th>周一</th>
<th>周二</th>
<th>周三</th>
<th>周四</th>
<th>周五</th>
<th>周六</th>
<th>周日</th>
</tr>
<tr wx:for="{{printDataS.monday}}">
<td>{{item.split(':')[0]}}</td>
<td>{{printDataS.monday[$index].split(':')[1]}}</td>
<td>{{printDataS.tuesday[$index].split(':')[1]}}</td>
<td>{{printDataS.wednesday[$index].split(':')[1]}}</td>
<td>{{printDataS.thursday[$index].split(':')[1]}}</td>
<td>{{printDataS.friday[$index].split(':')[1]}}</td>
<td>{{printDataS.saturday[$index].split(':')[1]}}</td>
<td>{{printDataS.sunday[$index].split(':')[1]}}</td>
</tr>
</table>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{6 === isShow}}">
<view class='top_title'>
<image></image>
<text wx:if="{{hospitalId=='216'}}">菜谱推荐</text>
<text wx:if="{{hospitalId!='216'}}">食谱推荐</text>
</view>
<view wx:if="{{printDataS.recommendRecipes}}" >
<view wx:for="{{printDataS.recommendRecipes}}" wx:for-item="yszlItem">
<text style="font-weight: bold"></text>{{yszlItem}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{7 === isShow}}">
<view class='top_title'>
<image></image>
<text>辅食添加建议</text>
</view>
<view wx:if="{{printDataS.doctorSuggests}}">
<view wx:for="{{printDataS.doctorSuggests}}" wx:for-item="fstjItem">
<view wx:for="{{fstjItem}}" wx:for-item="ojbk">
<text style="font-weight: bold"></text>{{ojbk}}
</view>
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{8 === isShow}}">
<view class='top_title'>
<image></image>
<text>挑食建议</text>
</view>
<view wx:if="{{printDataS.suggests}}" >
<view wx:for="{{printDataS.suggests}}" wx:for-item="tsItem">
<text style="font-weight: bold"></text>{{tsItem}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{9 === isShow}}">
<view class='top_title'>
<image></image>
<text>进食行为建议</text>
</view>
<view wx:if="{{printDataS.feedSuggest}}" >
<view wx:for="{{printDataS.feedSuggest}}" wx:for-index="key" wx:for-item="val">
<text style="font-weight: bold"></text>{{val}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>
<view class="white-block" wx:if="{{10 === isShow}}">
<view class='top_title'>
<image></image>
<text>喂养常见问题及处理</text>
</view>
<view wx:if="{{printDataS.feedHandle}}">
<view wx:for="{{printDataS.feedHandle}}" wx:for-index="key" wx:for-item="val">
<text style="font-weight: bold"></text>{{val}}
</view>
</view>
<view class="my_apport" bindtap="goBack" > 返回 </view>
</view>