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
<!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="./zxjzfwsm.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; box-sizing: border-box;">
                    <div class="mui-card" style="height: 580px;">
                        
                            <div class="z_menu_btn_row " style="height: 20px;line-height: 20px;">
                                <div class="z_menu_btn_txt" style="line-height: 20px;">
                                    <span class="bt_fwsm_txt">服务说明</span>
                                </div>
                            </div>
                            <div id = "fwsm"></div>
                            <div class="z_menu_btn_row " style="height: 20px;line-height: 20px;">
                                <div class="z_menu_btn_txt" style="line-height: 20px;">
                                    <span class="bt_fwsm_txt">收益说明</span>
                                </div>
                            </div>
                            <div id = "sysm"></div>
                        </div>
                </div>
                <div style="margin-top: 32px;margin: 0 73px;">
                    <input id="radio" type="radio" onclick="click_select()" style="float: left;margin: 5px 0;"/>
                    <!-- <div id="selector_o" class="z_sel_btn_off" onclick="click_select()"></div> -->
                    <div><span class="wty_txt"  style="margin-left: 7px;">我同意<a href="" style="color: #21D197;">《医生在线接诊服务协议》</a></span></div>
                </div>
                <button class="z_confirm_button" style="height: 50px;" onclick="click_row(menurows[0])">立即开通急速电话问诊</button>
            </div>
        </div>
        
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            //1. data
            var personInfo = {
                            
            };
            var isOption = false;
            var fwsmList = [
                {id:"1", name:"患者提交病情后给医生留言,医生接诊才视为服务开始"},
                {id:"2", name:"电话或视频问诊时长不超过10分钟,通话结束视为服务完成;图文问诊不超过5条问题,或不超过24小时"},
                {id:"3", name:"医生回复消息前患者可无偿取消服务"},
                {id:"4", name:"服务时长结束前,医生可在解决患者问题后发起结束服务请求,患者确认后服务即可提前完成"},
                {id:"5", name:"服务完成后患者有两次留言机会,7天内有效,医生有义务给予文字或其他形式的解答"},
            ];
            var sysmList = [
                {id:"1", name:"患者按医生设置的价格付费,扣除30%服务费后结算医生收益;如患者来自其他医生推荐,需扣除额外10%作为医生推荐奖励"},
                {id:"2", name:"医生任何违约行为都会导致患者的不满和医生个人信誉受损,请尽量履约或与患者友好协商。"},
                {id:"3", name:"患者在符合全额退款的情形下发起退款时,医生无法获得收益"},
            ];
            var menurows = [
                {id: "1", name: "在线接诊", path: "./zxjz",_id: 1041},
            ];
            
            setRouteParams({userId: "1285860235186212865",params: {"doctorId": "1285860235186212865","isFriend":true}});
        
            function initPage() {
                var fwsm = document.getElementById('fwsm');
                var fwsmContent = "";
                for (var i = 0; i < fwsmList.length; i++) {
                    fwsmContent1 =
                        '<div class="z_menu_btn_row " style="height: 34px;line-height: 34px;">'+
                            '<div class="z_menu_btn_img">'+
                                '<div class="dot_txt" style="margin-top: 3px;margin-right: 12px;"></div>'+
                            '</div>'+
                            '<div class="z_menu_btn_txt" style="line-height: 17px;">'+
                                '<span>'+fwsmList[i].name+'</span>'+
                            '</div>'+
                        '</div>';
                    fwsmContent += fwsmContent1
                }
                fwsm.innerHTML = fwsmContent;
                
                var sysm = document.getElementById('sysm');
                var sysmContent = "";
                for (var i = 0; i < sysmList.length; i++) {
                    sysmContent1 =
                        '<div class="z_menu_btn_row " style="height: 34px;line-height: 34px;">'+
                            '<div class="z_menu_btn_img">'+
                                '<div class="dot_txt" style="margin-top: 3px;margin-right: 12px;"></div>'+
                            '</div>'+
                            '<div class="z_menu_btn_txt" style="line-height: 17px;">'+
                                '<span>'+fwsmList[i].name+'</span>'+
                            '</div>'+
                        '</div>';
                    sysmContent += sysmContent1;
                }
                sysm.innerHTML = sysmContent;
                
            }
            
            function loadData() {
                ajaxGet('doctor/api/query/' + login_data.params.doctorId, function(result) {
                    if (result) {
                        console.info(result);
                        personInfo = result.data
                    }
                    doLoadData();
                    hideloading("loading");
                });
            }
            
            function getPushData(){//需要传参就用此方法
                var pam = {
                    _id: 3000,
                    params: {
                        userId: login_data.id,
                    }
                };
                rightBtnPush("route", pam, callback);
            }
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params:{
                        userId: login_data.id
                    }
                };
                click_row2(row.path);
            }
            
            function click_select() {
                if(isOption) {
                    document.getElementById('radio').checked = false;
                    isOption = false;
                }
                else {
                    document.getElementById('radio').checked = true;
                    isOption = true;
                }
                // if(isOption){
                //     document.getElementById("selector_o").classList.replace("z_sel_btn_on","z_sel_btn_off");
                //     isOption = false;
                // }else {
                //     document.getElementById("selector_o").classList.replace("z_sel_btn_off","z_sel_btn_on");
                //     isOption = true;
                // }
            }
            
            //展示数据
            function doLoadData(){
                // document.getElementById('doctorAvatar').src = personInfo.doctorAvatar;
            }
            
            //run
            mui.ready(function() {
                onInitReady(function() {
                    //setRightBtn("rightBtn", {_id: 3000}, callback);//用来判断title右上是否有图标
                    initPage();
                    loadData();
                });
            });
        </script>
    </body>
 
</html>