record.wxml
4.2 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
<!--pages/record/record.wxml-->
<cover-view class='record_tab'>
<cover-view class="record_left border_left {{showrecord?' active':''}}" bindtap='setshowrecord'>趋势图</cover-view>
<cover-view class="record_left {{showrecord?'':'active'}}" bindtap='setshowrecord'>病情记录</cover-view>
</cover-view>
<view class='container_box' wx:if='{{showrecord}}'>
<view class="container">
<view class='container_txt'>白细胞</view>
<canvas class="canvas" canvas-id="lineCanvaswhite" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerwhite"></canvas>
</view>
<view class="container">
<view class='container_txt'>中性粒细胞</view>
<canvas class="canvas" canvas-id="lineCanvasneutrophils" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerneutrophils"></canvas>
</view>
<view class="container">
<view class='container_txt'>血红蛋白</view>
<canvas class="canvas" canvas-id="lineCanvashemoglobin" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerhemoglobin"></canvas>
</view>
<view class="container">
<view class='container_txt'>血小板</view>
<canvas class="canvas" canvas-id="lineCanvasplatelet" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerplatelet"></canvas>
</view>
</view>
<!-- 病情记录 -->
<scroll-view class='file_plan' wx:else scroll-y bindscrolltolower='scrollbottom'>
<view class='plan_item1' wx:for='{{FilesLogList}}' wx:key>
<view class='title_box'>
<view>{{item.create_time}}</view>
<view class='title_img' bindtap='goeditfile' data-id='{{item.id}}'>
<image src='../../img/edit.png'></image>
</view>
</view>
<view class="two_item two_items {{item.more.white_blood_cell_result=='正常'?'':'danger'}}">
<view class='two_items_left'>
<view class='two_txt'>白细胞计数</view>
<view class='two_state' bindtap='gonormal'>
<view class='iconbox'>
<view class='iconfont icon-jinggao'></view>
</view>
{{item.more.white_blood_cell_result}}
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'> {{item.more.white_blood_cell}}</text>*10^9/L</view>
</view>
<view class="two_item two_items {{item.more.neutrophils_result=='正常'?'':'danger'}}">
<view class='two_items_left'>
<view class='two_txt'>中性粒细胞计数</view>
<view class='two_state' bindtap='gonormal'>
<view class='iconbox'>
<view class='iconfont icon-jinggao'></view>
</view>
{{item.more.neutrophils_result}}
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'>{{item.more.neutrophils}}</text>*10^9/L</view>
</view>
<view class="two_item two_items {{item.more.hemoglobin_result=='正常'?'':'danger'}}">
<view class='two_items_left'>
<view class='two_txt'>血红蛋白</view>
<view class='two_state' bindtap='gonormal'>
<view class='iconbox'>
<view class='iconfont icon-jinggao'></view>
</view>
{{item.more.hemoglobin_result}}
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'> {{item.more.hemoglobin}}</text>g/L</view>
</view>
<view class="two_item two_items {{item.more.platelet_result=='正常'?'':'danger'}}">
<view class='two_items_left'>
<view class='two_txt'>血小板计数</view>
<view class='two_state' bindtap='gonormal'>
<view class='iconbox'>
<view class='iconfont icon-jinggao'></view>
</view>
{{item.more.platelet_result}}
</view>
</view>
<view class="two_item_rigth">
<text class='two_num'>{{item.more.platelet}}</text>*10^9/L</view>
</view>
<view class='two_item' wx:if='{{item.doctor_reply != null}}'>
<view>医生建议:</view>
<view class='two_item_content'>{{item.doctor_reply == null ? '等待医生回复':item.doctor_reply}}</view>
</view>
</view>
<view class='addnomore' wx:if='{{shownomore}}'>——没有更多数据了——</view>
</scroll-view>
<!-- 趋势图 -->
<!-- <view class="container" wx:if='{{showrecord}}'>
<ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
</view> -->