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
<!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="./reserveMessage3.css" rel="stylesheet">
 
        <style type="text/css">
            #photos::-webkit-scrollbar {
                display: none;
            }
            input[type=text] {
                margin: 0;
                width: 216px;
                height: 34px;
                border-radius: 8px;
                border: 1px solid rgba(147, 147, 172, 0.3);
            }
        </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 style="width: 92px;float: right;overflow: hidden;">
                        <img src="../../img/head.png" class="top_img_right" />
                        </div>
                    </div>
                    <div>
                        <div class="title_txt">症状描述</div>
                    </div>
                </div>
                
                <div style="margin: 16px;box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="title_txt1">您近期有去线下医院就诊吗?</div>
                        <div class="title_txt_child">线下医院就诊记录可作为疾病和症状补充</div>
                        <div style="margin: 24px 0;height: 50px;">
                            <div id="yes" class="btn_left" onclick="click_select(this)">
                                <span>有</span>
                            </div>
                            <div id="no" class="btn_right" onclick="click_select(this)">
                                <span>没有</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="min-height: 121px;">
                <div id="medical_message" style="margin: 16px;margin-top: 0; box-sizing: border-box;display: none;">
                    <div class="mui-card">
                        <div class="title_txt1">就诊信息</div>
                        <div class="title_txt_child">上传就诊相关图片,比如病例、医生处方等。</div>
                        <div class="title_txt_child">如果没有可以不上传。</div>
                        <div class="title_txt_child">系统会自动识别图片中的医院和科室信息。</div>
                        <div class="select_photo" onclick="click_getPhoto()">
                            <img src="../../img/img_style.png" style="margin-top: 18px;" />
                            <div class="img_bottom_txt"><span>0</span>/10</div>
                        </div>
                        <div id="photos" style="overflow: auto;display: flex;">
                            
                            
                            <!-- <div class="photos_side"><img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=3363295869,2467511306&fm=26&gp=0.jpg" style="width: 60px;height: 60px;" /></div> -->
                            <!-- <div class="photos_side"><img src="../../img/boder_dash.png" /></div>
                            <div class="photos_side"><img src="../../img/boder_dash.png" /></div>
                            <div class="photos_side"><img src="../../img/boder_dash.png" /></div>
                            <div class="photos_side"><img src="../../img/boder_dash.png" /></div>
                            <div class="photos_side"><img src="../../img/boder_dash.png" /></div>
                            <div class="photos_side"><img src="../../img/boder_dash.png" /></div> -->
                        </div>
                        <div>
                            <div style="height: 34px;line-height: 34px;margin:0 16px 16px;">
                                <span>就诊的医院:</span>
                                <div class="right_area">
                                    <input type="text" />
                                </div>
                            </div>
                            <div style="height: 34px;line-height: 34px;margin:0 16px 16px;">
                                <span>科室:</span>
                                <div class="right_area">
                                    <input type="text" />
                                </div>
                            </div>
                        </div>
                    </div>
                </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>
        </div>
 
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            //1. data
            var zz_time = "不确定";
            
            var messageImgInfo = [
                {
                    id: "1",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "2",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "3",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "4",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "5",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "6",
                    src: "../../img/boder_dash.png"
                },
                {
                    id: "7",
                    src: "../../img/boder_dash.png"
                }
            ];
            
            var menurows = [{
                    id: "1",
                    name: "确认患者",
                    path: "./reserveMessage2",
                    _id: 1045
                },
                {
                    id: "2",
                    name: "预约须知",
                    path: "./reserveMessage4",
                    _id: 1047
                },
            ];
 
            setRouteParams({userId: "1352141846545367042",params: {}});
 
            function initPage() {
                
            }
 
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params: {
                        userId: login_data.id
                    }
                };
 
                app_click("route", pam, callback);
            }
 
            function click_getPhoto(){
                
                var pam = {
                    _id: 2050,
                    params: {
                        userId: login_data.id,
                    }
                };
                app_click('route',pam,callback);
                
                var img = self.setInterval(function(){
                    
                    if(img_data.ima){
                        
                    var photos_list = document.getElementById('photos');
                    var photos_data = '<div class="photos_side"><img src="'+img_data.ima+'" style="width: 60px;height: 60px;" /></div>';
                    photos_list.innerHTML = photos_data;
                        
                    clearInterval(img);
                    }
                }, 100);
                
            }
            
            function click_select(e){
                if(e.id == "yes"){
                    document.getElementById(e.id).classList.replace('btn_left','btn_left_sel');
                    document.getElementById('no').classList.replace('btn_right_sel','btn_right');
                    document.getElementById('medical_message').style.display = 'block';
                }else{
                    document.getElementById(e.id).classList.replace('btn_right','btn_right_sel');
                    document.getElementById('yes').classList.replace('btn_left_sel','btn_left');
                    document.getElementById('medical_message').style.display = 'none'
                    
                }
            }
            
            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() {
                
            }
            //3. run
            mui.ready(function() {
                onInitReady(function() {
                    // setRightBtn("rightBtn", {_id: 3000}, callback);
                    initPage();
                    loadData();
                });
            })
        </script>
    </body>
</html>