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
<!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">
        <!-- 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="./lastAllergy.css" rel="stylesheet">
 
        <style type="text/css">
        </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="min-height: 550px;">
                    <div style="margin: 16px; box-sizing: border-box;">
                        <div class="mui-card">
                            <div class="z_menu_btn_row" onclick="click_row(menurows[0])" style="height: 56px;line-height: 56px;">
                                <div class="left_area">
                                    请输入或选择疾病
                                </div>
                                <div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
                                    <img src="../../img/ic_arrow_right1.png" />
                                </div>
                                <div class="right_area">高血压</div>
                            </div>
                        </div>
                    </div>
 
                    <div style="margin: 16px; box-sizing: border-box;">
                        <div class="mui-card">
                            <div class="z_menu_btn_row" onclick="f()" 
                            style="height: 56px;line-height: 56px;border: 0;" id="down_frame_locate">
                                <div class="left_area">
                                    过敏类型
                                </div>
                                <div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
                                    <img src="../../img/ic_arrow_down.png" />
                                </div>
                                
                                <div class="right_area" id="gmlx"></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;left: 16px;">
                                    <div class="sffy_dropdown_top" onclick="click_option1(0)">未知</div>
                                    <div class="sffy_dropdown_bottom" onclick="click_option1(1)">药物</div>
                                    <div class="sffy_dropdown_bottom" onclick="click_option1(2)">食物/接触物</div>
                                </div>
                            </div>
                        </div>
                    </div>
 
                    <div style="margin: 16px; box-sizing: border-box;">
                        <div class="mui-card">
                            <div class="z_menu_btn_row" style="height: 56px;line-height: 56px;" onclick="click_row(menurows[1])">
                                <div class="left_area">
                                    过敏症状
                                </div>
                                <div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
                                    <img src="../../img/ic_arrow_down.png" />
                                </div>
                                <div class="right_area">2020</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="width: 100%;">
                    <button class="save_button" onclick="click_row(menurows[2])">保存</button>
                </div>
            </div>
        </div>
 
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            
            var doctorInfoOBJ = {};
            var gmlx = "未知";
            var menurows = [{
                    id: "1",
                    name: "填写过敏源",
                    path: "./fillLastAllergyOrigin",
                    _id: 1016
                },
                {
                    id: "2",
                    name: "填写过敏症状",
                    path: "./fillLastAllergySymptom",
                    _id: 1017
                },
                {
                    id: "3",
                    name: "健康档案",
                    path: "./jkda",
                    _id: 1043
                },
                {
                    id: "4",
                    name: "共享的随访量表",
                    path: "./sflb"
                },
            ];
            
            setRouteParams({userId: "1352141846545367042",params: {}});
            
            function initPage() {
                document.getElementById('gmlx').innerText = gmlx;
 
            }
 
            function click_option1(e) {
                switch (e) {
                    case 0:
                        document.getElementById('gmlx').innerText = "未知";
                        break;
                    case 1:
                        document.getElementById('gmlx').innerText = "药物";
                        break;
                    default:
                        document.getElementById('gmlx').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', false);
            }
 
            function f() {
                var domObj = document.getElementById('down_frame_locate');
                var aa = domObj.getBoundingClientRect().top;
                document.getElementsByClassName('sffy_dropdown')[0].style.top = aa + 55 + "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';
                    document.getElementById('cover_background').style.display = "none";
                }
            }
 
            function click_hidden() {
                document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down', false);
                document.getElementById('cover_background').style.display = "none";
            }
 
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params: {
                        userId: login_data.userId
                    }
                };
                app_click('route',pam,callback);
            }
            
            function loadData() {
                doLoadData();
                hideloading('loading');
            }
            
            function doLoadData() {
                
            }
            //3. run
            mui.ready(function() {
                onInitReady(function() {
                    initPage();
                    loadData();
                });
            })
        </script>
    </body>
</html>