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
<!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">
        <link rel="stylesheet" href="../../css/mui.picker.min.css">
        <link rel="stylesheet" href="../../css/mui.poppicker.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="./newsflb.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 id="" class="add_btn" onclick="click_row(menurows[0])">引用模板</div>
                
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_btn_row " style="height: 49px;line-height: 49px;padding: 0;padding-left: 16px;" >
                                <span class="z_menu_btn_txt_1">此随访量表适用的疾病类型</span>
                                <a href="#option" >
                                <div class="down_frame">
                                <span id="info" class="input_text"></span>
                                <div class="z_menu_btn_icon" style="line-height: 24px;margin-right: 12px;">
                                    <i class="iconfont iconxiangxia" style="font-size: 20px;"></i>
                                </div>
                                </div>
                                </a>
                        </div>
                    </div>
                </div>
                <div style="margin: 16px; box-sizing: border-box;">
                    <div class="mui-card">
                        <div class="z_menu_btn_row " style="height: 306px;line-height: 306px;padding: 0;" >
                            <div class="z_menu_btn_row " style="height: 48px;line-height: 48px;border-bottom: 1px solid #F6F6F6;" >
                                    <span class="z_menu_btn_txt_1">设置填写频率:</span><div style="float: right;"><span>每</span><input type="text" maxlength="1" style="width: 30px;height: 30px;border-radius: 6px;border: 1px solid #21D197;margin:0 4px;padding: 0 9px;"/><span>天</span></div>
                            </div>
                            <div class="z_menu_btn_row " style="height: 48px;line-height: 48px;" >
                                <span>填写内容:</span>
                            </div>
                            <div class="z_menu_btn_row" style="height: 20px;line-height: 20px;" >
                                <span>1、名称:</span><input type="text" class="mc_txt" />
                                
                            </div>
                            <div style="float: right;margin-right: 16px;"><img src="../../img/编组%204备份%202.png" style="float: right;"/></div>
                            <div class="sel_btn_row">
                            <div class="z_menu_btn_row" style="height: 16px;line-height: 16px;" >
                                <span style="font-size: 13px;">填写类型:</span>
                            </div>
                            
                            
                            
                            
                            <div class="z_menu_btn_row sel_btn_row_side" style="height: 24px;line-height: 24px;" >
                            <!-- <div class="sel_btn"><img src="../../img/ic_radio_normal.png" /></div>
                            <span class="sel_btn_txt">单选</span> -->
                            <input type="radio" name="txlx" value="单选" />
                            <span class="sel_btn_txt">单选</span>
                            </div>
                            <div class="z_menu_btn_row sel_btn_row_side" style="height: 24px;line-height: 24px;" >
                            <!-- <div class="sel_btn"><img src="../../img/ic_radio_normal.png" /></div>
                            <span class="sel_btn_txt">多选</span> -->
                            <input type="radio" name="txlx" value="多选" />
                            <span class="sel_btn_txt">多选</span>
                            </div>
                            <div class="z_menu_btn_row sel_btn_row_side" style="height: 24px;line-height: 24px;" >
                            <!-- <div class="sel_btn"><img src="../../img/ic_radio_normal.png" /></div>
                            <span class="sel_btn_txt">描述</span> -->
                            <input type="radio" name="txlx" value="描述" />
                            <span class="sel_btn_txt">描述</span>
                            </div>
                            </div>
                            <div class="option_area">
                            <div class="z_menu_btn_row " style="height: 16px;line-height: 16px;" >
                                <span style="font-size: 13px;">选项:</span>
                                <textarea class="option_textarea" placeholder="选项之间换行输入即可"></textarea>
                            </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: 49px;line-height: 49px;padding: 0;padding-left: 16px;" >
                                <span class="z_menu_btn_txt_1">填写说明:</span>
                                <input type="text" class="txsm_txt" placeholder="提示患者规范填写"/>
                        </div>
                    </div>
                </div>
                <div style="width: 100%;">
                    <button type="button" class="confirm_button">保存</button>
                </div>
            </div>
        </div>
        
        <div id="option" class="mui-popover mui-popover-action mui-popover-bottom">
            <ul class="mui-table-view">
                <li class="mui-table-view-cell">
                    <a href="#">冠心病</a>
                </li>
                <li class="mui-table-view-cell">
                    <a href="#">心脏病</a>
                </li>
                <li class="mui-table-view-cell">
                    <a href="#">高血压</a>
                </li>
            </ul>
            <ul class="mui-table-view">
                <li class="mui-table-view-cell">
                    <a href="#option"><b>取消</b></a>
                </li>
            </ul>
        </div>
        
        
        <script type="text/javascript" src="../../js/mui.picker.min.js"></script>
        <script type="text/javascript" src="../../js/mui.poppicker.js"></script>
        <script type="text/javascript">
            mui.init({
                swipeBack: true //启用右滑关闭功能
            });
            
            var bt_txt ="血压记录(晨起)";
            var zxjz_num = 11;
            var jsjz_num = 22;
            var srys_num = 33;
            var zxgh_num = 44;
            
            
            var menurows = [
                {id: "1", name: "随访量表库", path: "./myzs",_id: 2027},
                {id: "2", name: "详细信息", path: "./ysxx"},
                {id: "3", name: "门诊排班", path: "./mzpb"},
                {id: "4", name: "共享的随访量表", path: "./sflb"},
            ];
            
            //function
            
            setRouteParams({userId: "1352189979509854209",params: {}});
 
            function initPage() {
                
                mui('body').on('shown', '.mui-popover', function(e) {
                    //console.log('shown', e.detail.id);//detail为当前popover元素
                });
                mui('body').on('hidden', '.mui-popover', function(e) {
                    //console.log('hidden', e.detail.id);//detail为当前popover元素
                });
                var info = document.getElementById("info");
                mui('body').on('tap', '.mui-popover-action li>a', function() {
                    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(a.innerText!="取消"){
                    info.innerHTML =a.innerHTML;
                    }
                });
            }
            
            function loadData(){
                hideloading('loading');
            }
            
            function doLoadData(){
                
            }
            
            function click_row(row) {
                var pam = {
                    _id: row._id,
                    params: {
                        userId: login_data.id
                    }
                };
                app_click("route", pam, callback);
            }
        
            //3. run
            mui.ready(function() {
                onInitReady(function() {
                    setRightBtn("rightBtn", {_id: 3001}, callback);//用来判断title右上是否有图标
                    initPage();
                    loadData();
                });
            });
        </script>
    </body>
</html>