$("#lun2").slide1({ autoplay:true, autotime:4000, }); $(".search>i").click(function(){ $(".search>form").toggle(); }) $(window).scroll(function(){ var j=$(document).scrolltop(); if(j!=0){ $(".hdtop").css("bottom","100px"); } if(j==0){ $(".hdtop").css("bottom","-100px"); } }) $(".hdtop").click(function(){ $("html,body").animate({scrolltop:'0px'},300); }) $("table").wrap("
"); baguettebox.run('.baguetteboxone', { animation: 'fadein', }); $('.slider').slick({ autoplay:true, autoplayspeed:2000, draggable: true, arrows: true, dots: true, fade: true, speed: 900, infinite: true, cssease: 'cubic-bezier(0.7, 0, 0.3, 1)', touchthreshold: 100 }) $(".weixin").click(function(e){ e.preventdefault(); var _this = $(this), $img = _this.children(".ewm"); if($img.is(":hidden")){ $img.show(); }else{ $img.hide(); } }) $("#zc").click(function(event){ event.preventdefault(); $(".cover1").css("display","block"); }) $(".guanbi").click(function(){ $(".cover1").css("display","none"); }) $("#dl").click(function(event){ event.preventdefault(); $(".cover2").css("display","block"); }) $(".guanbi").click(function(){ $(".cover2").css("display","none"); }) $(".downbox a").click(function(e){ e.preventdefault(); var _this = $(this), $id = _this.data("id"); $.ajax({ type: "get", url: "/index.php/api/guestbook/prodown", data: {"id": $id}, datatype: "json", success: function(obj){ if(obj.status == 2){ $(".cover2").show(); }else if(obj.status == 1){ window.open(obj.downfile, "_blank"); } } }); })