// IE10以下浏览器提示 function hiUpgrade() { window.AESKey = ''; // 判断浏览器是否支持placeholder属性 function isSupportPlaceholder() { var input = document.createElement('input'); return 'placeholder' in input; }; //判断是否是IE浏览器,包括Edge浏览器 function IEVersion() { //取得浏览器的userAgent字符串 var userAgent = navigator.userAgent; //判断是否IE浏览器 var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; if (isIE) { // ie10及以下 var reIE = new RegExp("MSIE (\\d+\\.\\d+);"); reIE.test(userAgent); var fIEVersion = parseFloat(RegExp["$1"]); if (fIEVersion < 10 || !isSupportPlaceholder()) { return true; } } else { return false; } } var tpl = '

无法正常浏览本网站!

继续浏览

1、您的浏览器版本过低,请升级您的浏览器。

2、如果您的浏览器是最新版本,请切换到极速模式访问。

3、您使用的是IE10以下的浏览器,建议您使用主流浏览器访问。

主流浏览器下载

'; if (IEVersion()) { document.write(tpl); } } hiUpgrade(); /*// 阻止浏览器橡皮筋效果 document.addEventListener('touchmove', function(e) { e.preventDefault(); //阻止默认的处理方式(阻止下拉滑动的效果) }, { passive: false }); //passive 参数不能省略,用来兼容ios和android // 阻止body冒泡 document.body.addEventListener('touchmove', function(e) { e.stopPropagation(); });*/ // 导航 function cNav() { var oBody = $("body"); var oHead = $("#c-header"); var oNav = $("#c-header .c-nav"); var oBtn = $("#c-header .c-switch"); var oL = $("#c-header .c-nav>li"); var oTitle = $(".c-nav .icon-down"); var num = 0; var i = 0; var oP = $("#c-placeholder"); var b = true; var t = null; // 手机端导航显示 oBtn.click(function() { if (b) { b = false; t = $(window).scrollTop(); oBody.addClass('c-open'); oBody.css("top", -t); } else { b = true; oBody.removeClass('c-open'); oBody.css("top", "0"); $(window).scrollTop(t); } }); // 窗口重置隐藏手机端导航 $(window).resize(function() { if ($("#c-header .c-nav").css("display") == "block") { oBody.removeClass('c-open'); } }); // 手机端导航栏目下拉 oTitle.click(function(e) { e.preventDefault(); var $li = $(this).parents('li'); var $sec = $li.find('ul'); if (!$li.hasClass('open')) { $li.addClass('open'); $sec.slideDown() } else { $li.removeClass('open'); $sec.slideUp() } }); // 鼠标移入导航样式 oHead.hover(function() { $(this).addClass("c-style2"); }, function() { if (i <= oHead.outerHeight() && oP.length == 0) { $(this).removeClass("c-style2"); } else { $(this).addClass("c-style2"); } }); // 导航显示及样式 function fn1() { if ($(window).scrollTop() - i > 0 && $(window).scrollTop() > oHead.outerHeight()) { i = $(window).scrollTop(); oHead.addClass("c-head-move"); oHead.addClass("c-style2"); } else if ($(window).scrollTop() - i <= 0) { i = $(window).scrollTop(); oHead.removeClass("c-head-move"); if ($(window).scrollTop() <= oHead.outerHeight() && oP.length == 0 && !oBody.hasClass("c-open")) { oHead.removeClass("c-style2"); } else if ($(window).scrollTop() > oHead.outerHeight()) { oHead.addClass("c-style2"); } else if ($(window).scrollTop() <= oHead.outerHeight() && oP.length != 0) { oHead.addClass("c-style2"); } } } fn1(); $(window).scroll(function() { fn1(); }); // pc导航动画 oL.each(function() { if ($(this).hasClass("on")) { num = $(this).index(); } $(this).hover(function() { oL.eq(num).removeClass("on"); $(this).children("ul").stop().slideDown(); }, function() { oL.eq(num).addClass("on"); $(this).children("ul").stop().slideUp(); }); }); } // 顶部搜索 function topForm() { var obj = $("#c-header form"); var oBox = obj.find(".c-box"); obj.hover(function() { oBox.stop().fadeIn(); }, function() { oBox.stop().fadeOut(); }); } // 首页轮播 function banner() { var obj = ".c-banner"; var swiper = new Swiper(obj, { // effect : 'fade', loop: true, speed: 1000, autoplay: { delay: 3000, disableOnInteraction: false, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, pagination: { el: '.swiper-pagination', clickable: true, }, // breakpoints: { // 768: { // slidesPerView: 3, // spaceBetween: 20, // } // } }); // obj.hover(function() { // swiper.autoplay.stop(); // }, function() { // swiper.autoplay.start(); // }); } // 可视化数据滚动 function visualData(obj) { $(window).load(function() { obj.each(function() { var h = Number($(this).html()); var t = ""; var n = Math.ceil(h / 20); var a = true; var This = $(this); if ($(this).length != 0) { t = $(this).offset().top; } This.html(0); fn1(); $(window).scroll(function() { fn1(); }); function fn1() { var wT = $(window).scrollTop(); if (wT > t - $(window).height() + 50 && wT < t - 50 && a == true) { a = false; var y = 0; var timer2 = setInterval(function() { if (y >= h) { y = h; clearInterval(timer2); } This.html(y); y += n; }, 100); } } }); }); } /*visualData($(".c-num-move"));*/ // 侧边栏回到顶部 function goTop() { var obj = $("#c-go-top"); var oBtn = $("#c-go-top"); oBtn.click(function() { $("html,body").animate({ scrollTop: 0 }, 500); }); } /*goTop();*/ // 底部导航 function footerNav() { var aList = $("#c-footer .c-list-box"); if ($(window).width() <= 767) { aList.each(function() { var This = $(this); $(this).find(".c-title-box").click(function() { This.toggleClass("on"); This.find(".c-list").stop().slideToggle(); }); }); } } // 点击底部微信弹出二维码 function weixin() { var b = $("#c-footer .c-wx-btn"); var w = $("#c-footer .c-weixin"); var d = w.find(".c-img-box"); b.click(function() { w.stop().fadeToggle(); }); d.click(function() { return false; }); w.click(function() { w.stop().fadeToggle(); }); } // 页面进入动画 (function($) { function wow() { var t = .1, e = !0, wow = new WOW({ boxClass: "wow", animateClass: "animated", offset: 0, callback: function(e) { (e = $(e)).css("animation-delay", t.toFixed(1) + "s"), t += .1; } }); $(window).scroll(function() { e && (t = .2, setTimeout(function() { e = !0 }, 150), e = !1) }), wow.init(); } }(jQuery)); // 运动曲线 $.extend(jQuery.easing, { easeIn: function(x, t, b, c, d) { //加速曲线 return c * (t /= d) * t + b; }, easeOut: function(x, t, b, c, d) { //减速曲线 return -c * (t /= d) * (t - 2) + b; }, easeBoth: function(x, t, b, c, d) { //加速减速曲线 if ((t /= d / 2) < 1) { return c / 2 * t * t + b; } return -c / 2 * ((--t) * (t - 2) - 1) + b; }, easeInStrong: function(x, t, b, c, d) { //加加速曲线 return c * (t /= d) * t * t * t + b; }, easeOutStrong: function(x, t, b, c, d) { //减减速曲线 return -c * ((t = t / d - 1) * t * t * t - 1) + b; }, easeBothStrong: function(x, t, b, c, d) { //加加速减减速曲线 if ((t /= d / 2) < 1) { return c / 2 * t * t * t * t + b; } return -c / 2 * ((t -= 2) * t * t * t - 2) + b; }, elasticIn: function(x, t, b, c, d, a, p) { //正弦衰减曲线(弹动渐入) if (t === 0) { return b; } if ((t /= d) == 1) { return b + c; } if (!p) { p = d * 0.3; } if (!a || a < Math.abs(c)) { a = c; var s = p / 4; } else { var s = p / (2 * Math.PI) * Math.asin(c / a); } return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; }, elasticOut: function(x, t, b, c, d, a, p) { //正弦增强曲线(弹动渐出 if (t === 0) { return b; } if ((t /= d) == 1) { return b + c; } if (!p) { p = d * 0.3; } if (!a || a < Math.abs(c)) { a = c; var s = p / 4; } else { var s = p / (2 * Math.PI) * Math.asin(c / a); } return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b; }, elasticBoth: function(x, t, b, c, d, a, p) { if (t === 0) { return b; } if ((t /= d / 2) == 2) { return b + c; } if (!p) { p = d * (0.3 * 1.5); } if (!a || a < Math.abs(c)) { a = c; var s = p / 4; } else { var s = p / (2 * Math.PI) * Math.asin(c / a); } if (t < 1) { return -0.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; } return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * 0.5 + c + b; }, backIn: function(x, t, b, c, d, s) { //回退加速(回退渐入) if (typeof s == 'undefined') { s = 1.70158; } return c * (t /= d) * t * ((s + 1) * t - s) + b; }, backOut: function(x, t, b, c, d, s) { if (typeof s == 'undefined') { s = 3.70158; //回缩的距离 } return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; }, backBoth: function(x, t, b, c, d, s) { if (typeof s == 'undefined') { s = 1.70158; } if ((t /= d / 2) < 1) { return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; } return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b; }, bounceIn: function(x, t, b, c, d) { //弹球减振(弹球渐出) return c - this['bounceOut'](x, d - t, 0, c, d) + b; }, bounceOut: function(x, t, b, c, d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b; } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + 0.75) + b; } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + 0.9375) + b; } return c * (7.5625 * (t -= (2.625 / 2.75)) * t + 0.984375) + b; }, bounceBoth: function(x, t, b, c, d) { if (t < d / 2) { return this['bounceIn'](x, t * 2, 0, c, d) * 0.5 + b; } return this['bounceOut'](x, t * 2 - d, 0, c, d) * 0.5 + c * 0.5 + b; } }); function goTo(url) { window.location.href = url; } function showDialog(title,content,area,type){ layui.use(['laytpl', 'form', 'table'], function () { area = typeof area != 'undefined' ? area : ['500px', '300px']; type = typeof type != 'undefined' ? type : 1; var width = $(window).width(); if( width < 600) area = ['90%', '50vh']; layer.open({ type: type, // page 层类型 area: area, title: [title,'font-size: .28rem;text-align: center;padding:0px;'], skin:'layui-layer-lan', shade: 0.6, // 遮罩透明度 shadeClose: true, // 点击遮罩区域,关闭弹层 maxmin: false, // 允许全屏最小化 anim: 0, // 0-6 的动画形式,-1 不开启 closeBtn: 2, content: content, yes:function (index, layero, that){ } }); }); } function tipMsg(msg,callback) { if(typeof getText == "function" ) msg = getText(msg); layer.msg(msg,function(){ if(typeof callback == "function") callback(); }) } function tipError(msg,callback) { layer.alert(msg,{ icon: 2,/* 0 提示 1 成功 2 错误 */ shadeClose: true, title: "提示", },callback); } function tipSuccess(msg,callback) { layer.alert(msg,{ icon: 1,/* 0 提示 1 成功 2 错误 */ shadeClose: true, title: "提示", },callback); } function tipConfirm(msg,callback){ layer.confirm(msg, { icon: 3, title: '提示' }, callback); } setCaptcha = function (callback) { $('input[name="captcha"]').clicaptcha({ src: '/addons/clicaptcha/index/start', success_tip: '' + '验证成功!' + '', error_tip: '' + '未点中正确区域,请重试!' + '', callback: function(){ if(typeof callback == 'function') callback(); } }); }