manual.html 3.4 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="css/tanchu.css" />


</script>
<title>手动血压记录</title>
<style type="text/css">
	.perbut{
		margin-top: 0;
		position: absolute;
		bottom: 0;
	}
</style>
</head>

<body>
<div style="background-color:#fff;">
<div class="perheader center">
	<div class="left perback"><a href="#" onClick="javascript:history.back(-1);"><img src="images/care_03.jpg"/></a></div>
    <div class="bloodtext">手动血压记录</div>
</div>
</div>
<div class="perpart1">
<div id="datePlugin"></div>
	<div class="perp"><span>测量时间</span><span class="right"><input id="endTime"  placeholder="2018-01-20 18:03" /><img src="images/pergo_03.jpg"/></span></div>
    <div class="perp"><span>高压(收缩压)</span><span class="right"><input type="text" class="select-value8" placeholder="mmHg" /><img src="images/pergo_03.jpg"/></span></div>
    <div class="perp"><span>低压(舒张压)</span><span class="right"><input type="text" class="select-value8" placeholder="mmHg" /><img src="images/pergo_03.jpg"/></span></div>
    <div class="perp"><span>心率</span><span class="right"><input id="fname" type="text" onblur="upperCase()" placeholder="次/分钟" /><img src="images/pergo_03.jpg"/></span></div>
</div>
<div><button type="button" class="perbut"/>保存</div>

    <div class="mPicker hide"><div class="mPicker-mask hide"></div></div>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script src="js/index.js"></script>
    <script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script  src="js/health.js"></script>
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
    $(document).ready(function () {
        healthData()
    })
    function healthData() {
        $.ajax({
            type:"POST",
            url: baseUrl+"user/index/healthData",
            dataType:"json",
            data:{
                DeviceType:"1",
                token:"1",
            },
            success:function (res) {
                var data = res.data;
                if (data.puser == null){
                    $('.select-value8').val(`0mmHg`)
                } else if (data.suger == null){
                    $('.select-value8').val(`0mmHg`)
                }
                console.log(res)
            }
        })
    }

    $(function(){
        $('#beginTime').date();
        $('#endTime').date({theme:"datetime"});
    });

    function upperCase()
    {
        var x=document.getElementById("fname").value;
        if(x.indexOf("次/分钟") == -1){
            document.getElementById("fname").value=x+"次/分钟";
        }else{
            return;
        }
    }
</script>
</body>