-
Notifications
You must be signed in to change notification settings - Fork 0
/
essence_chose.html
109 lines (98 loc) · 3.86 KB
/
essence_chose.html
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>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0, user-scalable=no" /><!--不允许用户缩放-->
<meta content="telephone=no" name="format-detection" /><!--忽略页面中的数字识别为电话号码-->
<meta content="yes" name="apple-mobile-web-app-capable" /><!--离线应用的另一个技巧-->
<meta content="black" name="apple-mobile-web-app-status-bar-style" /><!--指定的iphone中safari顶端的状态条的样式-->
<meta name="renderer" content="webkit"><!-- 启用360浏览器的极速模式(webkit) -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- 避免IE使用兼容模式 -->
<meta name="HandheldFriendly" content="true"><!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 -->
<meta name="MobileOptimized" content="320"><!-- 微软的老式浏览器 -->
<meta name="full-screen" content="yes"><!-- UC强制全屏 -->
<meta name="x5-fullscreen" content="true"><!-- QQ强制全屏 -->
<meta name="browsermode" content="application"><!-- UC应用模式 -->
<meta name="x5-page-mode" content="app"><!-- QQ应用模式 -->
<meta name="msapplication-tap-highlight" content="no"><!-- windows phone 点击无高光 -->
<link href="style/mobiscroll.custom-2.17.0.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="style/common.css"/>
<link rel="stylesheet" type="text/css" href="style/essence.css"/>
<script type="text/javascript" charset="utf-8" src="js/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/layer.js"></script>
<script src="js/mobiscroll.custom-2.17.0.min.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8" src="js/common.js"></script>
<title>群精华</title>
</head>
<body style="padding-top:44px">
<header class="commom_header">
<a href="javascript:history.go(-1)"><i class="fillfont icon-arrow_left"></i></a>
<h1>获取群精华</h1>
<a href="index.html"><i class="fillfont icon-home"></i></a>
</header>
<div class="essence_choset">
<h2>设置需要获取群精华的时间段</h2>
<div class="set_time">
<span>选择开始时间</span>
<input type="text" id="beginTime" readonly>
</div>
<div class="set_time" style="border-bottom:none">
<span>选择结束时间</span>
<input type="text" id="endTime" readonly>
</div>
<a href="#" class="btn_block">点击获取</a>
</div>
</body>
<script type="text/javascript">
$(function(){
var beginTime='';
var endTime='';
$("#beginTime").mobiscroll().datetime({
preset: 'datetime',
theme:'auto',
lang: "zh",
cancelText: '取消',
display:'bottom',
dateFormat: 'yyyy-mm-dd',
defaultValue:new Date(),
maxDate: new Date(),
headerText: function (valueText) { //自定义弹出框头部格式
return valueText;
},
onSelect:function(res){
beginTime=res;
if(beginTime > endTime && endTime!= ''){
layer.msg('开始时间不能大于结束时间',{'icon':7})
$("#beginTime").val('')
}
console.log(res)
},
onClose:function(res){
}
});
$("#endTime").mobiscroll().datetime({
preset: 'datetime',
theme:'auto',
lang: "zh",
cancelText: '取消',
display:'bottom',
dateFormat: 'yyyy-mm-dd',
defaultValue:new Date(),
maxDate: new Date(),
headerText: function (valueText) { //自定义弹出框头部格式
return valueText;
},
onSelect:function(res){
endTime=res;
if(beginTime > endTime && beginTime!= ''){
layer.msg('结束时间不能小于开始时间',{'icon':7})
$("#endTime").val('')
}
console.log(res)
},
onClose:function(res){
}
});
});
</script>
</html>