<!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="./hzlb.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 class="z_card_head" onclick="click_row_direct(menurows[0])">
|
<span class="z_hzfb_content">查看患者数量分布</span>
|
</div>
|
|
<div class="z_card_body">
|
<div class="mui-table-view">
|
<div id="hzName"></div>
|
</div>
|
|
</div>
|
</div>
|
</div>
|
|
|
|
<script type="text/javascript">
|
var info=[
|
{id: "1", name: "陈维1", img: "../../img/head1.jpg",path:"./hzgrxqxx",_id: 2024},
|
{id: "2", name: "陈维2", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "3", name: "陈维3", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "4", name: "陈维4", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "5", name: "陈维5", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "6", name: "陈维6", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "7", name: "陈维7", img: "../../img/head1.jpg",path:"",_id: 2024},
|
{id: "8", name: "陈维8", img: "../../img/head1.jpg",path:"",_id: 2024},
|
]
|
|
var infoOBJ = {};
|
|
var menurows = [
|
{id: "1", name: "患者信息", path: "./hzqzfb",_id: 1040},
|
{id: "2", name: "患者群组分布", path: "./hzqzfb"},
|
];
|
|
// window.onload = function() {
|
// muiInfo();
|
// loadinfo();
|
// /* getRem(720,100, function() {
|
// }); */
|
// }
|
|
// 停止loading
|
var int=self.setInterval("infosetuser()",100);
|
function infosetuser() {
|
if (login_data.userId != "123456") {
|
alert(login_data.userId);
|
window.clearInterval(int);
|
muiInfo();
|
loadinfo();
|
}
|
}
|
|
function muiInfo() {
|
mui.init({
|
swipeBack: true //启用右滑关闭功能
|
});
|
}
|
|
function loadinfo() {
|
infoOBJ = {};
|
info.map(e=> {
|
infoOBJ[e.id] = e;
|
})
|
|
var a1 = document.getElementById('hzName');
|
var aa = ""
|
for(var i=0; i<info.length; i++) {
|
var aa1 = '<div class="z_list_view" onclick="click_row('+"'" + info[i].id + "'"+')">'+
|
'<div class="z_hzlb_pic">'+
|
'<img src="'+info[i].img+ '" />'+
|
'</div>'+
|
'<div class="z_hzlb_title">'+
|
'<span class="z_hzlb_title_content">'+info[i].name+ '</span>'+
|
'</div>'+
|
'</div>';
|
aa +=aa1;
|
}
|
a1.innerHTML = aa;
|
|
|
clickEventList();
|
hideloading("loading");
|
}
|
|
function click_row(idStr) {
|
var row = infoOBJ[idStr];
|
var pam = {
|
_id:row._id,
|
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);
|
}
|
|
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;
|
}
|
});
|
|
/* mui('body').on('tap', '.z_menu_btn_row', function() {
|
var a = this, parent;
|
//根据点击按钮,反推当前是哪个actionsheet
|
for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
|
if (parent.classList.contains('mui-popover-action')) {
|
break;
|
}
|
}
|
|
//打开关于页面
|
mui.openWindow({
|
url: a.id + '.html'
|
});
|
|
}); */
|
|
|
|
|
}
|
</script>
|
</body>
|
|
</html>
|