PageSourceSearch

https://www.beisen.com/public/mobile/manufacturing/js/c-public.js?v=1.12

js beisen.com collected 2026-10-04 01:07:38 UTC 5,932 bytes, 213 lines download raw bytes

1// 央国企
2function enterprise(){
3  //   var swiper = new Swiper($(".c-case-swiper"), {
4  //       speed: 3000,
5  //       slidesPerView: 8,
6  //       spaceBetween : 12,
7  //       loop:true,
8  //       observer:true,
9  //       watchOverflow: true,
10  //       observeParents:true,
11  //       autoplay: {
12  //           delay: 0,
13  //           stopOnLastSlide: false,
14  //           disableOnInteraction: false,
15  //       },
16  //       breakpoints: {
17  //           1259: {
18  //             slidesPerView: 6,
19  //           },
20  //           767: {  
21  //             slidesPerView: 3,
22  //           },
23  //         } 
24  //   });
25		// $(".c-case-swiper").hover(
26		// 	function () {
27		// 		swiper.autoplay.stop();
28		// 	},
29		// 	function () {
30		// 		swiper.autoplay.start();
31		// 	}
32		// );
33
34    var swiper2 = new Swiper($(".c-case3-swiper1"), {
35        speed: 900,
36        slidesPerView: "auto",
37        spaceBetween : 20,
38        direction: 'vertical',
39        observer:true,
40        watchOverflow: true,
41        observeParents:true,
42        watchSlidesVisibility: true,//防止不可点击
43        breakpoints: {
44            991: {
45                slidesPerView: 2,
46                direction: 'horizontal',
47            },
48            767: {  
49                direction: 'horizontal',
50                slidesPerView: 1.3,
51            },
52          } 
53    });
54    var swiper3 = new Swiper($(".c-case3-swiper2"), {
55        speed: 900,
56        observer:true,
57        watchOverflow: true,
58        observeParents:true,
59        effect : 'fade',
60        fadeEffect: {
61          crossFade: true,
62        },
63        thumbs: {
64            swiper: swiper2,
65        },
66        on: {
67            slideChangeTransitionStart: function(){
68                $(".c-case3-swiper1 .swiper-slide").eq(this.activeIndex).addClass("on").siblings().removeClass("on");
69            },
70        },
71    });
72		$(".c-case3-swiper1 .swiper-slide").mouseover(function(){
73			swiper3.slideTo($(this).index());
74		});
75
76    var swiper4 = new Swiper($(".c-case5-swiper1"), {
77        speed: 900,
78        slidesPerView: "auto",
79        spaceBetween : 20,
80        observer:true,
81        watchOverflow: true,
82        observeParents:true,
83        watchSlidesVisibility: true,//防止不可点击
84        centerInsufficientSlides: true,
85        autoplay: {
86            delay: 2000,
87            stopOnLastSlide: false,
88            disableOnInteraction: false,
89        },
90        breakpoints: {
91            1259: {
92              slidesPerView: 6,
93            },
94            767: {  
95              slidesPerView: 3,
96            },
97          } 
98    });
99    var swiper5 = new Swiper($(".c-case5-swiper2"), {
100        speed: 900,
101        observer:true,
102        watchOverflow: true,
103        observeParents:true,
104        effect : 'fade',
105        fadeEffect: {
106          crossFade: true,
107        },
108    });
109    var swiper6 = new Swiper($(".c-case5-swiper3"), {
110        speed: 900,
111        observer:true,
112        watchOverflow: true,
113        observeParents:true,
114        effect : 'fade',
115        fadeEffect: {
116          crossFade: true,
117        },
118        thumbs: {
119            swiper: swiper4,
120        },
121        controller: {
122            control: swiper5,
123        },
124        on: {
125            slideChangeTransitionStart: function(){
126              $(".c-case5-swiper1 .swiper-slide").eq(this.activeIndex).addClass("on").siblings().removeClass("on");
127            },
128        },
129    });
130		$(".c-case5-swiper1 .swiper-slide").mouseover(function(){
131			swiper5.slideTo($(this).index());
132			swiper6.slideTo($(this).index());
133		});
134    $(".c-case5-swiper1 .swiper-slide").eq(0).addClass("on");
135    $(".c-case5-swiper1 .swiper-slide").click(function(){
136        $(this).addClass("on").siblings().removeClass("on");
137    });
138    $(".hadbox-sec5 .close").click(function(){
139        $(".c-case-nav").addClass("on");
140    });
141    if(getCookie("had5")==1){
142        $(".c-case-nav").addClass("on");
143    }
144		
145		
146		if($(window).width()>767){
147				var aLi1 = $(".c-case-nav .c-list li");
148				var aLi2 = $(".c-case-list>li");
149				aLi1.click(function(){
150				    $('html,body').animate({
151				        'scrollTop': aLi2.eq($(this).index()).offset().top-98
152				    }, 1000);
153				});
154				$(window).scroll(function(){
155				    fn1()
156				});
157				function fn1(){
158				    aLi2.each(function(){
159				        if($(window).scrollTop()>$(this).offset().top-100){
160				            aLi1.eq($(this).index()).addClass("on").siblings().removeClass("on");
161				        }
162				    });
163				}
164				fn1();
165		}
166   
167
168    var oH = 0;
169    $(".c-case4 .c-list li .c-wrap .c-bottom").each(function(){
170        if($(this).outerHeight()>oH){
171            oH = $(this).outerHeight();
172        }
173    });
174    $(".c-case4 .c-list li .c-wrap .c-bottom").each(function(){
175        $(this).outerHeight(oH);
176    });
177}
178enterprise();
179
180
181$(".c-case3 .cont .item .c-wrap").click(function(){
182    $(this).parent().toggleClass("on").siblings().removeClass("on");
183    $(this).parent().find(".jut").stop().slideToggle();
184    $(this).parent().siblings().find(".jut").stop().slideUp();
185});
186
187$(".c-case3 .cont .item.on").find(".jut").css("display","block");
188
189function connectionBanner(){
190    var swiper4 = new Swiper($(".c-connection-banner"), {
191        speed: 8000,
192        loop:true,
193        slidesPerView: "auto",
194        spaceBetween : 20,
195        watchOverflow: true,
196        slidesPerView: 9,
197        allowTouchMove: false,
198        autoplay: {
199            delay: 0,
200            stopOnLastSlide: false,
201            disableOnInteraction: false,
202        },
203        breakpoints: {
204            1259: {
205              slidesPerView: 6,
206            },
207            767: {  
208              slidesPerView: 3,
209            },
210          } 
211    });
212}
213connectionBanner();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.