<!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="./lastAllergy.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="min-height: 550px;">
|
<div style="margin: 16px; box-sizing: border-box;">
|
<div class="mui-card">
|
<div class="z_menu_btn_row" onclick="click_row(menurows[0])" style="height: 56px;line-height: 56px;">
|
<div class="left_area">
|
请输入或选择疾病
|
</div>
|
<div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
|
<img src="../../img/ic_arrow_right1.png" />
|
</div>
|
<div class="right_area">高血压</div>
|
</div>
|
</div>
|
</div>
|
|
<div style="margin: 16px; box-sizing: border-box;">
|
<div class="mui-card">
|
<div class="z_menu_btn_row" onclick="f()"
|
style="height: 56px;line-height: 56px;border: 0;" id="down_frame_locate">
|
<div class="left_area">
|
过敏类型
|
</div>
|
<div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
|
<img src="../../img/ic_arrow_down.png" />
|
</div>
|
|
<div class="right_area" id="gmlx"></div>
|
</div>
|
<div id="cover_background" style="width: 100vw;height: 100vh;
|
display: none;position: fixed;z-index: 1;top: 0;left: 0;" onclick="click_hidden()">
|
<div class="sffy_dropdown" style="width: 343px;left: 16px;">
|
<div class="sffy_dropdown_top" onclick="click_option1(0)">未知</div>
|
<div class="sffy_dropdown_bottom" onclick="click_option1(1)">药物</div>
|
<div class="sffy_dropdown_bottom" onclick="click_option1(2)">食物/接触物</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: 56px;line-height: 56px;" onclick="click_row(menurows[1])">
|
<div class="left_area">
|
过敏症状
|
</div>
|
<div class="right_area" style="margin: 21px 0;margin-left: 16px;line-height: 0;">
|
<img src="../../img/ic_arrow_down.png" />
|
</div>
|
<div class="right_area">2020</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div style="width: 100%;">
|
<button class="save_button" onclick="click_row(menurows[2])">保存</button>
|
</div>
|
</div>
|
</div>
|
|
<script type="text/javascript">
|
mui.init({
|
swipeBack: true //启用右滑关闭功能
|
});
|
|
var doctorInfoOBJ = {};
|
var gmlx = "未知";
|
var menurows = [{
|
id: "1",
|
name: "填写过敏源",
|
path: "./fillLastAllergyOrigin",
|
_id: 1016
|
},
|
{
|
id: "2",
|
name: "填写过敏症状",
|
path: "./fillLastAllergySymptom",
|
_id: 1017
|
},
|
{
|
id: "3",
|
name: "健康档案",
|
path: "./jkda",
|
_id: 1043
|
},
|
{
|
id: "4",
|
name: "共享的随访量表",
|
path: "./sflb"
|
},
|
];
|
|
setRouteParams({userId: "1352141846545367042",params: {}});
|
|
function initPage() {
|
document.getElementById('gmlx').innerText = gmlx;
|
|
}
|
|
function click_option1(e) {
|
switch (e) {
|
case 0:
|
document.getElementById('gmlx').innerText = "未知";
|
break;
|
case 1:
|
document.getElementById('gmlx').innerText = "药物";
|
break;
|
default:
|
document.getElementById('gmlx').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 f() {
|
var domObj = document.getElementById('down_frame_locate');
|
var aa = domObj.getBoundingClientRect().top;
|
document.getElementsByClassName('sffy_dropdown')[0].style.top = aa + 55 + "px";
|
|
document.getElementById('cover_background').style.display = "flex";
|
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';
|
document.getElementById('cover_background').style.display = "none";
|
}
|
}
|
|
function click_hidden() {
|
document.getElementsByClassName('sffy_dropdown')[0].classList.toggle('sffy_down', false);
|
document.getElementById('cover_background').style.display = "none";
|
}
|
|
function click_row(row) {
|
var pam = {
|
_id: row._id,
|
params: {
|
userId: login_data.userId
|
}
|
};
|
app_click('route',pam,callback);
|
}
|
|
function loadData() {
|
doLoadData();
|
hideloading('loading');
|
}
|
|
function doLoadData() {
|
|
}
|
//3. run
|
mui.ready(function() {
|
onInitReady(function() {
|
initPage();
|
loadData();
|
});
|
})
|
</script>
|
</body>
|
</html>
|