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
<!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="./ystdhome.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 style="margin: 16px 16px 0px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_group">
                        <div class="z_my_head" style="border-bottom: 1px solid #FAFAFA;">
                            <!-- 医生认证信息 -->
                            <div class="z_img_head1">
                                <img id="headPortrait"/>
                            </div>
                            <div class="z_card" style="margin-top: 8px;">
                                <div style="margin-top: 8px; height: 16px; line-height: 16px;">
                                    <span id="team_name" class="z_card_team_txt"></span>
                                </div>
                            </div>
                        </div>
                        </div>
                    </div>
                </div>
                <div style="margin: 16px 16px 16px 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_group">
                            <div class="z_menu_btn_row " style="height: 78px; line-height: 78px;">
                            <div class="z_menu_btn_row " style="height: 18px; line-height: 18px;padding: 0;">
                                <div class="z_menu_btn_img">
                                </div>
                                <div class="bt_profile_txt" style="margin-top: 16px;">
                                    <span>团队简介</span>
                                </div>
                                <div class="profile_txt_content" style="margin-top: 10px;">
                                    <span id="profile_txt_content"></span>
                                </div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="margin: 16px 16px 16px 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_group">
                            <div class="z_menu_btn_row " style="height: 277px; line-height: 277px;padding: 0;">
                            <div class="z_menu_btn_row " style="height: 18px; line-height: 18px;padding: 0;">
                                <div class="z_menu_btn_img">
                                </div>
                                <div class="bt_profile_txt" style="margin-top: 16px;padding: 0 16px;">
                                    <span>团队成员:</span>
                                </div>
                                
                                <div class="z_menu_card">
                                    <div id="team_side"></div>
                                    
                            <!--         <div class="z_my_head_list" onclick="click_row(menurows[8])">
                                        <div class="z_img_head_list">
                                            <img src="../../img/head1.jpg" />
                                        </div>
                                        <div class="z_my_fws">
                                            <div class="z_my_fws_val">
                                            </div>
                                        </div>
                                        <div class="username_txt"><span>崔雪真</span></div>
                                        </div> -->
                                        
                                        <!-- <div class="z_my_head_list" onclick="click_row_direct(menurows[1])">
                                            <div class="z_img_head_list">
                                                <img src="../../img/more.png" />
                                            </div>
                                            </div> -->
                                </div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="width: 100%;">
                <button class="confirm_button" style="margin: 48px 25px 16px;" onclick="click_row_direct(menurows[0])">申请加入</button>
                </div>
            </div>
        </div>
        
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            
            var headPortrait = "../../img/head1.jpg";
            var team_name = "华东心内科医生团队";
            var profile_txt_content = "华东心内科医生团队";
            
            var info = [
                {id: "1",userName: "崔雪真",path: "./"},
                {id: "2",userName: "崔雪真",path: "./"},
                {id: "3",userName: "崔雪真",path: "./"},
                {id: "4",userName: "崔雪真",path: "./"},
                {id: "5",userName: "崔雪真",path: "./"},
                {id: "6",userName: "崔雪真",path: "./"},
                {id: "7",userName: "崔雪真",path: "./"},
                {id: "8",userName: "崔雪真",path: "./"},
                {id: "9",userName: "崔雪真",path: "./"},
                {id: "10",userName: "崔雪真",path: "./"},
                {id: "11",userName: "崔雪真",path: "./"},
            ];
            var infoOBJ = {};
        
            var menurows = [
                {id: "1", name: "申请加入医生团队", path: "./jrtdsq",_id: 1031},
                {id: "2", name: "团队全部成员", path: "./",_id: 2022},
            ];
            
            var my_profit = 123.45;
            var myzs_num = 11;
            var xtxx_num = 110;
            
            //function
            
            setRouteParams({userId: "1352189979509854209",params: {}});
            
            function initPage() {
                infoOBJ = {};
                info.map(e=> {
                    infoOBJ[e.id] = e;
                })
                
                document.getElementById('headPortrait').src = headPortrait;
                document.getElementById('team_name').innerText = team_name;
                document.getElementById('profile_txt_content').innerText = profile_txt_content;
                
                
                var team_list = document.getElementById('team_side');
                var team_list_data = "";
                for(var i = 0; i <= info.length; i++) {
                    if(i < info.length) {
                    var team_list1 = 
                    '<div class="z_my_head_list" onclick="click_row('+"'" + info[i].id + "'"+')">'+
                        '<div class="z_img_head_list">'+
                            '<img src="../../img/head1.jpg" />'+
                        '</div>'+
                        '<div class="z_my_fws">'+
                            '<div class="z_my_fws_val">'+
                            '</div>'+
                        '</div>'+
                        '<div class="username_txt"><span>'+info[i].userName+'</span></div>'+
                        '</div>'
                    
                    team_list_data +=team_list1;
                    } else {
                        var team_list_last =
                        '<div class="z_my_head_list" onclick="click_row_direct(menurows[1])">'+
                            '<div class="z_img_head_list">'+
                                '<img src="../../img/more.png" />'+
                            '</div>'+
                        '</div>'
                            
                    team_list_data +=team_list_last;
                    }
                }
                team_list.innerHTML = team_list_data;
            }
            
            function loadData() {
                doLoadData();
                hideloading('loading');
            }
            
            function doLoadData() {
                
            }
            
            function click_row(idStr) {
                var row = infoOBJ[idStr];
                var pam = {
                    _id: 1015,
                    params:{
                        userId: login_data.userId
                    }
                };
                app_click("route", pam, callback);
            }
            
            function click_row_direct(row) {
                var pam = {
                    _id: row._id,
                    params:{
                        userId: login_data.userId
                    }
                };
                app_click("route", pam, callback);
            }
            
            //3. run
            mui.ready(function() {
                onInitReady(function() {
                    initPage();
                    loadData();
                });
            });
        </script>
    </body>
</html>