<!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="./sflbbj.css" rel="stylesheet">
|
|
<style type="text/css">
|
input::-webkit-input-placeholder {
|
color: #E0E0E0;
|
-webkit-text-fill-color: #E0E0E0;
|
}
|
|
input {
|
color: #363F4D;
|
-webkit-text-fill-color: #363F4D;
|
}
|
|
.mui-dtpicker,
|
.mui-poppicker {
|
background-color: #FFFFFF;
|
border-radius: 24px 24px 0 0;
|
}
|
|
.mui-dtpicker-header {
|
height: 54px;
|
border-bottom: 1px solid #F6F6F6;
|
}
|
|
.mui-dtpicker-header #btn-cancel {
|
margin-left: 156px !important;
|
}
|
|
.mui-dtpicker-header button {
|
font-size: 17px;
|
padding: 11px 10px;
|
}
|
|
.mui-btn-blue,
|
.mui-btn-primary,
|
input[type=submit] {
|
background-color: #FFFFFF;
|
border: 0;
|
color: #21D197;
|
}
|
|
.mui-btn {
|
border: 0;
|
}
|
|
.mui-dtpicker-title h5 {
|
background-color: #FFFFFF;
|
border: 0;
|
margin-top: 30px;
|
|
font-size: 14px;
|
font-family: PingFangSC-Regular, PingFang SC;
|
font-weight: 400;
|
color: #838B98;
|
-webkit-text-fill-color: #838B98;
|
}
|
|
.mui-picker {
|
background-color: #FFFFFF;
|
}
|
|
.mui-pciker-rule-ft {
|
width: 104px;
|
margin-left: 10px;
|
}
|
|
.mui-dtpicker-body {
|
height: 150px;
|
}
|
</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: 24px 16px; box-sizing: border-box;">
|
<div class="mui-card">
|
<div class="z_menu_btn_row " style="height: 68px; line-height: 68px;padding: 0;">
|
<div style="width: 32px;height: 32px;float: left;line-height: 32px;margin: 16px 16px 16px 24px;">
|
<img src="../../img/Icon_Title.png" />
|
</div>
|
<span id="bt_txt"></span>
|
</div>
|
|
<div class="z_menu_btn_row " style="height: 68px;line-height: 0;margin-top: 24px;">
|
<span class="z_menu_btn_txt_1">高压(收缩压): mmHg</span>
|
<input type="text" class="input_text3" placeholder="mmHg" style="width: 279px;height: 48px;margin: 4px 16px 0;padding: 11px 0;padding-left: 16px;border-radius: 8px;border: 1px solid #F0F0F0;" />
|
</div>
|
<div class="z_menu_btn_row " style="height: 68px;line-height: 0;margin-top: 24px;">
|
<span class="z_menu_btn_txt_1">低压(收缩压): mmHg</span>
|
<input type="text" class="input_text3" placeholder="mmHg" style="width: 279px;height: 48px;margin: 4px 16px 0;padding: 11px 0;padding-left: 16px;border-radius: 8px;border: 1px solid #F0F0F0;" />
|
</div>
|
<div class="z_menu_btn_row " style="height: 68px;line-height: 0;margin-top: 24px;">
|
<span class="z_menu_btn_txt_1">血压测量时间</span>
|
<div id="dateSelect" class="input_text" style="width: 279px;height: 48px;margin: 4px 16px 0;padding: 11px 0;padding-left: 16px;border-radius: 8px;border: 1px solid #F0F0F0;">
|
<div id="result" style="float: left;">时间选择</div>
|
<div class="z_menu_btn_icon" style="margin-right: 13px;line-height: 28px;">
|
<img src="../../img/ic_time.png" />
|
</div>
|
</div>
|
</div>
|
<div class="z_menu_btn_row " style="height: 68px;line-height: 0;margin-top: 24px;">
|
<span class="z_menu_btn_txt_1">是否服用降压药</span>
|
<div class="sffy_title" onclick="f()">
|
<span id="select_txt" class="sffy_title_text">请选择</span>
|
<div class="arrow_down" onclick="">
|
<img src="../../img/btn/general/arrow/down.png" />
|
</div>
|
</div>
|
<div class="sffy_dropdown">
|
<div class="sffy_dropdown_style" style="margin-top: 11px;" onclick="click_option(0)"><span class="sffy_dropdown_text">是</span></div>
|
<div class="sffy_dropdown_style" onclick="click_option(1)"><span class="sffy_dropdown_text">否</span></div>
|
</div>
|
</div>
|
<div class="z_menu_btn_row " style="height: 48px;line-height: 48px;margin: 24px 0;">
|
<div class="z_menu_btn_txt" style="width: 279px;height: 48px;margin: 0 16px;border: 1px solid #F0F0F0;border-radius: 8px;">
|
<span style="line-height: 48px;margin-left: 16px;">添加必填项</span>
|
<div class="z_menu_btn_icon" style="margin-right: 12px;line-height: 50px;">
|
<img src="../../img/Fill(1).png" />
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</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 //启用右滑关闭功能
|
});
|
//1. data
|
var personInfo = {
|
|
};
|
var bt_txt = "血压记录(晨起)";
|
|
var menurows = [{
|
id: "1",
|
name: "动态",
|
path: "./myzs"
|
}, {
|
id: "2",
|
name: "详细信息",
|
path: "./ysxx"
|
}, {
|
id: "3",
|
name: "门诊排班",
|
path: "./mzpb"
|
}, {
|
id: "4",
|
name: "共享的随访量表",
|
path: "./sflb"
|
}];
|
|
setRouteParams({
|
userId: "1285860235186212865",
|
params: {
|
"doctorId": "1285860235186212865",
|
"isFriend": true
|
}
|
});
|
|
function initPage() {
|
document.getElementById("bt_txt").innerText = bt_txt;
|
document.getElementById("dateSelect").addEventListener('tap', function() {
|
var dtpicker = new mui.DtPicker({
|
type: "day", //设置日历初始视图模式
|
labels: [' ', ' ', ' ', '时', '分'],
|
customData: {
|
"d": [{
|
value: "am",
|
text: "上午"
|
}, {
|
value: "pm",
|
text: "下午"
|
}, ],
|
"h": [{
|
value: "01",
|
text: "01"
|
}, {
|
value: "02",
|
text: "02"
|
}, {
|
value: "03",
|
text: "03"
|
}, {
|
value: "04",
|
text: "04"
|
}, {
|
value: "05",
|
text: "05"
|
}, {
|
value: "06",
|
text: "06"
|
}, {
|
value: "07",
|
text: "07"
|
}, {
|
value: "08",
|
text: "08"
|
}, {
|
value: "09",
|
text: "09"
|
}, {
|
value: "10",
|
text: "10"
|
}, {
|
value: "11",
|
text: "11"
|
}, {
|
value: "12",
|
text: "12"
|
}, ],
|
}
|
// value: "00-00",
|
|
})
|
dtpicker.show(function(rs) {
|
document.getElementById("dateSelect").classList.replace("input_text", "input_text1");
|
result.innerText = rs.text;
|
});
|
});
|
|
if (result.innerText != "时间选择") {
|
|
document.getElementById("dateSelect").classList.replace("input_text", "input_text1");
|
}
|
|
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;
|
}
|
});
|
|
hideloading("loading");
|
}
|
|
function loadData() {
|
ajaxGet('doctor/api/query/' + login_data.params.doctorId, function(result) {
|
if (result) {
|
console.info(result);
|
personInfo = result.data
|
}
|
doLoadData();
|
hideloading("loading");
|
});
|
}
|
|
function click_row(row) {
|
var pam = {
|
_id: row._id,
|
params: {
|
userId: login_data.userId
|
}
|
};
|
app_click("route",pam,callback);
|
}
|
|
function f() {
|
document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down');
|
if (document.getElementsByClassName('sffy_dropdown')[0].classList.contains('sffy_down')) {
|
setTimeout(function() {
|
document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'overlay';
|
document.getElementsByClassName('sffy_dropdown')[0].style.border = '1px solid #F2F2F2';
|
}, 100)
|
} else {
|
document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'hidden';
|
document.getElementsByClassName('sffy_dropdown')[0].style.border = '0px solid #F2F2F2';
|
}
|
}
|
|
function click_option(e) {
|
if (e == 0) {
|
document.getElementById('select_txt').innerText = "是";
|
document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'hidden';
|
document.getElementsByClassName('sffy_dropdown')[0].style.border = '0px solid #F2F2F2';
|
document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down', false);
|
} else {
|
document.getElementById('select_txt').innerText = "否";
|
document.getElementsByClassName('sffy_dropdown')[0].style.overflow = 'hidden';
|
document.getElementsByClassName('sffy_dropdown')[0].style.border = '0px solid #F2F2F2';
|
document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down', false);
|
}
|
}
|
|
//展示数据
|
function doLoadData() {
|
// document.getElementById('doctorAvatar').src = personInfo.doctorAvatar;
|
}
|
|
//run
|
mui.ready(function() {
|
onInitReady(function() {
|
initPage();
|
loadData();
|
});
|
});
|
</script>
|
</body>
|
</html>
|