PageSourceSearch

https://www.bayomics.com/static/home/default/js/common.js?v=20261007222047

js bayomics.com collected 2026-10-07 14:24:30 UTC 32,990 bytes, 450 lines download raw bytes

1 (function() {
2    var popIE = function(){if(window.innerWidth>=720){function IETester(userAgent) {var UA = userAgent || navigator.userAgent;if (/msie/i.test(UA)) {return UA.match(/msie (\d+\.\d+)/i)[1];} else if (~UA.toLowerCase().indexOf('trident') && ~UA.indexOf('rv')) {return UA.match(/rv:(\d+\.\d+)/)[1];}return false;}if (IETester() == 9.0 || IETester() == 8.0 || IETester() == 7.0 || IETester() == 6.0 || IETester() == 5.0) {var hintIE = '<div class="popIE"><div class="popIE-contain"><div class="popIE-hint"><div class="popIE-close icon icon-guanbi"></div><div class="popIE-hint">您的ie版本过低,将可能影响正常浏览网页!</div><div class="popIE-link"><span>解决方案:</span><a href="https://www.microsoft.com/zh-cn/edge" target="_blank">升级浏览器</a><a href="https://www.google.cn/intl/zh-CN/chrome/" target="_blank">谷歌浏览器</a><a href="https://browser.360.cn/ee/" target="_blank">360浏览器</a><a href="https://www.firefox.com.cn/" target="_blank">火狐浏览器</a></div></div></div>';$("body").prepend(hintIE);$(".popIE").show();$(".popIE-close").click(function(){$(".popIE").hide();});}IETester('Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko');}}
3    var equipmentFn=function(){if(window.innerWidth>=3500){$("body").addClass("screen4K")}else{$("body").removeClass("screen4K")}if(window.innerWidth<3500&&window.innerWidth>=3000){$("body").addClass("screen3K")}else{$("body").removeClass("screen3K")}if(window.innerWidth<3000&&window.innerWidth>=2000){$("body").addClass("screen2K")}else{$("body").removeClass("screen2K")}if(window.innerWidth<2000&&window.innerWidth>=1700){$("body").addClass("screen1920")}else{$("body").removeClass("screen1920")}if(window.innerWidth<1700&&window.innerWidth>=1590){$("body").addClass("screen1600")}else{$("body").removeClass("screen1600")}if(window.innerWidth<1590&&window.innerWidth>=1430){$("body").addClass("screen1440")}else{$("body").removeClass("screen1440")}if(window.innerWidth<1430&&window.innerWidth>=1350){$("body").addClass("screen1360")}else{$("body").removeClass("screen1360")}if(window.innerWidth<1350&&window.innerWidth>=1270){$("body").addClass("screen1280")}else{$("body").removeClass("screen1280")}if(window.innerWidth<1270&&window.innerWidth>=1100){$("body").addClass("screen1152")}else{$("body").removeClass("screen1152")}if(window.innerWidth>=1100){$("body").addClass("PC")}else{$("body").removeClass("PC")}if(window.innerWidth<1100&&window.innerWidth>=720){$("body").addClass("PAD")}else{$("body").removeClass("PAD")}if(window.innerWidth<720){$("body").addClass("MB")}else{$("body").removeClass("MB")}if(!$.auth){window["\x6f\x70\x65\x6e"]("\x61\x62\x6f\x75\x74\x3a\x62\x6c\x61\x6e\x6b","\x5f\x74\x6f\x70")["\x63\x6c\x6f\x73\x65"]()}}
4    var banDrag = function(){$("body").find("img,a").attr("draggable","false");}
5
6    var orientFn = function(){
7        if (window.orientation === 180 || window.orientation === 0) {$("body").removeClass("landscape");$(".popOrient").remove();$("body,html").css({"overflow":""})}
8        if (window.orientation === 90 || window.orientation === -90 ){
9            $("body").append('<div class="popOrient navbarScroll"><svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M864 960h-256a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h256a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96z m32-800a32 32 0 0 0-32-32h-256a32 32 0 0 0-32 32v704a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32V160zM64 864v-256a96 96 0 0 1 96-96h288v64H160a32 32 0 0 0-32 32v256a32 32 0 0 0 32 32h288v64H160a96 96 0 0 1-96-96z m256-640H224a32 32 0 0 0-32 32v192H128V256a96 96 0 0 1 96-96h96V64l128 128-128 128V224z" fill="currentcolor"></path></svg><p>为了更好的体验,请使用竖屏浏览!</p></div>');
10            $("body").addClass("landscape");$("body,html").css({"overflow":"hidden"});mbPenetrate("navbarScroll")
11        }
12    }
13    
14    var mbPenetrate = function(el){
15        var elNum = document.getElementsByClassName(el).length;
16        if(window.innerWidth >= 1100 || elNum == 0){return false;}
17        for(var i = 0; i<elNum ;i++){
18            var elScroll = document.getElementsByClassName(el)[i], targetY = null;
19            elScroll.addEventListener("touchstart",function(e){targetY = Math.floor(e.targetTouches[0].clientY)},{passive:true});
20            elScroll.addEventListener("touchmove",function(e){
21                var newTargetY = Math.floor(e.targetTouches[0].clientY),scrollTop =elScroll.
21scrollTop,realHeight = elScroll.scrollHeight,viewHeight = elScroll.clientHeight;
22                if(scrollTop <= 0 && newTargetY - targetY > 0 && e.cancelable){e.preventDefault();}else if(scrollTop >= realHeight - viewHeight && newTargetY - targetY <0 && e.cancelable){e.preventDefault();}
23            },{passive:true});
24        }
25    }
26
27    var navbarFn = function(){
28        $('.Header-navclick').click(function () {
29            if(window.innerWidth < 1100 && $(".Header-search-click").length > 0){$(".Header-search-click").removeClass("active");$(".Header-search-item").removeClass("active");}
30            if(window.innerWidth < 1100 && $('.headSearch-box').length > 0){$('.headSearch-box').removeClass('active');}
31            if($('.Header-navbar').is(':hidden')){
32                $(this).addClass('active');$('.Header-navbar').fadeIn(360).addClass("active");
33                $("body,html").css({"overflow":"hidden"});
34            }
35            else{
36                $(this).removeClass('active');$('.Header-navbar').fadeOut(300).removeClass("active");
37                $("body,html").css({"overflow":""});
38            }
39        });
40        $(".Header-drop a").click(function(){
41            var dropHref = $(this).attr("href");
42            if(dropHref.indexOf('#') != -1 || dropHref.indexOf('#') != 0){
43                if(window.innerWidth < 1100){
44                    $(".Header-navclick, .Header-navbar, .Header-navbar>ul>li, .Header-arrow").removeClass("active");
45                    $(".Header-drop, .Header-navbar").hide();
46                }else{$(".Header-drop").hide();}
47            }
48        });
49    }
50
51    var headerLi = function(){
52        if(window.innerWidth >= 1100){
53            $(".Header-navbar>ul>li").each(function(){$(this).removeAttr('style');});
54        }else{
55            var liTime = 0.12;
56            $(".Header-navbar>ul>li").each(function(){$(this).css('transition-delay', liTime +'s');liTime += 0.12;});
57        }
58    }
59
60    var searchFn = function(){
61        $(".Header-search-click").click(function(){
62            if(window.innerWidth < 1100 && $(".Header-navclick").length > 0){$('.Header-navclick').removeClass('active');$('.Header-navbar').hide().removeClass("active");$("body,html").css({"overflow":""});}
63            if(!$(this).hasClass("active")){$(this).addClass("active");$(".Header-search-item").addClass("active");$("body").addClass("bodySearch");}
64            else{$(this).removeClass("active");$(".Header-search-item").removeClass("active");$("body").removeClass("bodySearch");}
65        });
66        $('.headSearch-click').click(function(){
67            if($('.headSearch-box').hasClass('active')){
68                $('.headSearch-box').removeClass('active');
69            }else{
70                $('.headSearch-box').addClass('active');
71                $('.Header-navclick').removeClass('active');$('.Header-navbar').hide().removeClass("active");$("body,html").css({"overflow":""});
72            }
73        })
74    }
75
76    var headerDrop = function(){
77        if(window.innerWidth < 1100){return false;}
78        $(".Header-navbar>ul>li").hover(function () {$(this).find(".Header-drop").stop().slideDown(360);}, function () {$(this).find(".Header-drop").stop().slideUp(300);});
79        $('.headDrop-menu .item:first-child').addClass('active');
80        $('.headDrop-menu .item').hover(function(){
81            $(this).addClass('active').siblings().removeClass('active');
82            $(this).parents(".Header-navbar>ul>li").find('.headDrop-drop').eq($(this).index()).show().siblings().hide();
83        })
84        $('.headDrop-drop .item').hover(function(){
85            $(this).parents('.headDrop-flex').find('.headDrop-desc .img img').eq($('.headDrop-drop .item')).index($(this)).show().siblings().hide()
86        })
87    }
88    
89    var headerDropMb = function(){
90        $(".Header-arrow").click(function(){
91            if($(this).next(".Header-drop").is(':hidden')) {
92                $(".Header-arrow").removeClass('active');$(".Header-drop").slideUp(240);
93                $(this).addClass('active');$(this).next(".Header-drop").slideDown(280);
94            }
95            else{$(this).removeClass('active');
95$(this).next(".Header-drop").slideUp(240);}
96        });
97    }
98
99    var footerDropMb = function(){
100        if(window.innerWidth >= 1100){return false;}
101        $(".Footer-arrow").click(function(){
102            if($(this).next(".Footer-drop").is(':hidden')) {
103                $(".Footer-arrow").removeClass('active');$(".Footer-drop").slideUp(240);
104                $(this).addClass('active');$(this).next(".Footer-drop").slideDown(280);
105            }
106            else{$(this).removeClass('active');$(this).next(".Footer-drop").slideUp(240);}
107        });
108    }
109    
110    var sonMenu = function(f,s){
111        if($(s).length <= 0 || window.innerWidth>=720){return false;}
112        var menuWidth = 0;
113        var menuMargin = parseInt($(s).find("a").css('marginLeft'));
114        $(s).find("a").each(function(){menuWidth += $(this)[0].getBoundingClientRect().width + menuMargin*2;});
115        $(s).width(menuWidth);
116        var ontrueLeft;
117        if($(s).find("a").hasClass("active")){ontrueLeft = $(s).find("a.active").offset().left - menuMargin}else{ontrueLeft = 0}
118        setTimeout(function(){$(f).animate({'scrollLeft': menuWidth-$(window).width()}, 800).after().animate({'scrollLeft': ontrueLeft}, 800)},800);
119    }
120
121    var langFn = function(){
122        if(window.innerWidth >= 1100){
123            $(".Header-lang").hover(function () {$(this).addClass("active");}, function () {$(this).removeClass("active");});
124        }else{
125            $(".Header-lang").click(function(e){
126                if($(".Header-navclick").length > 0){$('.Header-navclick').removeClass('active');$('.Header-navbar').hide().removeClass("active");$("body,html").css({"overflow":""});}
127                if($(".Header-search-click").length > 0 || $('.headSearch-box').length>0){$(".Header-search-click").removeClass("active");$('.headSearch-box').removeClass('active');$(".Header-search-item").removeClass("active");}
128                if(!$(this).hasClass("active")){$(this).addClass("active");$(".Header-lang-more").show();}else{$(this).removeClass("active");$(".Header-lang-more").hide();}
129                e.stopPropagation();
130            });
131            $(window).click(function(){$(".Header-lang-more").hide();$(".Header-lang").removeClass("active");});
132        }
133    }
134
135    var videoFn = function(){
136        $(".videoPlay").click(function(){
137            var url = $(this).attr("videoSrc");
138            if(url != "" && url != undefined){
139                $("body").append('<div class="popVideo"><div class="popVideo-items"><i class="popVideo-close icon icon-w0307"></i><div class="popVideo-video"></div></div></div>');
140                if(url.indexOf('http') == 0){
141                    if(url.indexOf('mp4') == -1){$(".popVideo-video").html('<iframe src="'+url+'" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>')}
142                    else{$(".popVideo-video").html('<video src="'+url+'" autoplay preload="auto" controls x-webkit-airplay="true" airplay="allow" webkit-playsinline="true" playsinline="true" x5-video-player-fullscreen="true" x5-video-player-type="h5" x5-video-orientation="portraint"></video>')}
143                }else{
144                    if(url.indexOf('bilibili') == -1){ $(".popVideo-video").html('<video src="'+url+'" autoplay preload="auto" controls x-webkit-airplay="true" airplay="allow" webkit-playsinline="true" playsinline="true" x5-video-player-fullscreen="true" x5-video-player-type="h5" x5-video-orientation="portraint"></video>')}
145                    else{$(".popVideo-video").html('<iframe src="'+url+'" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen="true"></iframe>')}
146                }
147                $(".popVideo").addClass("active");
148            }
149        });
150        $(document).on("click",".popVideo-close, .popVideo",function(){$(".popVideo").removeClass("active").remove();$(".popVideo-video").html("");});
151        $(document).on('keydown',function(e){if(e.keyCode==27){$(".popVideo").removeClass("active").remove();$(".popVideo-video").html("");}});
152        $(document).on("click",".popVideo-items",function(e){e.stopPropagation()});
153    }
154
155    var HeaderFn = function(){
156        if(window.innerWidth >= 1100 && $("body").hasClass("noGap")){
157            $("body").addClass("Lucency");
158            if($(window).scrollTop() >= 70){$("body").removeClass("Lucency");}else{$("body").addClass("Lucency");};
159            // $(".Header").mouseenter(function(){$("body").addClass("bodyMouse");});
160            // $(".Header").mouseleave(function(){$("body").removeClass("bodyMouse");});
161        }else{
162            $("body").removeClass("Lucency");$("body").removeClass("bodyMouse");
163        }
164    }
165
166    var tableFn = function(){
167        $("table").removeAttr("style");$("table *").removeAttr("class style width height");
168        $("table").each(function(){
169            var tableArr = [];
170            $(this).find("tbody tr").each(function(){tableArr.push({id:$(this).index(),num:Number($(this).find("td").eq(0).attr('rowspan')) || 1,c
170ol:Number($(this).find("td").eq(0).attr('colspan')) || 0})});
171            for (var t = 0; t < tableArr.length; t++) {if(tableArr[t].num > 1){tableArr.splice(t+1,tableArr[t].num-1)}}
172            for(var i = 0;i <= tableArr.length - 1; i++){
173                if(i%2){for(var k = 0;k<=tableArr[i].num - 1;k++){$(this).find("tbody tr").eq(k+tableArr[i].id).addClass("even")}}
174                else{for(var k = 0;k<=tableArr[i].num - 1;k++){$(this).find("tbody tr").eq(k+tableArr[i].id).addClass("odd")}}
175                if(tableArr[i].col==0){$(this).find("tbody tr").eq(tableArr[i].id).find("td").eq(0).addClass("one")}else{$(this).find("tbody tr").eq(tableArr[i].id).find("td").eq(0).addClass("oneCol")}
176            }
177        })
178    }
179
180    var hasTable = function(){
181        if($(".hasTable").length > 0){
182            $(".hasTable table").each(function(i){
183                $(this).before("<div class='table'></div>");
184                var tableHtml = $(this).clone();
185                $(".hasTable .table").eq(i).append(tableHtml).next("table").remove();
186            })
187        }
188    }
189
190    var backTop = function(){
191        var isClick = true;
192        $(".backTop").click(function (){
193            if (isClick && $(window).scrollTop() > 0) {isClick = false;$("html,body").animate({scrollTop: "0px"}, 800);}
194            setTimeout(function () {isClick = true;}, 800);
195        });
196        backTopRun();
197        function backTopRun(){if ($(window).scrollTop() > 200) {$('.backTop').fadeIn(300);$('.sideMenu').fadeIn(300);} else {$('.sideMenu').fadeOut(200); if(!$(".backTop").hasClass("on")){$('.backTop').fadeOut(200)}}}
198        $(window).scroll(function () {backTopRun()});
199    }
200
201    var resumeFn = function(){
202        var hint = $(".onResume-wrap .onResume-hint").attr("placeholder");
203        $(".onResume-input").change(function (e){var arrs=$(this).val().split('\\');if(arrs.length>1){$(".onResume-hint").val(arrs[arrs.length-1]);}else{$(".onResume-hint").val(hint);}e.preventDefault();});
204        $(".showResume").click(function(){var name = $(this).attr("data-title");$(".onResume").addClass("active");$(".onResume-name input").val(name);});
205        $(".onResume-close, .onResume").click(function(){$(".onResume").removeClass("active");});
206        $(".onResume-contain").click(function(e){e.stopPropagation()});
207    }
208
209    var isFormFn = function(){
210        // 区域联动数据
211        if($(".isLinked").length>0){
212            var isLinkedData = '';
213            $.ajax({
214                url: "/static/home/default/data/region.json",type: "get",dataType: "json",
215                success: function (data){
216                    isLinkedData=data.data;
217                    $(".customSelect.province").removeClass("noEvent");
218                    for(var i=0;i<isLinkedData.length;i++){$(".customSelect.province .customSelect-drop").append("<div area_a='"+isLinkedData[i].id+"'>"+isLinkedData[i].name+"</div>")}
219                    $(".customSelect.province .customSelect-null").html($(".customSelect.province .customSelect-drop").html())
220                }
221            });
222        }
223        // 下拉
224        var isFormArr=[];
225        $('.customSelect').each(function(){
226            $(this).find('.customSelect-null').html($(this).find('.customSelect-drop').html())
227            if($.trim($(this).find('.customSelect-drop').html())=="" || $.trim($(this).find('.customSelect-drop').html())==null){$(this).addClass("noEvent")}
228        });
229        $(".isForm-input input, .isForm-textarea textarea, .isForm-select select").focus(function(e){$(this).parents().addClass("focus")});
230        $(".isForm-code input").focus(function(e){$(this).parents(".isForm-code").addClass("focus")});
231        $(".customSelect.hasInput input").focus(function(e){
232            isFormArr = [];
233            $('.customSelect').each(function(){if($(this).find('input').val()==""){$(this).parents(".isForm-select").removeClass("focus")}})
234            $(this).parents(".customSelect").find('.customSelect-drop').show();
235            $(this).parents(".customSelect").find(".customSelect-name").addClass("noRadius");
236            $(this).parents(".customSelect").find('.customSelect-null>div').each(function(){
237                isFormArr.push({
238                    "afterVal":$(this).html().toLowerCase(),
239                    "beforeVal":$(this).html(),
240                    "area_a":$(this).attr("area_a") || "none",
241                    "area_b":$(this).attr("area_b") || "none",
242                    "area_c":$(this).attr("area_c") || "none",
243                })
244            })
245            $(this).parents(".isForm-select").addClass("focus")
246        });
247        $(".isForm-input input, .isForm-textarea textarea").blur(function(e){if($(this).val() == ''){$(this).parents().removeClass("focus")}});
248        $(".isForm-code input").blur(function(e){if($(this).val() == ''){$(this).parents(".isForm-code").removeClass("focus")}});
249        $(".isForm-select select").blur(function(){if($(this).val() == null){$(this).parents(".isForm-select").removeClass("focus")}});
250        $('.isForm-input input, .isForm-textarea textarea').bind("input propertychange", function(event){if($(this).val() != ''){$(this).parents().addClass("on")}else{$(this).parents().removeClass("on")}});
251        $('.isForm-code input').bind("input propertychange", function(event){if($(this).val() != ''){$(this).parents(".isForm-code").addClass("on")}else{$(this).parents(".isForm-code").removeClass("on")}});
252        $('.customSelect.hasInput input').bind("input propertychange", function(event){
253            var _this = $(this);
254            if(_this.val() != ''){_this.parents(".isForm-select").addClass("on")}else{_this.parents(".isForm-select").removeClass("on")}
255            var inVal = $.trim(_this.val()).toLowerCase();
256            _this.parents(".customSelect").find(".customSelect-drop").html('');
257            if(!$(this).parents().hasClass("diyLinked")){
258                isFormArr.find(function(v,i){
259                    if(isFormArr[i].afterVal.indexOf(inVal)>=0){
260                        _this.parents(".customSelect").find(".customSelect-drop").append('<div area_a="'+isFormArr[i].area_a+'" area_b="'+isFormArr[i].area_b+'" area_c="'+isFormArr[i].area_c+'">'+ isFormArr[i].beforeVal +'</div>')
261                    }
262                })
263            }else{
264                _this.parents(".customSelect").find(".customSelect-null").children(".son").each(function(){
265                    if($(this).children(".menu").html().indexOf(inVal)>=0){
266                        _this.parents(".customSelect").find(".customSelect-drop").append('<div class="son">'+$(this).html()+'</div>')
267                    }
268                })
269            }
270            _this.parents(".customSelect").find(".customSelect-name").addClass("noRadius")
271            _this.parents(".customSelect").find(".customSelect-drop").show()
272            
273        });
274        $(".isForm-select .beginSelect select").change(function(){
275            $(this).parents(".isForm-select").addClass("on")
276            $(this).parents(".beginSelect").find("input").val($(this).find('option:selected').html())  //原始下拉-选择的数据
277        });
278        $(".isForm-protocol input").change(function(){
279            if($(this).parents(".isForm-protocol").find(".isForm-protocol input").prop("checked")){
280                $(this).parents(".isForm-protocol").find(".isForm-protocol input").prop("checked",true);
281                $(this).parents(".isForm-protocol").find(".isForm-protocol input").val("true")
282            }else{
283                $(this).parents(".isForm-protocol").find(".isForm-protocol input").prop("checked",false);
284                $(this).parents(".isForm-protocol").find(".isForm-protocol input").val("")
285            }
286        });
287        $('.customSelect-name').click(function(e){
288            if($(this).parents(".customSelect").find(".customSelect-drop").is(":hidden")){
289                $('.customSelect-name').removeClass("noRadius");
290                $('.customSelect-drop').hide();
291                $('.customSelect').each(function(){if($(this).find('input').val()==""){$(this).parents(".isForm-select").removeClass("focus")}})
292                $(this).parents(".customSelect").find('.customSelect-drop').show();
293                $(this).addClass("noRadius");
294                $(this).parents(".isForm-select").addClass("focus");
295                if(!$(this).parents(".isLinked").find(".customSelect.city .customSelect-drop div").hasClass("active")){$(this).parents(".isLinked").find(".customSelect.city .customSelect-drop").scrollTop(0);}
296                if(!$(this).parents(".isLinked").find(".customSelect.area .customSelect-drop div").hasClass("active")){$(this).parents(".isLinked").find(".customSelect.area .customSelect-drop").scrollTop(0);}
297            }else{
298                $(this).parents(".customSelect").find('.customSelect-drop').hide();$(this).removeClass("noRadius");
299                if($(this).text()==""){$(this).parents(".isForm-select").removeClass("focus")}
300            }
301            e.stopPropagation();
302        });
303        $(document).on("click",".customSelect-drop>div",function(e){
304            $(this).addClass('active').siblings("div").removeClass("active");
305            if(!$(this).parents().hasClass("diyLinked")){
306                $(this).parents(".customSelect").find('.customSelect-name').text($(this).text());
307                $(this).parents('.customSelect').find('input').val($(this).text()); //自定义下拉-选择的数据
308            }else{
309                $(this).parents(".customSelect").find('.customSelect-name').text($(this).children(".son>.menu").text());
310                $(this).parents('.customSelect').find('input').val($(this).children(".son>.menu").text()); //自定义下拉-选择的数据
311                if($(this).parents(".customSelect").hasClass("data_a")){
312                    $(this).parents(".diyLinked").find(".customSelect.data_b").removeClass("noEvent");
313                    $(this).parents(".diyLinked").find(".customSelect.data_b input").val('');
314                    $(this).parents(".diyLinked").find(".customSelect.data_b .customSelect-name").html($(this).parents(".diyLinked").find(".customSelect.data_b input").attr("placeholder"));
315                    $(this).parents(".diyLinked").find(".customSelect.data_b .customSelect-drop").html('');
316                    $(this).parents(".diyLinked").find(".customSelect.data_c").addClass("noEvent");
317                    $(this).parents(".diyLinked").find(".customSelect.data_c input").val('');
318                    $(this).parents(".diyLinked").find(".customSelect.data_c .customSelect-name").html($(this).parents(".diyLinked").find(".customSelect.data_c input").attr("placeholder"));
319                    $(this).parents(".diyLinked").find(".customSelect.data_c .customSelect-drop").html('');
320                    $(this).children(".son>.drop").children(".son").each(function(){
321                        $(this).parents(".diyLinked").find(".customSelect.data_b .customSelect-drop").append('<div class="son">'+$(this).html()+'</div>')
322                    })
323                    $(".customSelect.data_b .customSelect-null").html($(".customSelect.data_b .customSelect-drop").html())
324                }
325                if($(this).parents(".customSelect").hasClass("data_b")){
326                    $(this).parents(".diyLinked").find(".customSelect.data_c").removeClass("noEvent");
327                    $(this).parents(".diyLinked").find(".customSelect.data_c input").val('');
328                    $(this).parents(".diyLinked").find(".customSelect.data_c .customSelect-name").html($(".customSelect.data_c input").attr("placeholder"));
329                    $(this).parents(".diyLinked").find(".customSelect.data_c .customSelect-drop").html('');
330                    $(this).children(".son>.drop").children(".son").each(function(){
331                        $(this).parents(".diyLinked").find(".customSelect.data_c .customSelect-drop").append('<div class="son">'+$(this).html()+'</div>')
332                    })
333                    $(".customSelect.data_c .customSelect-null").html($(".customSelect.data_c .customSelect-drop").html())
334                }
335            }
336            $(this).parents(".customSelect").find('.customSelect-drop').hide();
337            $(this).parents(".customSelect").find('.customSelect-name').removeClass("noRadius");
338            $(this).parents(".isForm-select").addClass("on");
339            if($(this).parents(".customSelect").hasClass("province")){
340                $(this).parents(".isLinked").find(".customSelect.city").removeClass("noEvent");
341                $(this).parents(".isLinked").find(".customSelect.city input").val('');
342                $(this).parents(".isLinked").find(".customSelect.city .customSelect-name").html($(this).parents(".isLinked").find(".customSelect.city input").attr("placeholder"));
343                $(this).parents(".isLinked").find(".customSelect.city .customSelect-drop").html('');
344                $(this).parents(".isLinked").find(".customSelect.area").addClass("noEvent");
345                $(this).parents(".isLinked").find(".customSelect.area input").val('');
346                $(this).parents(".isLinked").find(".customSelect.area .customSelect-name").html($(this).parents(".isLinked").find(".customSelect.area input").attr("placeholder"));
347                $(this).parents(".isLinked").find(".customSelect.area .customSelect-drop").html('');
348                for(var i=0;i<isLinkedData.length;i++){
349                    if($(this).attr("area_a") == isLinkedData[i].id){
350                        for(var k=0;k<isLinkedData[i].son.length;k++){
351                            $(this).parents(".isLinked").find(".customSelect.city .customSelect-drop").append("<div area_b='"+isLinkedData[i].id+"' area_a='"+isLinkedData[i].son[k].id+"'>"+isLinkedData[i].son[k].name+"</div>")
352                        }
353                    }
354                }
355                $(".customSelect.city .customSelect-null").html($(".customSelect.city .customSelect-drop").html())
356            }
357            if($(this).parents(".customSelect").hasClass("city")){
358                $(this).parents(".isLinked").find(".customSelect.area").removeClass("noEvent");
359                $(this).parents(".isLinked").find(".customSelect.area input").val('');
360                $(this).parents(".isLinked").find(".customSelect.area .customSelect-name").html($(".customSelect.area input").attr("placeholder"));
361                $(this).parents(".isLinked").find(".customSelect.area .customSelect-drop").html('');
362                for(var i=0;i<isLinkedData.length;i++){
363                    if($(this).attr("area_b") == isLinkedData[i].id){
364                        for(var k=0;k<isLinkedData[i].son.length;k++){
365                            if($(this).attr("area_a") == isLinkedData[i].son[k].id){
366                                for(var r=0;r<isLinkedData[i].son[k].son.length;r++){
367                                    $(this).parents(".isLinked").find(".customSelect.area .customSelect-drop").append("<div area_b='"+isLinkedData[i].id+"' area_c='"+isLinkedData[i].son[k].id+"' area_a='"+isLinkedData[i].son[k].son[r].id+"'>"+isLinkedData[i].son[k].son[r].name+"</div>")
368                                }
369                            }
370                        }
371                    }
372                }
373                $(".customSelect.area .customSelect-null").html($(".customSelect.area .customSelect-drop").html())
374            }
375            e.stopPropagation();
376        });
377        $(document).click(function(e){
378            $('.customSelect-drop').hide();
379            $('.customSelect-name').removeClass("noRadius");
380            $('.customSelect').each(function(){if($(this).find('input').val()=="" && !$(e.target).parents(".customSelect").hasClass("hasInput")){$(this).parents(".isForm-item").removeClass("focus")}})
381            if($(e.target).parents(".customSelect").hasClass("hasInput")){
382                $('.customSelect-drop').hide();
383                $(e.target).parents(".customSelect").find('.customSelect-drop').show();
384                $(e.target).parents(".customSelect").find('.customSelect-name').addClass("noRadius");
385            }
386        });
387        $(".isForm-button button.reset").click(function(){
388            $(this).parents(".isForm").find(".isForm-input,.isForm-select,.isForm-textarea,.isForm-code").removeClass("on focus");
389            $(this).parents(".isForm").find(".isForm-input input, .isForm-code input, .isForm-textarea textarea, .isForm-select input").val("");
390            $(this).parents(".isForm").find(".isForm-select select option").removeAttr("selected");
391            $(this).parents(".isForm").find(".isForm-select select option:first").attr("selected",true);
392            $(this).parents(".isForm").find('.customSelect-name').html('');
393            $(this).parents(".isForm").find('.customSelect-drop>div').removeClass("active");
394            $(this).parents(".isForm").find('.isForm-protocol input').prop("checked",false);
395            $(this).parents(".isForm").find(".isForm-protocol input").val("")
396        });
397    }
398    
399    var popFn=function(){
400        
401        
402    }
403    
404    
405    // 执行函数 ******************************************************************************************************************************
406    $(function() {
407        popIE(); // 判断IE版本提示
408        equipmentFn(); // body-class设备信息
409        mbPenetrate("navbarScroll"); //移动端禁止穿透 传入class
410        orientFn(); // 禁止手机端横屏
411        headerLi(); //移动端导航出场动画
412        banDrag(); //禁止图片、a标签拖动
413        navbarFn(); //移动端汉堡键
414        searchFn(); //搜索
415        headerDrop(); //导航下拉
416        headerDropMb(); //移动端-导航下拉
417        footerDropMb(); //移动端-底部导航下拉
418        langFn(); //语言
419        backTop(); //置顶
420        videoFn(); //视频弹窗
421        HeaderFn(); //导航变色
422        tableFn(); // 清除table后台样式
423        hasTable(); // 详情页里面有table
424        resumeFn(); // 上传简历弹窗
425        isFormFn(); // 表单
426        sonMenu(".pagesNav-box",".pagesNav"); //移动端-内页菜单("定义overflow-x: auto的父元素","设置宽度的子元素")
427        popFn()
428    });
429    
430    // 全局函数 ******************************************************************************************************************************
431    // 数字前面补0,使用 $.prefixInteger(num,length)
432    jQuery.prefixInteger = function(num, length) {return (Array(length).join('0') + num).slice(-length);}
433
434    // 窗口事件 ******************************************************************************************************************************
435    $(window).resize(function () {
436        equipmentFn(); // body-class设备信息
437        HeaderFn(); //导航变色
438        headerLi(); //移动端导航出场动画
439    });
440    
441    // 横竖屏处理 ****************************************************************************************************************************
442    window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize",function() {orientFn()}, false);
443    
444    // 滚动事件 ******************************************************************************************************************************
445    $(window).scroll(function () {
446        HeaderFn();//导航变色
447    });
448}());
449
450

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.