$(function() { function clearTouch(el, oStyle) { $(el).css('overflow', oStyle); $(el).on("touchmove", function(e) { e.preventDefault; }) } let oNavDom = $('.nav-menu').html(); $('.navbar-open').click(function() { $('.m-nav-window').addClass('on-show'); $('.m-navmenu').append(oNavDom); clearTouch("body", "hidden"); }) $('.m-navbar-close').click(function() { $('.m-nav-window').removeClass('on-show'); clearTouch("body", "auto"); $('.m-navmenu').empty(); }) }) $(function(){ var swiper = new Swiper('.swiper-container1', { slidesPerView: 1, spaceBetween: 0, loop: true, lazy: { loadPrevNext: true, }, autoplay: {delay: 5500,disableOnInteraction: false,}, pagination: { el: '.swiper-pagination1', clickable: true, } }); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); $('.index_prolist1').owlCarousel({ loop:true, autoplay:true, nav:true, dots:false, item:1, navText:['', ''], responsive:{ 0:{ items:1 }, 767:{ items:3 }, 800:{ items:4 }, 1170:{ items:4 } } }); $('.index_prolist2').owlCarousel({ loop:true, autoplay:true, nav:true, dots:false, item:1, navText:['', ''], responsive:{ 0:{ items:2 }, 767:{ items:3 }, 800:{ items:4 }, 1170:{ items:4 } } }); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); $('.index_case_list').owlCarousel({ loop:true, autoplay:true, nav:true, dots:false, item:1, navText:['', ''], responsive:{ 0:{ items:1 }, 767:{ items:3 }, 800:{ items:4 }, 1170:{ items:4 } } }); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); $('.index-honorslide').owlCarousel({ loop:true, autoplay:true, nav:true, dots:false, navText:['', ''], responsive:{ 0:{ items:1 }, 767:{ items:2 }, 800:{ items:3 }, 1170:{ items:4 } } }); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); }); $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); $('.index-parterslide').owlCarousel({ loop:true, autoplay:true, nav:true, dots:false, navText:['', ''], responsive:{ 0:{ items:2 }, 767:{ items:3 }, 800:{ items:4 }, 1170:{ items:6 } } }); }) $(function(){ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: true, live: true }); wow.init(); }) /** * 璇㈢洏寮瑰嚭淇℃伅 * @param message */ function alertMessage(message,error) { var $errorMessage=$("#errorMessage"); $errorMessage.show(); if(error==1){ $errorMessage.find(".alert").removeClass("alert-danger").addClass("alert-success"); }else{ $errorMessage.find(".alert").removeClass("alert-success").addClass("alert-danger"); } $errorMessage.find(".message").html(message); setTimeout(function () { $errorMessage.hide().find(".message").html(''); },2000); } function validatePhoneNumber(str) { if ($.trim(str).length != 0) { var reg = /^[0-9-+ ]+$/; if (!reg.test(str)) { return false; } } return true; } $(function(){ //鎻愪氦鐣欒█鍜ㄨ if ($("#submitMessage").length > 0) { $(document).on("click", "#submitMessage", function () { var $nickname = $("#nickname"), $phone = $("#phone"), $submitForm = $("#conentForm"); if ($.trim($nickname.val()).length <= 0) { layer.msg('璇疯緭鍏ユ偍鐨勫鍚嶃€?, {icon: 2}); $nickname.focus(); return false; } if ($.trim($phone.val()).length <= 0) { layer.msg('璇疯緭鍏ユ偍鐨勮仈绯荤數璇?, {icon: 2}); $phone.focus(); return false; } $.post($submitForm.attr("action"), $submitForm.serialize(), function (data) { if (data.code) { $nickname.val(""), $phone.val(""); layer.msg(data.msg, {icon: 1}); } else { layer.msg(data.msg, {icon: 2}); } }) }) } }) $(function(){ if($(".weixin_copy").length>0){ var clipboard = new Clipboard('.weixin_copy'); clipboard.on('success', function(e) { alert("寰俊鍙峰凡澶嶅埗",1500); //window.location.href='weixin://'; e.clearSelection(); console.log(e.clearSelection); }); } }) ;(function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); ;(function(){ document.write(''); })();