|
@@ -231,7 +231,7 @@
|
|
|
<!--内容结束-->
|
|
|
|
|
|
<!--春节放假通知-->
|
|
|
- <div class="year-dalog"></div>
|
|
|
+ <!--<div class="year-dalog"></div>-->
|
|
|
<!-- 加载ing begin-->
|
|
|
<div class="loading covers">
|
|
|
<div class="loading-bj"></div>
|
|
@@ -250,7 +250,7 @@
|
|
|
location.reload();
|
|
|
}
|
|
|
});
|
|
|
- var clickdate = JSON.parse(localStorage.getItem('clickdate'));
|
|
|
+// var clickdate = JSON.parse(localStorage.getItem('clickdate'));
|
|
|
//ready事件
|
|
|
mui.ready(function() {
|
|
|
//banner轮播图
|
|
@@ -272,43 +272,45 @@
|
|
|
spaceBetween: 0 //每个图片的左右间距
|
|
|
});
|
|
|
$(".loading").hide().css("opacity", "0"); //隐藏(正在加载...)
|
|
|
- var d = new Date().getTime();//当前时间戳
|
|
|
- //弹窗提示时间为2月8日-2月22日
|
|
|
- if(d > 1518019200000 && d < 1519315200000) {
|
|
|
- if(!window.localStorage) {
|
|
|
- mui.alert("您的浏览器不支持localStorage");
|
|
|
- } else {
|
|
|
- if(clickdate != null) {
|
|
|
- var oldDate = new Date(clickdate.text).getDay();
|
|
|
- //如果本地存储的getDay比当前时间的getDay大则显示弹窗
|
|
|
- if(new Date().getDay() > oldDate) {
|
|
|
- $(".year-dalog").addClass("active").show();
|
|
|
- }
|
|
|
- }else{
|
|
|
- //本地没有存储时间也显示弹窗
|
|
|
- $(".year-dalog").addClass("active").show();
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
+// var d = new Date().getTime();//当前时间戳
|
|
|
+// //弹窗提示时间为2月8日-2月22日
|
|
|
+// if(d > 1518019200000 && d < 1519315200000) {
|
|
|
+// if(!window.localStorage) {
|
|
|
+// mui.alert("您的浏览器不支持localStorage");
|
|
|
+// } else {
|
|
|
+// if(clickdate != null) {
|
|
|
+// var oldDate = new Date(clickdate.text).getDay();
|
|
|
+// //如果本地存储的getDay比当前时间的getDay大则显示弹窗
|
|
|
+// if(new Date().getDay() > oldDate) {
|
|
|
+// $(".year-dalog").addClass("active").show();
|
|
|
+// }
|
|
|
+// }else{
|
|
|
+// //本地没有存储时间也显示弹窗
|
|
|
+// $(".year-dalog").addClass("active").show();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
});
|
|
|
//春节放假通知弹窗点击事件
|
|
|
- $(document).on('tap', '.year-dalog', function() {
|
|
|
- if(!window.localStorage) {
|
|
|
- mui.alert("您的浏览器不支持localStorage");
|
|
|
- } else {
|
|
|
- //自定义json数据
|
|
|
- var obj = {};
|
|
|
- obj = {
|
|
|
- text: new Date().getTime()
|
|
|
- };
|
|
|
- //json格式化插入 点击时间
|
|
|
- localStorage.setItem('clickdate', JSON.stringify(obj));
|
|
|
- }
|
|
|
- $(".year-dalog").removeClass("active");
|
|
|
- setTimeout(function(){
|
|
|
- $(".year-dalog").hide();
|
|
|
- },500);
|
|
|
- });
|
|
|
+// $(document).on('tap', '.year-dalog', function() {
|
|
|
+// if(!window.localStorage) {
|
|
|
+// mui.alert("您的浏览器不支持localStorage");
|
|
|
+// } else {
|
|
|
+// //自定义json数据
|
|
|
+// var obj = {};
|
|
|
+// obj = {
|
|
|
+// text: new Date().getTime()
|
|
|
+// };
|
|
|
+// //json格式化插入 点击时间
|
|
|
+// localStorage.setItem('clickdate', JSON.stringify(obj));
|
|
|
+// }
|
|
|
+// $(".year-dalog").removeClass("active");
|
|
|
+// setTimeout(function(){
|
|
|
+// $(".year-dalog").hide();
|
|
|
+// },500);
|
|
|
+// });
|
|
|
</script>
|
|
|
</body>
|
|
|
|