jquery(function() { var $banner = jquery(".banner"), $banneritem = $banner.find(".item"); $bannerimg = jquery(".banner .item .pimg"); $head_top = $(".header").height(); jquery(".banner").slick({ slide: ".item", autoplay: true, arrows: false, dots: true, infinite: true, easing: "easeinoutexpo", speed: 1000, autoplayspeed: 481600, pauseonhover: false, fade: true, draggable: true, touchmove: true, custompaging: function(slider, i) { return $('').text("0" + (i + 1)); }, }).on({ 'beforechange': function(event, slick, currentslide, nextslide) { var _item = $(this).find(".item"); _item.eq(nextslide).addclass("show").siblings().removeclass("show"); } }); settimeout(function() { $banner.find(".item").eq(0).addclass("show"); }, 1); function initbanner() { if(!ismobile) { $banner.css({ height: win_height - $head_top }); $banneritem.css({ height: win_height - $head_top }); pageinit.setimgmax($bannerimg, 1920, 1046, win_width, win_height - $head_top); } else { $banner.css({ height: "auto" }); $banneritem.css({ height: "auto" }); $bannerimg.attr("style", "").css({ position: "relative" }); } } initbanner(); jquery(".announce-list").slick({ autoplay: true, arrows: true, dots: false, infinite: true, autoplayspeed: 1000, pauseonhover: true, cssease: 'linear', vertical: true, prevarrow: $('.up-down-icon .up-icon'), nextarrow: $('.up-down-icon .down-icon') }); // 新闻资讯 $(".newsbanner").slick({ slidestoshow: 3, slidestoscroll: 1, centerpadding: '0', arrows: true, speed: 600, dots: false, infinite: true, centermode: false, autoplay: true, focusonselect: false, pauseonhover: true, responsive: [{ breakpoint: 860, settings: { slidestoshow: 2, slidestoscroll: 1, } }, { breakpoint: 550, settings: { slidestoshow: 1, slidestoscroll: 1, } } ] }); jquery(window).resize(function() { var sawidth = $(".sd-bottom-banner").width(); $(".engineering-bg ").width((win_width - sawidth) / 2); }); var sawidth = $(".sd-bottom-banner").width(); $(".engineering-bg ").width((win_width - sawidth) / 2); jquery(".sd-bottom-banner").slick({ slidestoshow: 1, slidestoscroll: 1, centerpadding: '0', arrows: true, speed: 500, dots: true, infinite: true, centermode: false, autoplay: false, focusonselect: true, asnavfor: '.jtyjtxt' }); var max = jquery(".jtyjtxt .jtitem").length; if(max < 10) { jquery(".jtyjnumble .end").html('0' + max); } else { jquery(".jtyjnumble .end").html(max); } // 集团业绩 $(".jtyjtxt").slick({ slidestoshow: 1, slidestoscroll: 1, centerpadding: '0', arrows: true, speed: 600, dots: false, infinite: true, centermode: false, autoplay: false, focusonselect: false, pauseonhover: true, fade: true, asnavfor: '.sd-bottom-banner', }).on('beforechange', function(event, slick, currentslide, nextslide) { jquery(".jtyjnumble .start").html('0' + (nextslide + 1)); }); $('.jtyjnumble .end i').text($('.jtyjtxt>.jtitem').length); });