(function(window,$,undefined){try{function setInputPadding(){var indentOld=$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap input[name\x3dsearchValue]").css("text-indent");var indent=parseInt(indentOld.substring(0,indentOld.length-2))+$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap .inner-container").innerWidth();if("outline-search-box"=="insideLeft-search-box")$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap .search-svg").css("left",$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap .inner-container").innerWidth()- 15+"px");$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap input[name\x3dsearchValue]").css("padding-left",indent+"px");$(".sitewidget-prodSearchNew-20200224161513 .search-fix-wrap input[name\x3dsearchValue]").css("text-indent",0)}$(function(){setTimeout(function(){setInputPadding()});var prodNows=$(".sitewidget-prodSearchNew-20200224161513 .prodDiv input[name\x3dprodCheckList]").val();var prodNow=prodNows.replace(/\s/g,"").split("\x26\x26");var prodIdss=$(".sitewidget-prodSearchNew-20200224161513 .prodDiv input[name\x3dprodCheckIdList]").val(); var prodIds=prodIdss.split("\x26\x26");var prodPool=["all","desc","summary","model","keyword","name","none"];var prod=[];var prodId=[];for(var i=0;i=2)){$(".sitewidget-prodSearchNew-20200224161513 .prodDiv .prodUl #rangeAll").show();var rangeAll=$(".sitewidget-prodSearchNew-20200224161513 .prodDiv .prodUl #rangeAll");$(".sitewidget-prodSearchNew-20200224161513 .prodDiv").parent().find(".inner-container .inner-text").text(rangeAll.text()); $("#component_YPAVUpjsDKit .prodWrap .search-fix-wrap input[name\x3dsearchProdStyle]").val(rangeAll.attr("search"))}if(prodCheckStr&&prodCheckStr.length==1){var text="";$(".sitewidget-prodSearchNew-20200224161513 .prodDiv li").each(function(index,ele){if($(ele).attr("id")==prodCheckStr[0])text=$(ele).text()});$(".sitewidget-prodSearchNew-20200224161513 .prodDiv").parent().find(".inner-container .inner-text").text(text);$(".sitewidget-prodSearchNew-20200224161513 .prodDiv").parent().find(".inner-container .fa-angle-down").remove(); $(".sitewidget-prodSearchNew-20200224161513 .prodDiv").remove();$("#component_YPAVUpjsDKit .prodWrap .search-fix-wrap input[name\x3dsearchProdStyle]").val(prodCheckStr[0])}for(var i=0;i300||theTime==newTime){var sty=$("#component_YPAVUpjsDKit .prodWrap .search-fix-wrap input[name\x3dsearchProdStyle]").val(); $.ajax({url:"/phoenix/admin/prod/search/recommend",type:"get",dataType:"json",data:{searchValue:_this.val(),searchProdStyle:sty,searchComponentSettingId:"YPAVUpjsDKit"},success:function(xhr){$(".prodDivrecomend .prodUl").html(" ");_this.parents(".search-box-wrap").siblings(".prodDivrecomend").show();var centerBody=$(window).width()/2;var inpLeft=_this.offset().left;if(inpLeft>centerBody)_this.parents(".search-box-wrap").siblings(".prodDivrecomend").css({"right":"0","left":"initial","overflow-y":"auto"}); var prodHtml="";if(xhr.msg!=null&&xhr.msg!="")prodHtml=xhr.msg;else for(var i=0;i
简体中文