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
<!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="./shrtsq.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 class="mui-card"style="margin: 24px 16px 16px 16px; box-sizing: border-box;">
                        <div class="z_head">
                            <!-- 医生基本信息 -->
                            <div class="z_img_head1">
                                <img id="headPortrait"/>
                            </div>
                            <div class="z_card">
                                <div style="line-height: 18px;">
                                    <span id="name" class="z_card_name"></span>
                                </div>
                                <div style="margin-top: 8px; height: 16px; line-height: 16px;">
                                    <span id="academictitle" class="z_card_span"></span>
                                </div>
                                <div style="margin-top: 8px; height: 16px; line-height: 16px;">
                                    <span id="hospital" class="z_card_span"></span>
                                    <span id="department" class="z_card_span"></span>
                                </div>
                            </div>
                        </div>
                        <div class="z_yzxx">
                            <!-- 验证信息 -->
                            <div style="margin:16px 0px 10px 0px;height: 16px;line-height: 16px;">
                                <span id="sqly" class="sqly"></span>
                            </div>
                            <div style="margin:16px 0px 0px 0px;line-height: 16px;">
                                <span class="yzxx">验证信息:</span>
                                <span id="yzxx" class="yzxxnr"></span>
                            </div>
                        </div>
                        <div class="z_ckzy " onclick="click_row(menurows[0])">
                                <!-- 查看主页 -->
                            <div class="z_ckzy_text">
                                <span class="ckzy">查看主页</span>
                            </div>
                            <div class="z_ckzy_icon">
                                <img id="arrowRight"/>
                            </div>
                        </div>
                        <div class="z_swgly ">
                                <!-- 设为管理员 -->
                            <div class="z_swgly_text">
                                <span class="swgly">设为管理员</span>
                            </div>
                            <div class="mui-switch mui-switch mui-switch-mini"
                            style="width:56px;height:32px;margin-top:17px;margin-bottom:18px;margin-right:24px;float: right;">
                              <div class="mui-switch-handle"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="z_cz">
                        <div class="z_jj" onclick="click_row(menurows[1])">
                            <div class="jj">
                                <span class="jj_text">拒绝</span>
                            </div>
                            
                        </div>
                        <div class="z_tg">
                            <div class="tg" onclick="click_row(menurows[2])">
                                <span class="tg_text">通过申请</span>
                            </div>
                        </div>
                    </div>
                
            </div>
        </div>
        
        
        <script type="text/javascript">
            var headPortrait = "../../img/head1.jpg";
            var arrowRight = "../../img/ic_arrow_right.png";
            var name = "陈维";
            var academictitle = "主任医师";
            var hospital = "上海第十人民医院";
            var department = "心内科";
            var sqly="对方通过李亮分享的二维码发起申请";
            var yzxx="我是上海十院心内科的陈维,想申请加入您的医生团队,一起开展学术交流";
            
            
            var menurows = [
                {id: "0", name: "查看主页", path: "./yshomefhy",_id: 1015},
                {id: "1", name: "拒绝", path: "./jjsq",_id: 1033},
                {id: "2", name: "通过", path: "./",_id: 2003},
            ];
            mui.init({
                swipeBack:true //启用右滑关闭功能
            });
            
            // window.onload=function(){
            //     loadinfo();
            // }
            
            // 停止loading
            var int=self.setInterval("infosetuser()",100);
            function infosetuser() {
                if (login_data.userId != "123456") {
                    alert(login_data.userId);
                    window.clearInterval(int);
                    // muiInfo();
                    loadinfo();
                }
            }
            
            function loadinfo() {
                document.getElementById('headPortrait').src = headPortrait;
                document.getElementById('arrowRight').src = arrowRight;
                document.getElementById('name').innerText = name;
                document.getElementById('sqly').innerText = sqly;
                document.getElementById('yzxx').innerText = yzxx;
                document.getElementById('academictitle').innerText = academictitle;
                document.getElementById('hospital').innerText = hospital;
                document.getElementById('department').innerText = department;
                
                hideloading("loading");
            }
            
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params:{
                        userId: login_data.userId
                    }
                };
                
                app_click("route", pam, callback);
            }
            
            function docallback(err, resultObj){
                alert("123");
            }
            function err(err, resultObj){
                alert("err");
            }
            
            // 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;
                    }
                });
            }
            
        </script>
    </body>
 
</html>