//=== viewid:searchbox_style_01_1556175892026 ===// $("#searchbox_style_01_1556175892026 .search-btn").click(function(){ var kw=$("#searchbox_style_01_1556175892026 .search_input").val(); var gourl = $(this).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+kw; location.href = href; }) function searchOne(lname){ var gourl = $(lname).attr("attrhref"); href = gourl+(gourl.indexOf('?')>-1?'&':'?')+"nkeyword="+$(lname).html(); location.href = href; } $("#searchbox_style_01_1556175892026 .search_input").val(decodeURIComponent(Request("nkeyword"))); function goSearch(form) { console.log('form: ', form); $(form).find('.search-btn').trigger('click'); return false; } //=== viewid:dh_style_28_1556179491274 ===// /*pc,鎵嬫満鏄剧ず闅愯棌*/ function is_mobile(){ return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767); } var is_mobile_boolean = is_mobile(); $(function(){ /*pc,鎵嬫満鏄剧ず闅愯棌*/ $("#dh_style_28_1556179491274 li").each(function(){ if($(this).find("ul") && $(this).find("ul").length != 0){ $(this).children("a").removeAttr('href'); if(is_mobile_boolean){ $(this).children("a").attr('onclick','navSwtich(this)'); } } }); }) //=== viewid:dh_style_28_1556179491274 ===// function navSwtich(obj) { $(obj).siblings(".menuUlCopy").slideToggle(200); $(obj).toggleClass('ontoggle'); $(obj).parent().siblings().find(".menuUlCopy").slideUp(200); $(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle'); } function subLeft_dh_style_28_1556179491274(){ $("#dh_style_28_1556179491274 .menuUl>li").each(function(){ $(this).find(".menuUl03").css("left",'100%'); }) } $(window).resize(function() { subLeft_dh_style_28_1556179491274(); }) $(function(){ $("#dh_style_28_1556179491274 .fa-navicon").click(function(){ $("#dh_style_28_1556179491274").addClass('clearTransform'); $("#dh_style_28_1556179491274 .menuUlCopy").each(function(){ $(this).siblings(".fa").show(); }) }) subLeft_dh_style_28_1556179491274(); $("#dh_style_28_1556179491274 .subBox").css("top",$("#dh_style_28_1556179491274 .menuUl_box").height()); if($("#dh_style_28_1556179491274 .menuUl").hasClass("noHover")){ var tabNum = 0; $("#dh_style_28_1556179491274 .menuUl>li").find(".Onsub").each(function(){ tabNum += 1; $(this).parent().attr("tabNum",tabNum) }) $("#dh_style_28_1556179491274 .menuUl>li .Onsub").mouseover(function(){ $("#dh_style_28_1556179491274 .subBox").show(); var index = $(this).parent().attr("tabNum"); $("#dh_style_28_1556179491274 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide(); $("#dh_style_28_1556179491274 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide(); }) $("#dh_style_28_1556179491274 .subBox").mouseleave(function(){ $(this).hide(); }); $("#dh_style_28_1556179491274 .menuUl>li .Nosub").mouseover(function(){ $("#dh_style_28_1556179491274 .subBox").hide(); }) //椋庢牸41 42 } }) var color = $('#dh_style_28_1556179491274 .menuStyle_28 .menuUl02 .subMenu02').css('background-color'); $('#dh_style_28_1556179491274 .menuStyle_28').append(``); $('#dh_style_28_1556179491274 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){ let that = $(this); setTimeout(function(){ var hoverColor = that.css('background-color'); $('#dh_style_28_1556179491274 .menuStyle_28').append(``); },100); }); //=== viewid:image_style_20_1599709076568 ===// if(typeof showcart !== 'function'){ function showcart(){ var langid = 0; if (langid==0 && BodyIsFt) langid = 1; if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){ location.href = "https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&act=show&lang="+langid+"&ismobile=1"; }else{ document.getElementById("boxName").innerHTML=""; if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="脳"; document.getElementById("showiframe").src="https://s207js.nicebox.cn/exusers/u_cart.php?idweb=10359&act=show&lang="+langid+"&v=9"; box.Show({width:'1000px', height:'600px'}); } } } $('#image_style_20_1599709076568 .imgTextLi').eq(0).find('.imgBt').addClass('showBtBorder'); $('#image_style_20_1599709076568 .imgTextLi').eq(0).find('.imgDetail').addClass('showDetail'); if(isMobile()){ //绉诲姩绔 $('#image_style_20_1599709076568 .imgTextLi').click(function(){ var obj = $(this); let check = obj.is('.showImg'); if (!check) { animation(obj); } else { let url = obj.find('.noMobile').attr('href'); if (url) { window.open(url); } } }) }else { //pc绔 $('#image_style_20_1599709076568 .imgTextLi').hover(function(){ var obj = $(this); animation(obj); }) // 涓昏鐢ㄤ簬棰勮鐨勬椂鍊 $('#image_style_20_1599709076568 .imgTextLi').click(function(){ var obj = $(this); let check = obj.is('.showImg'); if (!($('body').width() > 0 && $('body').width() < 767)) { check = false; } if (!check) { return true; } let url = obj.find('.noMobile').attr('href'); let target = obj.find('.noMobile').attr('target'); if (url) { if (target == '_blank') { window.open(url); } else { window.location.href = url; } } }) } // 椋庢牸20鐨勫姩鐢绘晥鏋 function animation(obj){ obj.addClass('showImg').removeClass('hideImg').siblings().addClass('hideImg').removeClass('showImg'); obj.find('.imgBt').addClass('showBtBorder'); obj.siblings().find('.imgBt').removeClass('showBtBorder'); obj.siblings().find('.imgDetail').removeClass('showDetail'); obj.find('.imgDetail').addClass('showDetail'); } // 鍒ゆ柇PC杩樻槸鎵嬫満 function isMobile() { var userAgentInfo = navigator.userAgent; var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"]; var mobile_flag = false; //鏍规嵁userAgent鍒ゆ柇鏄惁鏄墜鏈 for (var v = 0; v < mobileAgents.length; v++) { if (userAgentInfo.indexOf(mobileAgents[v]) > 0) { mobile_flag = true; break; } } var screen_width = window.screen.width; var screen_height = window.screen.height; //鏍规嵁灞忓箷鍒嗚鲸鐜囧垽鏂槸鍚︽槸鎵嬫満 if(screen_width < 500 && screen_height < 800){ mobile_flag = true; } return mobile_flag; }