var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function submit_price(){ if( $("#form_name").attr('data-id')==1){ alert('请勿重复提交'); return ; } var data={}; data.form_name=$("#form_name").val(); data.form_tel=$("#form_tel").val(); data.form_address=$("#form_address").val(); data.form_product=$("#form_product").val(); $.ajax({ url: localUrl+'/index.php/index/ajax_send_form', type: 'post', data: data, success: function (data) { if (data.status == 0) { alert(data.info); } else { alert('提交成功!请等待客服联系。'); $("#form_name").attr('data-id',1); } } }); } $(document).ready(function () { $("#top_search").click(function () { location.href=localUrl+'/index.php/product/index?key_search='+$("#key_search").val(); }) new Swiper('#banner', { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, pagination: { el: '.swiper-pagination', }, autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, } }); new Swiper('#index_khfx', { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, pagination: { el: '.swiper-pagination', }, autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, } }); var galleryThumbs = new Swiper('.gallery-thumbs', { spaceBetween: 20, slidesPerView: 4, freeMode: true, watchSlidesVisibility: true, watchSlidesProgress: true, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); var galleryTop = new Swiper('.gallery-top', { spaceBetween: 10, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, thumbs: { swiper: galleryThumbs } }); new Swiper('#index_news', { pagination: { el: '.swiper-pagination', }, autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, }, }); /首页分类效果 $(".category_list").find('.product-list-content:eq(0)').show(); $(".category_list").find('.item-list:eq(0)').addClass('active'); $(".category_list").find('.min-item-img:eq(0) a').addClass('active'); function show_category(obj,i){ obj.find('.product-list-content').hide(); obj.find('.min-item-img a').removeClass('active'); obj.find('.item-list').removeClass('active'); obj.find('.item-list:eq('+i+')').addClass('active'); obj.find('.min-item-img:eq('+i+') a').addClass('active'); obj.find('.product-list-content:eq('+i+')').show(); } $(".category_list").each(function () { var _this=$(this); _this.find('.item-list').each(function (index) { $(this).hover(function () { show_category(_this,index); },function () { }) }) _this.find('.min-item-img').each(function (index) { $(this).hover(function () { show_category(_this,index); },function () { }) }) }); }) } /* FILE ARCHIVED ON 21:35:54 Mar 17, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 17:36:35 Apr 10, 2025. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.528 exclusion.robots: 0.04 exclusion.robots.policy: 0.028 esindex: 0.011 cdx.remote: 5.21 LoadShardBlock: 570.758 (3) PetaboxLoader3.datanode: 505.182 (4) PetaboxLoader3.resolve: 121.265 (2) load_resource: 192.949 */