record.wxml
4.8 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
<!--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_top'>
<view class='top_left' bindtap='preweek'><image src='../../img/pre.png'></image></view>
<view>{{current_date}}</view>
<view class='top_rigth' bindtap='nxetweek'><image src='../../img/next.png'></image></view>
</view>
<view class='container_contertab'>
<view class="contertab {{tab==1?'contertab_active':''}}" data-tab='1' bindtap='settab'>白细胞计数</view>
<view class="contertab {{tab==2?'contertab_active':''}}" data-tab='2' bindtap='settab'>中性粒细胞</view>
<view class="contertab {{tab==3?'contertab_active':''}}" data-tab='3' bindtap='settab'>血红蛋白</view>
<view class="contertab {{tab==4?'contertab_active':''}}" data-tab='4' bindtap='settab'>血小板</view>
</view>
<view class='tab_content' wx:if='{{showline}}'>
<!-- 白细胞 -->
<view wx:if='{{tab==1}}'>
<canvas class="canvas" canvas-id="lineCanvaswhite" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerwhite"></canvas>
</view>
<!-- 中性粒细胞 -->
<view wx:if='{{tab==2}}'>
<canvas class="canvas" canvas-id="lineCanvasneutrophils" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerneutrophils"></canvas>
</view>
<!-- 血红蛋白 -->
<view wx:if='{{tab==3}}'>
<canvas class="canvas" canvas-id="lineCanvashemoglobin" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerhemoglobin"></canvas>
</view>
<!-- 血小板 -->
<view wx:if='{{tab==4}}'>
<canvas class="canvas" canvas-id="lineCanvasplatelet" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerplatelet"></canvas>
</view>
</view>
<view wx:else class='nodata'>暂无相关数据</view>
</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.test_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.length != 0}}'>
<view>医生建议:</view>
<view class='two_item_content'>{{item.doctor_reply.length == 0 ? '等待医生回复':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> -->