kimi
2021-02-18 749a5510a9f014446a3cd6ba57b3cb0cc8148dc1
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!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/icon/iconfont.css" rel="stylesheet">
        <link href="../../css/spinkit.css" rel="stylesheet">
        <!-- 界面本身css引用 -->
        <link href="./grxx.css" rel="stylesheet">
        
        <style type="text/css">
            .mui-popup {
                width: 327px;
                
            }
            
            .mui-popup .mui-popup-inner{
                width: 327px;
                height: 296px;
                
            }
            .mui-popup .mui-popup-inner .mui-popup-title{
                margin-top: 17px;
                
                font-size: 17px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #363F4D;
                line-height: 20px;
            }
            .mui-popup .mui-popup-inner .mui-popup-text{
                margin-top: 24px;
                
                font-size: 36px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #6D7278;
                line-height: 50px;
                letter-spacing: 2px;
            }
            /* .mui-popup-buttons .mui-popup-button {
                width: 125px;
                height: 50px;
                border-radius: 8px;
                border: 1px solid #E0E0E0;
                
                font-size: 15px;
                font-family: PingFangSC-Regular, PingFang SC;
                font-weight: 400;
                color: #9393AA;
                line-height: 15px;
            } */
            
        </style>
    </head>
 
    <body>
        <!-- <header class="mui-bar mui-bar-nav">
            <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
            <h1 class="mui-title">个人信息</h1>
        </header> -->
 
        <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_group">
                            <div class="z_menu_btn_row" style="height: 76px; line-height: 76px;" onclick="click_row(menurows[0])">
                                <!-- <div class="z_menu_btn_img"></div> -->
                                
                                <div class="z_menu_btn_txt" >
                                    <span>头像</span>
                                    <!-- <span><i class="iconfont icondown"></i></span> -->
                                </div>
                                <div class="z_menu_btn_icon">
                                    <img src="../../img/ic_arrow_right.png" />
                                </div>
                                <div class="z_menu_btn_icon">
                                    <div class="z_img_head1">
                                        <img id="headPortrait"/>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_row " onclick="click_row(menurows[1])">
                                <!-- <div class="z_menu_btn_img"></div> -->
                                <div class="z_menu_btn_txt">
                                    <span>我的称号</span>
                                </div>
                                <div class="z_menu_btn_icon">
                                    <img src="../../img/ic_arrow_right.png" />
                                </div>
                                <div class="z_menu_btn_icon">
                                    <div id="mych" class="inline margin16_lr z_menu_btn_txt_r"></div>
                                </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: 60px; line-height: 60px;" onclick="click_row(menurows[2])">
                            <!-- <div class="z_menu_btn_img"></div> -->
                            
                            <div class="z_menu_btn_txt" >
                                <span>二维码名片</span>
                                <!-- <span><i class="iconfont icondown"></i></span> -->
                            </div>
                            <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div>
                            <div class="z_menu_btn_icon">
                                <div class="z_img_qrcode" >
                                    <img src="../../img/我二维码-74备份%202.png" />
                                    <!-- <i class="iconfont iconico" style="font-size: 28px;"></i> -->
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card" onclick="click_row(menurows[3])">
                        <div class="z_menu_btn_row" style="height: 66px; line-height: 66px;" >
                            <div class="z_menu_btn_img">
                                <div class="z_menu_btn_img1">
                                    <img src="../../img/Icon_Title备份%203.png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span id="my_name"></span>
                            </div>
                            <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div>
                        </div>
                        
                        <div class="z_menu_btn_row" style="height: 292px; line-height: normal;">
                            <div class="" style="margin-top: 22px;">
                                <div class="z_my_gzd">
                                    <span>
                                        <span>性别:</span><span id="" class="z_menu_btn_txt_list">男</span>
                                    </span>
                                    <span>
                                        <span>出生日期:</span><span id="" class="z_menu_btn_txt_list">2020.10.23</span>
                                    </span>
                                </div>
                                
                                <div style="margin: 16px 0px;">
                                    <div>
                                        <span>所在医院:</span><span id="" class="z_menu_btn_txt_list">上海复旦大学附属医院</span>
                                    </div>
                                </div>
                                
                                <div class="z_my_gzd">
                                    <span>
                                        <span>所在科室:</span><span id="" class="z_menu_btn_txt_list">心内科</span>
                                    </span>
                                    <span>
                                        <span>职称:</span><span id="" class="z_menu_btn_txt_list">主任医师</span>
                                    </span>
                                </div>
                                <div class="z_my_gzd" style="margin-top: 14px;">
                                        <span>
                                            <span>简介:</span><span id="" class="z_menu_btn_txt_list ellipsis_txt">丁立刚,男,副主任医师,医学博士,以心律失常诊断和治疗为丁立刚,男,副主任医师,医学博士,以心律失常诊断和治疗为专业特长,在心房颤动和室性心律失常的射频消融,埋藏式心律转复…</span>
                                        </span>
                                </div>
                                <div class="z_my_gzd" style="margin-top: 14px;">
                                        <span>
                                            <span>擅长:</span><span id="" class="z_menu_btn_txt_list sc_txt_style" style="float: right;">房颤消融术,CRT/ICD/起搏器植入,室上速/室早/室速射频消融治疗。</span>
                                        </span>
                                </div>
                            </div>
                        </div>
                        
                    </div>
                </div>
                
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div id="confirmBtn_sjh" class="z_menu_btn_row" style="height: 57px; line-height: 57px;">
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img3" >
                                    <img src="../../img/形状(3).png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>手机号</span>
                            </div>
                            <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div>
                            <div class="z_menu_btn_icon">
                                <div id="tel" class="inline margin16_lr z_menu_btn_txt_list" style="line-height: 16px;"></div>
                            </div>
                        </div>
                        <div id="confirmBtn_wx" class="z_menu_btn_row" style="height: 57px; line-height: 57px;">
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img3" >
                                    <img src="../../img/形状(4).png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>微信</span>
                            </div>
                            <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div>
                            <div class="z_menu_btn_icon">
                                <div id="tel" class="inline margin16_lr z_menu_btn_txt_r" style="line-height: 16px;"></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: 63px; line-height: 63px;" onclick="click_check(1)" >
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img4">
                                    <img src="../../img/组%2050.png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>认证信息</span>
                            </div>
                            <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div>
 
                            <div class="z_menu_btn_icon">
                                <div id="rz_txt1" class="inline margin16_lr z_menu_btn_txt_list" style="margin-left: 10px;"></div>
                            </div>
                            <div class="z_menu_btn_icon" style="line-height: 100%;">
                                <div class="z_img_tip" style="background: #FFFFFF;">
                                    <i id="icon_tip" class="iconfont iconquestion icon_tip"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="z_menu_btn_row" style="height: 63px; line-height: 63px;" onclick="click_check(2)">
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img4">
                                    <img src="../../img/组%2052.png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>身份证</span>
                            </div>
                            <!-- <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div> -->
                        
                            <div class="z_menu_btn_icon">
                                <div id="rz_txt2" class="inline margin16_lr z_menu_btn_txt_list" style="margin-right: 0;">通过认证</div>
                            </div>
                            <div class="z_menu_btn_icon" style="line-height: 100%;">
                                <div class="z_img_tip">
                                    <img id="icon_tip"/>
                                </div>
                            </div>
                        </div>
                        
                        <div class="z_menu_btn_row" style="height: 63px; line-height: 63px;" onclick="click_check(3)">
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img4">
                                    <img src="../../img/组%2053.png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>执业证</span>
                            </div>
                            <!-- <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div> -->
                        
                            <div class="z_menu_btn_icon">
                                <div id="rz_txt3" class="inline margin16_lr z_menu_btn_txt_list" style="margin-right: 0;">通过认证</div>
                            </div>
                            <div class="z_menu_btn_icon" style="line-height: 100%;">
                                <div class="z_img_tip">
                                    <img id="icon_tip"/>
                                </div>
                            </div>
                        </div>
                        
                        <div class="z_menu_btn_row" style="height: 63px; line-height: 63px;" onclick="click_check(4)">
                            <div class="z_menu_btn_img" style="margin-right: 25px;">
                                <div class="z_menu_btn_img4">
                                    <img src="../../img/组%2054.png" />
                                </div>
                            </div>
                            
                            <div class="z_menu_btn_txt" >
                                <span>职称证</span>
                            </div>
                            <!-- <div class="z_menu_btn_icon">
                                <img src="../../img/ic_arrow_right.png" />
                            </div> -->
                        
                            <div class="z_menu_btn_icon">
                                <div id="rz_txt4" class="inline margin16_lr z_menu_btn_txt_list" style="margin-right: 0;">通过认证</div>
                            </div>
                            <div class="z_menu_btn_icon" style="line-height: 100%;">
                                <div class="z_img_tip">
                                    <img id="icon_tip"/>
                                </div>
                            </div>
                        </div>
                        
                    </div>
                </div>
                <div style="width: 100%;">
                <button class="exit_button" onclick="click_row(menurows[7])">退出登录</button>
                </div>
            </div>
        </div>
        
        <div id="myModal" class="modal">
            <div class="modal-content">
              <div class="modal-header">
                <span class="close">&times;</span>
                <div>当前登录的手机号:</div>
              </div>
              <div class="modal-body">
                <div class="sjh_txt">13578945665</div>
                <div class="sfgh_txt">是否更换手机号?</div>
              </div>
              <div class="modal-footer">
                <button class="confirm_button" onclick="click_row(menurows[4])">更换</button>
                <button class="cancel_button">取消</button>
              </div>
            </div>
        </div>
        
        <script type="text/javascript">
            var headPortrait = "../../img/head1.jpg";
            
            var my_name = "陈维";
            var academictitle = "主任医师";
            var hospital = "上海第十人民医院";
            var department = "心内科";
            
            var mych = "权威专家";
            var rz_txt1 = "通过认证";
            var tel = 12378+"****"+89;
            
            var val_hzs = 12;
            var val_yss = 12;
            
            var val_hz = 123;
            var val_gz = 111;
            var val_fs = 100;
            
            var zsOptions = [
                {id: "1", name: "我的诊室", path: ""},
                {id: "2", name: "我的团队1诊室", path: ""},
                {id: "3", name: "我的团队2诊室", path: ""}
            ];
            
            var menucards = [
                {id: "1", name: "在线接诊", path: ""},
                {id: "2", name: "极速接诊", path: ""},
                {id: "3", name: "私人医生", path: ""},
                {id: "4", name: "在线挂号", path: ""},
            ];
            var zxjz_num = 0;
            var jsjz_num = 0;
            var srys_num = 0;
            var zxgh_num = 0;
            
            var rz_message = [
                {id: "1", name: "认证信息", path: "./",_id: 2007},
                {id: "2", name: "更新认证信息", path: "./gxrzxx",_id: 1046},
                {id: "3", name: "更新其他认证信息", path: "./gxqtrzxx",_id: 1047,pageId: 2008},
                {id: "4", name: "更新其他认证信息", path: "./gxrzxx",_id: 1047,pageId: 2009},
                {id: "5", name: "更新其他认证信息", path: "./gxrzxx",_id: 1047,pageId: 2010},
            ];
            
            var menurows = [
                {id: "1", name: "设置头像", path: "./sztx",_id: 2004},
                {id: "2", name: "称号说明", path: "./chsm",_id: 1006},
                {id: "3", name: "二维码名片", path: "./mydt/mydt",_id: 2003},
                {id: "4", name: "修改个人信息", path: "./xggrxx",_id: 1007},
                {id: "5", name: "绑定手机号", path: "./jj",_id: 2005},
                {id: "6", name: "绑定微信", path: "./sc",_id: 2006},
                
            ];
            var my_profit = 123.45;
            
            var myzs_num = 11;
            var xtxx_num = 110;
            
            // 停止loading
            var int=self.setInterval("infosetuser()",100);
            function infosetuser() {
                if (login_data.userId != "123456") {
                    alert(login_data.userId);
                    window.clearInterval(int);
                    muiInfo();
                    loadinfo();
                }
            }
            
             // function ocCallJs(result) {
             //            alert(result);
             //        }
            
            function muiInfo() {
                mui.init({
                    swipeBack:true //启用右滑关闭功能
                });
            }
            
            // document.getElementById('my_name').innerText = result;
            
            
            function loadinfo() {
                
                document.getElementById('headPortrait').src = headPortrait;
                document.getElementById('mych').innerText = mych;
                document.getElementById('my_name').innerText = my_name;
                document.getElementById('tel').innerText = tel;
                document.getElementById('rz_txt1').innerText = rz_txt1;
                
                if(document.getElementById('rz_txt1').innerText == '通过认证' || document.getElementById('rz_txt2').innerText == '通过认证'|| document.getElementById('rz_txt3').innerText == '通过认证'|| document.getElementById('rz_txt4').innerText == '通过认证'){
                    document.getElementById("icon_tip").classList.replace("iconquestion","iconicon095");
                    document.getElementById("icon_tip").classList.replace("icon_tip","icon_tip1");
                }
                
                // document.getElementById("confirmBtn_sjh").addEventListener('tap', function() {
                //     var btnArray = ['更换', '取消'];
                //     mui.confirm(tel+"\n<span class='dialog_txt_tel'>"+"是否更换手机号?</span>", '当前登录的手机号:', btnArray, function(e) {
                //         if (e.index == 0) {
                //             click_row(menurows[4]);
                //         }
                //     })
                // });
                
                document.getElementById("confirmBtn_wx").addEventListener('tap', function() {
                    var btnArray = ['解绑', '取消'];
                    mui.confirm('','解除绑定后将不能使用此微信号快捷登录,确认解除绑定吗?', btnArray, function(e) {
                        if (e.index == 0) {
                            click_row(menurows[5]);
                        } 
                    })
                });
                
                
                var modal = document.getElementById('myModal');
                var btn = document.getElementById("confirmBtn_sjh");
                var cancel_btn = document.getElementsByClassName('cancel_button')[0];
                btn.onclick = function() {
                    modal.style.display = "block";
                }
                cancel_btn.onclick = function() {
                    modal.style.display = "none";
                }
                window.onclick = function(event) {
                    if (event.target == modal) {
                        modal.style.display = "none";
                    }
                }
                
                
                
                clickEventList();
                hideloading("loading");
            }
            
            function click_row(row) {
                if(row._id == 1046){
                var pam = {
                    _id: row._id,
                    params:{
                        userId: login_data.id,
                        pageId: row.pageId,
                    }
                };
                    
                }else{
                var pam = {
                    _id: row._id,
                    params:{
                        userId: login_data.id
                    }
                };
                }
                
                app_click("route", pam, callback);
            }
            
            
            
            function docallback(err, resultObj){
                alert("123");
            }
            function err(err, resultObj){
                alert("err");
            }
            
            function click_check(row){
                // console.log(row);
                // console.log(document.getElementById('rz_txt2').innerText);
                if(document.getElementById('rz_txt1').innerText != "通过认证" && document.getElementById('rz_txt2').innerText != "通过认证"&& document.getElementById('rz_txt3').innerText != "通过认证"&& document.getElementById('rz_txt4').innerText != "通过认证"){
                    click_row(rz_message[0]);
                }else {
                    if(row==1){
                        click_row(rz_message[1]);
                    }else if(row==2) {
                        click_row(rz_message[2]);
                    }else if(row==3) {
                        click_row(rz_message[3]);
                    }else if(row==4) {
                        click_row(rz_message[4]);
                    }
                }
                
            }
            
            // function click_row(row) {
            //     mui.openWindow({
            //       url: row.path + '.html'
            //     });
            // }
            
            function clickEventList() {
                mui('body').on('tap', '.mui-popover-action li>a', function(event) {
                    event.cancelBubble = true;//阻止当前事件的冒泡
                    var a = this, parent;
                    //根据点击按钮,反推当前是哪个actionsheet
                    for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
                        if (parent.classList.contains('mui-popover-action')) {
                            break;
                        }
                    }
                    
                    //关闭actionsheet
                    mui('#' + parent.id).popover('toggle');
                    if (parent.id == "myzsSelect") {
                        document.getElementById('myzs_name').innerHTML = a.innerHTML;
                    }
                });
                
                /* mui('body').on('tap', '.z_menu_btn_row', function() {
                    var a = this, parent;
                    //根据点击按钮,反推当前是哪个actionsheet
                    for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
                        if (parent.classList.contains('mui-popover-action')) {
                            break;
                        }
                    }
                    
                    //打开关于页面
                    mui.openWindow({
                      url: a.id + '.html'
                    });
                    
                }); */
                
                
                
                
            }
            
            
        </script>
    </body>
 
</html>