blood.html
4.3 KB
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
<!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 rel="stylesheet" type="text/css" href="css/blood.css" />
<link rel="stylesheet" type="text/css" href="css/jquery-labelauty.css">
<link rel="stylesheet" type="text/css" href="css/common.css">
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<title>记血糖</title>
</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 center">
<div style="position: relative;color: #fff;top: 2.5rem;">mmol/L</div>
<div id="background" style="background-color:#d8b25f;color:#FFF;padding:10px; border-radius:50%; display:inline-block;margin-top:20px;">
<input type="text" step="0.1" name="test" class="knob" data-width="270" data-fgColor="#fff" data-skin="tron" data-thickness=".1" value="2.5" >
</div>
<form action="#">
<div class="blli">
<ul class="dowebok">
<li><input type="radio" name="radio" data-id="1" class="time_type" data-labelauty="空腹"></li>
<li><input type="radio" name="radio" data-id="2" class="time_type" data-labelauty="早餐后"></li>
<li><input type="radio" name="radio" data-id="3" class="time_type" data-labelauty="午餐前"></li>
<li><input type="radio" name="radio" data-id="4" class="time_type" data-labelauty="午餐后"></li>
<li><input type="radio" name="radio" data-id="5" class="time_type" data-labelauty="晚餐前"></li>
<li><input type="radio" name="radio" data-id="6" class="time_type" data-labelauty="晚餐后"></li>
<li><input type="radio" name="radio" data-id="7" class="time_type" data-labelauty="睡前"></li>
<li><input type="radio" name="radio" data-id="8" class="time_type" data-labelauty="凌晨"></li>
</ul>
</div>
</div>
<div class="bltime">
<input id="endTime" class="kbtn" style="font-size:0.22rem;" value="2018-01-20 18:03" /><span class="right">></span></div>
<div ><button type="button" class="blbut"/>保存</div>
</form>
<div id="datePlugin"></div>
<script type="text/javascript" src="js/common.js"/>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-labelauty.js"></script>
<script src="js/jquery.knob.js"></script>
<script type="text/javascript" src="js/date.js" ></script>
<script type="text/javascript" src="js/iscroll.js" ></script>
<script type="text/javascript">
$(function(){
$('#endTime').date({theme:"datetime"});
});
$(function() {
$(".knob").knob();
});
$(function(){
$(':input').labelauty();
});
var time_type;
var type_sugar;
var endTime;
$(document).ready(function () {
$('.time_type').click(function () {
time_type = $(this).attr('data-id')
})
$('.blbut').click(function () {
type_sugar = $('.knob').val()
endTime = $('#endTime').val()
var time3 = Date.parse(endTime);
console.log(time3)
time3 = time3/1000;
$.ajax({
type:"POST",
url: baseUrl+"user/index/setBoolData",
dataType:"json",
headers:{
"DeviceType":getDevice(),
"token":"1",
"Content-Type":"text/plain;charset=UTF-8"
},
data:{
rid:0,
time_type:time_type,
time:time3,
type:1,
data:type_sugar,
},
success:function (res) {
console.log(res.data)
}
})
})
})
</script>
</body>
</html>