/*			var mySwiper = new Swiper('.i-banner', {
                //pagination: '.pagination',
                autoplay: 5000,
                speed: 700,
                loop: true,
				//用户操作swiper之后，是否禁止autoplay.默认为true：停止。
				autoplayDisableOnInteraction:false,
				preventLinks: 0,
            	resizeReInit: 1,
                paginationClickable: true,
				//初始化时处理什么
				onInit: function(e) {
					//.not(".swiper-slide-duplicate") 不是重复的
					$(".i-banner .swiper-wrapper li").not(".swiper-slide-duplicate").eq(0).find(".before").addClass("after")
				},
				onSlideChangeEnd: function(e) {
					$(".i-banner .swiper-wrapper li").eq(e.activeIndex).find(".before").addClass("after").end().siblings().find(".before").removeClass("after")
					$("#ban-index").text(e.activeLoopIndex + 1)
				}
				
            })
			$('.arrow-left').on('click', function(e){
				e.preventDefault()
				mySwiper.swipePrev()
			})
			$('.arrow-right').on('click', function(e){
				e.preventDefault()
				mySwiper.swipeNext()
			})
			$(".scroll-tips").on("click",
			function() {
				$("html ,body").stop().animate({
					scrollTop: $(".i-banner").height()
				},
				500)
			})

$(function(){
	$(window).scroll(function(){
		if($(window).scrollTop() > $(".i-banner").height()){
			$(".head").removeClass("head-bj");
		} else{
			$(".head").addClass("head-bj");
		}
	});
})*/
$(function () {
	if ($.fn.placeholder && $("input, textarea").placeholder(), "undefined" != typeof Swiper) {
        $(".iban-index .total").text($(".index-banner li").length);
        var t = new Swiper(".index-banner", {
            autoplay: 5e3,
            speed: 700,
            loop: !0,
            autoplayDisableOnInteraction: !1,
            preventLinks: !1,
            resizeReInit: !0,
            paginationClickable: !0,
            onInit: function (e) {
                $(".index-banner .slides li").not(".swiper-slide-duplicate").eq(0).find(".before").addClass("after")
            },
            onSlideChangeEnd: function (e) {
                $(".index-banner .slides li").eq(e.activeIndex).find(".before").addClass("after").end().siblings().find(".before").removeClass("after"),
                $(".iban-index .index").text(e.activeLoopIndex + 1)
            }
        });
        $(".scroll-tips").on("click", function () {
            $("html ,body").stop().animate({
                scrollTop: $(".index-banner").height()
            }, 500)
        }),
        $(".iban-ctrl .prev").on("click", function (e) {
            e.preventDefault(),
            t.swipePrev()
        }),
        $(".iban-ctrl .next").on("click", function (e) {
            e.preventDefault(),
            t.swipeNext()
        });
        var n = new Swiper(".case-mswiper", {});
        $(".moblie-mswiper-wrapper .bx-prev").on("click", function (e) {
            e.preventDefault(),
            n.swipePrev()
        }),
        $(".moblie-mswiper-wrapper .bx-next").on("click", function (e) {
            e.preventDefault(),
            n.swipeNext()
        });
        $(".customer-swiper li").length > 1 && new Swiper(".customer-swiper", {
            resizeReInit: !0
        })
    }
});

