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
292
293
294
295
296
297
298
299
300
301
<!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="./intelligentCheck4.css" rel="stylesheet">
 
        <style type="text/css">
            .mui-scroll-wrapper {
                /* top: 371px; */
                height: 260px;
            }
 
            .mui-scroll-wrapper {
                position: relative;
            }
        </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 class="z_head" style=" box-sizing: border-box;">
                    <div style="margin: 16px 0; box-sizing: border-box;">
                        <div style="width: 92px;float: left;overflow: hidden;">
                            <img src="../../img/head.png" class="top_img_left" />
                        </div>
                        <img src="../../img/head.png" class="top_img" />
                    </div>
                    <div>
                        <div class="title_txt">选择医生</div>
                        <div class="progress_bar_style">
                            <div class="progress_background"></div>
                        </div>
                        <div class="percentage_txt">当前完成100%</div>
                    </div>
                </div>
                <!--选择医生-->
                <div class="z_body" style=" box-sizing: border-box;">
                    <div class="z_body_top">选择医生</div>
                    <div class="z_body_bottom">
                        初步诊断,您有较大概率咨询
                        <span style="color: #21D197;">腰间盘突出</span>
                        或其他相似疾病,已为您推荐以下
                        <span style="color: #21D197;">脊柱外科</span>
                        医生;
                    </div>
                </div>
                <div class="mui-scroll-wrapper">
                    <div class="mui-scroll">
 
                        <div class="z_list_module">
                            <div class="z_img_head1">
                                <img id="headPortrait" />
                            </div>
                            <div class="z_list_top_m">
                                <div id="name" class="z_name"></div>
                                <div id="academictitle" class="z_academictitle"></div>
                                <div id="hospital" class="z_academictitle"></div>
                                <div id="department" class="z_academictitle"></div>
                            </div>
                            <div class="z_list_top_r">
                                <div class="z_list_top_r_t">
                                    <img src="../../img/ic_video_on.png" />
                                </div>
                                <div class="z_list_top_r_m">直播中</div>
                            </div>
                        </div>
                        <div class="z_list_module">
                            <div class="z_img_head1">
                                <img id="headPortrait" />
                            </div>
                            <div class="z_list_top_m">
                                <div class="z_name">陈维</div>
                                <div class="z_academictitle">主任医师</div>
                                <div class="z_academictitle">上海第十人民医院</div>
                                <div class="z_academictitle">心内科</div>
 
                            </div>
                            <div class="z_list_top_r">
                                <div class="z_list_bottom_r_t">
                                    <img src="../../img/ic_video_on.png" />
                                </div>
 
                                <div class="z_list_bottom_r_m">在线</div>
 
                            </div>
                        </div>
                    </div>
                </div>
 
                <!--匹配超时-->
                <div class="z_ppcs" style=" box-sizing: border-box;">
                    <div class="z_ppcs_top">匹配超时</div>
                    <div class="z_ppcs_bottom">
                        为避免你长时间等待,</br>
                        等待超时三次后将自动取消订单并退款
                    </div>
                </div>
 
 
                <!--匹配不一致-->
                <div class="z_ppbyz" style=" box-sizing: border-box;">
                    <div class="z_ppbyz_top">确认科室</div>
                    <div class="z_ppbyz_middle">初步诊断,您有较大概率咨询
                        <span style="color: #21D197;">腰间盘突出</span>
                        或其他相似疾病,建议您咨询
                        <span style="color: #21D197;">脊柱外科</span>
                        医生;</div>
                    <div class="z_ppbyz_bottom">
                        检测到您选择的科室与智能导诊的结果不一致:</br></br>
                        您选择的科室:
                        <span style="color: #21D197;">胸外科</span></br></br>
                        智能导诊结果:
                        <span style="color: #21D197;">脊柱外科</span>
                    </div>
                </div>
 
                <!--匹配成功-->
                <div style="height: 148px; margin: 16px;">
                    <div class="z_ppsb" style=" box-sizing: border-box;">
                        <div class="z_ppsb_top">匹配医生</div>
                        <div class="z_ppsb_middle">
                            已为您匹配到
                            <span style="color: #21D197;">脊柱外科</span>
                            医生
                        </div>
                    </div>
                    <div class="z_ppsb_bottom">点击切换科室</div>
                </div>
                
                <!--匹配失效-->
                <div class="z_ppsx" style=" box-sizing: border-box;">
                    <div class="z_ppsx_top">匹配医生</div>
                    <div class="z_ppsx_middle">暂无医生应答</div>
                    <div class="z_ppsx_bottom">
                        初步诊断,您有较大概率咨询
                        <span style="color: #21D197;">腰椎间盘突出</span>
                        或其他相似疾病,建议您咨询
                        <span style="color: #21D197;">脊柱外科</span>
                        医生。
                    </div>
                </div>
                
                <div class="z_foot">
                    <div class="z_foot_back" onclick="click_row(menurows[0])">
                        <span>上一步</span>
                    </div>
                    <div class="z_foot_next" onclick="click_row(menurows[1])">
                        <span>问医生</span>
                    </div>
                </div>
 
            </div>
 
 
            <script type="text/javascript">
                mui.init({
                    swipeBack: true ,//启用右滑关闭功能
                    mui('.mui-scroll-wrapper').scroll({
                        deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
                    });
                });
                //1. data
                var hz_name = "张翠山";
                var hz_sex = "男";
                var hz_age = "50岁";
                var headPortrait = "../../img/head1.jpg";
                var name = "陈维";
                var academictitle = "主任医师";
                var hospital = "上海第十人民医院";
                var department = "心内科";
                var leveltitle = "权威专家";
 
                var doctor = {};
                var menurows = [{
                        id: "1",
                        name: "就诊情况",
                        path: "./intelligentCheck3",
                        _id: 1057
                    },
                    {
                        id: "2",
                        name: "订单确认",
                        path: "../my/ddqr",
                        _id: ""
                    },
                ];
 
                //2.function
                function f() {
 
                    var domObj = document.getElementById('down_frame_locate');
                    var aa = domObj.getBoundingClientRect().top;
                    document.getElementsByClassName('sffy_dropdown')[0].style.top = aa + 46 + "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('sex').innerText = "小于1天";
                    } else if (e == 1) {
                        document.getElementById('sex').innerText = "1-3天";
                    } else if (e == 2) {
                        document.getElementById('sex').innerText = "3-7天";
                    } else if (e == 3) {
                        document.getElementById('sex').innerText = "一周以上";
                    } else if (e == 4) {
                        document.getElementById('sex').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);
                }
 
                setRouteParams({userId: "1352141846545367042",params: {"doctorId": "1285860235186212865"}});
 
                function initPage() {
                    document.getElementById('headPortrait').src = headPortrait;
                    document.getElementById('name').innerText = name;
                    document.getElementById('academictitle').innerText = academictitle;
                    document.getElementById('hospital').innerText = hospital;
                    document.getElementById('department').innerText = department;
                }
 
                function click_row(row) {
                    var pam = {
                        _id: row._id,
                        params: {
                            userId: login_data.id
                        }
                    };
 
                    app_click("route", pam, callback);
                }
 
                function loadData() {
                    ajaxGet('doctor/api/query/' + login_data.params.doctorId, function(result) {
                        if (result) {
                            console.info(result);
                            doctor = result.data
                        }
                        
                        doLoadData();
                        hideloading("loading");
                    });
                }
                
                function doLoadData(){
                    document.getElementById('headPortrait').src = doctor.doctorAvatar;
                    document.getElementById('name').innerText = doctor.doctorName;
                    document.getElementById('academictitle').innerText = doctor.doctorProfessional;
                    document.getElementById('hospital').innerText = doctor.medoHospitalName;
                    document.getElementById('department').innerText = doctor.mediDiseaseClassifyName01;
                }
                
                //3. run
                mui.ready(function() {
                    onInitReady(function() {
                        // setRightBtn("rightBtn", {_id: 3000}, callback);
                        initPage();
                        loadData();
                    });
                })
        </script>
    </body>
</html>