wuzhenkun
2021-02-18 95033a06a92d00cbf9c103c8512e1b1c7a7646e5
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
<!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="./ysxx.css" rel="stylesheet">
 
        <style type="text/css">
 
        </style>
    </head>
 
    <body>
        <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_btn_row" style="height: 66px; line-height: 66px;">
                            <div class="z_menu_btn_txt">
                                <span id="doctorName"></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: 106px; 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="medoHospitalName" class="z_menu_btn_txt_list"></span>
                                    </div>
                                </div>
                                <div class="z_my_gzd">
                                    <span>
                                        <span>所在科室:</span><span id="mediDiseaseClassifyName01" class="z_menu_btn_txt_list"></span>
                                    </span>
                                    <span>
                                        <span>职称:</span><span id="doctorProfessional" class="z_menu_btn_txt_list"></span>
                                    </span>
                                </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: 66px; line-height: 66px;">
                            <div class="z_menu_btn_txt">
                                <span>简介</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: 85px; line-height: normal;">
                            <div class="" style="margin-top: 16px;margin: 21px 0;">
                                <span id="doctorIntroduce" class="z_menu_btn_txt_bottom"></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_btn_row" style="height: 66px; line-height: 66px;">
                            <div class="z_menu_btn_txt">
                                <span>擅长</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: 62px; line-height: normal;">
                            <div class="" style="margin-top: 16px;">
                                <span id="doctorAdvantage" class="z_menu_btn_txt_bottom"></span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
 
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            
            var personInfo = {
 
            };
            var mych = "权威专家";
            var rz_txt = "通过认证";
            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 menurows = [{
                id: "1",
                name: "设置头像",
                path: "./sztx"
            }, {
                id: "2",
                name: "称号说明",
                path: "./chsm"
            }, {
                id: "3",
                name: "二维码名片",
                path: "./mydt/mydt"
            }, {
                id: "4",
                name: "修改个人信息",
                path: "./xggrxx"
            }, {
                id: "5",
                name: "简介",
                path: "./jj"
            }, {
                id: "6",
                name: "擅长",
                path: "./sc"
            }, {
                id: "7",
                name: "手机号",
                path: "./sjh"
            }];
            var my_profit = 123.45;
            var myzs_num = 11;
            var xtxx_num = 110;
            var personInfo = {};
 
            setRouteParams({
                userId: "1285860235186212865",
                params: {
                    "doctorId": "1285860235186212865"
                }
            });
 
            function initPage() {
                document.getElementById('doctorName').innerText = doctorName;
                document.getElementById('doctorProfessional').innerText = doctorProfessional;
                document.getElementById('medoHospitalName').innerText = medoHospitalName;
                document.getElementById('mediDiseaseClassifyName01').innerText = mediDiseaseClassifyName01;
                document.getElementById('doctorIntroduce').innerText = doctorIntroduce;
                document.getElementById('doctorAdvantage').innerText = doctorAdvantage;
 
            }
 
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params: {
                        userId: login_data.userId,
                    }
                };
                app_click("route",pam,callback);
            }
 
            function loadData() {
                ajaxGet('doctor/api/query/' + login_data.params.doctorId, function(result) {
                    if (result) {
                        console.info(result);
                        personInfo = result.data
                    }
                    doLoadData();
                    hideloading("loading");
                });
            }
 
            //展示数据
            function doLoadData() {
                document.getElementById('doctorName').innerText = personInfo.doctorName;
                document.getElementById('doctorProfessional').innerText = personInfo.doctorProfessional;
                document.getElementById('medoHospitalName').innerText = personInfo.medoHospitalName;
                document.getElementById('mediDiseaseClassifyName01').innerText = personInfo.mediDiseaseClassifyName01;
                document.getElementById('doctorIntroduce').innerText = personInfo.doctorIntroduce.replace(/[\r\n]/g, "");
                document.getElementById('doctorAdvantage').innerText = personInfo.doctorAdvantage;
            }
 
            //run
            mui.ready(function() {
                onInitReady(function() {
                    initPage();
                    loadData();
                });
            });
        </script>
    </body>
</html>