wuzhenkun
2021-02-18 b0163a90cc1b62af2ed4d3c1d3fd5661ce0eb054
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
<!doctype html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>患者填写情况</title>
        <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
 
        <!-- js引用 -->
        <script src="../../js/config.js"></script>
        <script src="../../js/h5toapp.js"></script>
        <script src="../../js/h5to.js"></script>
 
        <!-- 组件js引用 -->
        <script src="../../js/mui.min.js"></script>
        <!-- 组件标准css引用 -->
        <link rel="stylesheet" href="../../css/mui.min.css">
        <link rel="stylesheet" href="../../css/mui.picker.min.css">
        <link rel="stylesheet" href="../../css/mui.poppicker.css">
        <!-- css引用 -->
        <link href="../../css/currency.css" rel="stylesheet">
        <link href="../../css/spinkit.css" rel="stylesheet">
        <link href="../../css/icon/iconfont.css" rel="stylesheet">
        <!-- 界面本身css引用 -->
        <link href="./hztxqk.css" rel="stylesheet">
 
        <style type="text/css">
            .mui-input-row .mui-input-clear~.mui-icon-clear {
                line-height: 15px;
            }
 
            input::-webkit-input-placeholder {
                color: #9393AC;
                -webkit-text-fill-color: #9393AC;
            }
        </style>
    </head>
 
    <body class="app_page">
        <div style="background-color:  #F9FAFC; height: 100vh; width: 100%; margin: 0; overflow: auto;">
            <div id="loading" class="example">
                <div class="sk-plane loading_location"></div>
            </div>
 
            <div class="mui-content">
 
 
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_btn_row" style="height: 64px;line-height: normal;">
                            <div class="z_title_icon">
                                <img src="../../img/ic_health_guide.png" />
                            </div>
                            <div id="down_frame_locate" class="z_menu_btn_row" style="height: 66px;line-height: normal;padding: 0;float: right">
                                <div class="z_menu_btn_row " style="height: 66px;line-height: 0;width: 256px;float: right;padding: 0;margin-left: 16px;">
                                    <div class="sffy_title" onclick="f()">
                                        <span id="select_txt" class="sffy_title_text">高血压1级</span>
                                        <div class="arrow_down" onclick="">
                                            <img src="../../img/btn/general/arrow/down.png" />
                                        </div>
                                    </div>
 
                                    <div id="cover_background" style="width: 100vw;height: 100vh;display: none;position: fixed;z-index: 1;top: 0;left: 0;"
                                     onclick="click_hidden()">
                                        <div class="sffy_dropdown" style="width: 343px;right: 16px;">
                                            <div class="sffy_dropdown_style" style="margin-top: 11px;" onclick="click_option(0)"><span class="sffy_dropdown_text">高血压1级</span></div>
                                            <div class="sffy_dropdown_style" style="margin-top: 11px;" onclick="click_option(1)"><span class="sffy_dropdown_text">高血压2级</span></div>
                                            <div class="sffy_dropdown_style" style="margin-top: 11px;" onclick="click_option(2)"><span class="sffy_dropdown_text">高血压3级</span></div>
                                            <div class="sffy_dropdown_style" style="margin-top: 11px;" onclick="click_option(3)"><span class="sffy_dropdown_text">心血管外科</span></div>
                                        </div>
                                    </div>
 
 
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="margin: 16px; box-sizing: border-box;background:#F9FAFC;">
                    <div class="z_body">
                        <div class="z_yqsd">
                            <div class="z_body_title">预期收到:</div>
                            <div class="z_body_content">17</div>
                        </div>
                        <div class="z_sjtx">
                            <div class="z_body_title">实际填写:</div>
                            <div class="z_body_content">12</div>
                        </div>
                        <div class="z_swsd">
                            <div class="z_body_title">尚未收到:</div>
                            <div class="z_body_content">5</div>
                        </div>
                    </div>
                </div>
 
                <div id="doctor_area"></div>
 
            </div>
        </div>
 
 
        <script type="text/javascript" src="../../js/mui.picker.min.js"></script>
        <script type="text/javascript" src="../../js/mui.poppicker.js"></script>
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            
            var doctorInfo = [{
                    id: "1",
                    doctorName: "张三丰",
                    disease: "高血压",
                    date: "12:17",
                    status: "查看"
                },
                {
                    id: "2",
                    doctorName: "张三丰",
                    disease: "高血压",
                    date: "尚未填写",
                    status: "提醒"
                },
            ];
 
            var doctorInfoOBJ = {};
 
            var menurows = [{
                    id: "1",
                    name: "医院主页",
                    path: "./",
                    _id: 1000
                }, //查看医院主页
                {
                    id: "2",
                    name: "随访量表",
                    path: "./",
                    _id: 2016
                }, //智能导诊
            ];
            
            setRouteParams({userId: 46354,params: {}});
            
            function initPage() {
                doctorInfoOBJ = {};
                doctorInfo.map(e => {
                    doctorInfoOBJ[e.id] = e;
                })
 
                var doctor_list = document.getElementById('doctor_area');
                var doctor_data = "";
                for (var i = 0; i < doctorInfo.length; i++) {
                    var doctor_data1 = "";
                    if (doctorInfo[i].date == "尚未填写") {
                        doctor_data1 =
                            '<div class="z_menu_btn_row" style="border-radius: 8px;margin:16px;height: 104px;line-height: normal;">' +
                                '<div class="left_area">' +
                                    '<img src="../../img/head.png" />' +
                                '</div>' +
                                '<div class="left_area">' +
                                    '<div style="margin-top: 16px;">' +
                                        '<div class="doctor_name">' + "姓名:" + doctorInfo[i].doctorName + '</div>' +
                                        '<div class="doctor_disease" >' + "疾病:" + doctorInfo[i].disease + '</div>' +
                                        '<div class="doctor_date">' +
                                            '<div style="float:left;color:#FE9870">'+"提交时间:" +'</div>' +
                                            '<div style="float:left;-webkit-text-fill-color:#FA4169">'+ doctorInfo[i].date + '</div>' +
                                        '</div>' +
                                    '</div>' +
                                '</div>' +
                                '<div class="right_area" style="margin: 40px 0;">' +
                                    '<div class="appointment_button" onclick="click_row_appointment(' + "'" + doctorInfo[i].id + "'" +
                                    ')">' + doctorInfo[i].status + '</div>' +
                                '</div>' +
                            '</div>'
                    } else {
                        doctor_data1 =
                            '<div class="z_menu_btn_row" style="border-radius: 8px;margin:16px;height: 104px;line-height: normal;">' +
                            '<div class="left_area">' +
                            '<img src="../../img/head.png" />' +
                            '</div>' +
                            '<div class="left_area">' +
                            '<div style="margin-top: 16px;">' +
                            '<div class="doctor_name">' + "姓名:" + doctorInfo[i].doctorName + '</div>' +
                            '<div class="doctor_disease" >' + "疾病:" + doctorInfo[i].disease + '</div>' +
                            '<div class="doctor_date">' +
                            '<div style="float:left;color:#FE9870">'+"提交时间:"+doctorInfo[i].date  +'</div>' +
                            '</div>' +
                            '</div>' +
                            '</div>' +
                            '<div class="right_area" style="margin: 40px 0;">' +
                            '<div class="appointment_button1" onclick="click_row_appointment(' + "'" + doctorInfo[i].id + "'" +
                            ')">' + doctorInfo[i].status + '</div>' +
                            '</div>' +
                            '</div>'
                    }
                    doctor_data += doctor_data1
                }
                doctor_list.innerHTML = doctor_data;
            }
 
            function click_row(idStr) {
                var row = doctorInfoOBJ[idStr];
                var pam = {
                    _id: 1056,
                    params: {
                        userId: login_data.userId
                    }
                };
                app_click("route", pam, callback);
            }
 
            function click_row_appointment(idStr) {
                var row = doctorInfoOBJ[idStr];
                var pam = {
                    _id: 2016,
                    params: {
                        userId: login_data.userId
                    }
                };
                app_click("route", pam, callback);
            }
 
            function click_row_direct(row) {
 
                var pam = {
                    _id: row._id,
                    params: {
                        userId: login_data.userId
                    }
                };
                app_click("route", pam, callback);
            }
 
            function click_hidden() {
                document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down', false);
                document.getElementById('cover_background').style.display = "none";
            }
 
            function f() {
 
                var domObj = document.getElementById('down_frame_locate');
                var aa = domObj.getBoundingClientRect().top;
                document.getElementsByClassName('sffy_dropdown')[0].style.top = aa + 64 + "px";
 
 
                document.getElementById('cover_background').style.display = "flex";
                document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down');
                if (document.getElementsByClassName('sffy_dropdown')[0].classList.contains('sffy_down')) {
                    setTimeout(function() {
                        document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'overlay';
                        document.getElementsByClassName('sffy_dropdown')[0].style.border = '1px solid #F2F2F2';
                    }, 100)
                } else {
                    document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'hidden';
                    document.getElementsByClassName('sffy_dropdown')[0].style.border = '0px solid #F2F2F2';
                }
            }
 
            function click_option(e) {
                if (e == 0) {
                    document.getElementById('select_txt').innerText = "高血压1级";
                } else if (e == 1) {
                    document.getElementById('select_txt').innerText = "高血压2级";
                } else if (e == 2) {
                    document.getElementById('select_txt').innerText = "高血压3级";
                } else if (e == 3) {
                    document.getElementById('select_txt').innerText = "心血管外科";
                }
                document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'hidden';
                document.getElementsByClassName('sffy_dropdown')[0].style.border = '0px solid #F2F2F2';
                document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down');
            }
            
            function loadData() {
                doLoadData();
                hideloading("loading");
            }
            
            function doLoadData() {
                
            }
            
            mui.ready(function() {
                onInitReady(function() {
                    initPage();
                    loadData();
                });
            });
        </script>
    </body>
</html>