You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.3 KiB
86 lines
2.3 KiB
3 months ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="renderer" content="webkit">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
<meta name="format-detection" content="telephone=no">
|
||
|
|
||
|
<style>
|
||
|
*{
|
||
|
margin-top:0;
|
||
|
margin-left: 2px;
|
||
|
}
|
||
|
input.demo-input {
|
||
|
display: none;
|
||
|
width: 147px;
|
||
|
margin-bottom: 2px;
|
||
|
}
|
||
|
input:focus{
|
||
|
outline: none;
|
||
|
}
|
||
|
.layui-laydate{
|
||
|
border: 1px solid #666;
|
||
|
box-shadow: 3px 5px 14px rgba(0, 0, 0, .42);
|
||
|
background-color: #fff;
|
||
|
color: #666
|
||
|
}
|
||
|
|
||
|
|
||
|
</style>
|
||
|
</head>
|
||
|
<body onload="load()">
|
||
|
<input type="text" class="demo-input" placeholder="请选择日期" id="datetimeInput">
|
||
|
<input type="text" class="demo-input" placeholder="请选择日期" id="Frmtp">
|
||
|
|
||
|
|
||
|
<script src="../laydate/laydate.js"></script> <!-- 改成你的路径 -->
|
||
|
<script>
|
||
|
|
||
|
|
||
|
|
||
|
function load(){
|
||
|
var format = GetQueryString("format");
|
||
|
var type = GetQueryString("type");
|
||
|
var Mark = GetQueryString("mark");
|
||
|
Mark = JSON.parse(Mark);
|
||
|
|
||
|
console.log("csend"+Mark);
|
||
|
|
||
|
lay('#version').html('-v'+ laydate.v);
|
||
|
|
||
|
//执行一个laydate实例
|
||
|
laydate.render({
|
||
|
elem: '#datetimeInput' //指定元素
|
||
|
,type: type
|
||
|
,format: format
|
||
|
,value: new Date()
|
||
|
,show: true
|
||
|
,mark: Mark
|
||
|
,btns: ['now', 'confirm']
|
||
|
,done: function(value, date, endDate){
|
||
|
|
||
|
parent.layer.closeAll(); //再执行关闭
|
||
|
parent.emrView.InnerView.SetActiveItemText(value)
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}
|
||
|
function GetQueryString(name){
|
||
|
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
|
||
|
var url = decodeURI(window.location.search) ;
|
||
|
var r = url.substr(1).match(reg);
|
||
|
if(r!=null){
|
||
|
return unescape(r[2]);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|