(function(window,$,undefined){try{$(function(){var url=window.location.href;try{var urlAll=window.location.search.substring(1);var urls=urlAll.split("\x26");if(urls&&urls.length==2){var searchValues=urls[0].split("\x3d");var searchValueKey=searchValues[0];var searchValue=searchValues[1];var searchProds=urls[1].split("\x3d");var searchProdStyleKey=searchProds[0];var searchProdStyle=searchProds[1];searchValue=searchValue.replace(/\+/g," ");searchValue=decodeURIComponent(searchValue);searchProdStyle= searchProdStyle.replace(/\+/g," ");searchProdStyle=decodeURIComponent(searchProdStyle);if(searchValueKey=="searchValue"&&searchProdStyleKey=="searchProdStyle"){$(".sitewidget-prodSearchNew-20190821154752 .search-fix-wrap input[name\x3dsearchValue]").val(searchValue);$(".sitewidget-prodSearchNew-20190821154752 .search-fix-wrap input[name\x3dsearchProdStyle]").val(searchProdStyle)}}}catch(e){}var target="http://"+window.location.host+"/phoenix/admin/prod/search?searchValue\x3d{search_term_string}"; $("#prodSearch").html('{"@context": "http://schema.org","@type": "WebSite","url": "'+url+'","potentialAction": {"@type": "SearchAction", "target": "'+target+'", "query-input": "required name\x3dsearch_term_string"}}');$(".sitewidget-prodSearchNew-20190821154752 .prodDiv .prodUl li").show();$(".sitewidget-prodSearchNew-20190821154752 .sitewidget-bd").focusin(function(){$(this).addClass("focus")});$(".sitewidget-prodSearchNew-20190821154752 .sitewidget-bd").focusout(function(){$(this).removeClass("focus")})})}catch(e){try{console&& (console.log&&console.log(e))}catch(e){}}try{$(function(){$(".sitewidget-prodSearchNew-20190821154752 .prodDiv .prodUl li").mousedown(function(){var searchStyle=$(this).attr("search");$(".sitewidget-prodSearchNew-20190821154752 .prodDiv").parent().find("input[name\x3dsearchProdStyle]").val(searchStyle);$(".sitewidget-prodSearchNew-20190821154752 .prodDiv").parent().find("input[name\x3dsearchValue]").val($(this).html()+"\uff1a").focus()});$(".prodWrap .search-fix-wrap input[name\x3dsearchValue]").focus(function(){if($(this).val()=== ""){$(this).parents(".search-box-wrap").siblings(".prodDiv").show(100);$(this).parents(".search-box-wrap").siblings(".prodDivrecomend").hide(100)}else $(this).parents(".search-box-wrap").siblings(".prodDiv").hide(100)});var oldTime=0;var newTime=0;$(".prodWrap .search-fix-wrap input[name\x3dsearchValue]").bind("input propertychange",function(){_this=$(this);if(_this.val()==="")_this.parents(".search-box-wrap").siblings(".prodDivrecomend").hide();else{_this.parents(".search-box-wrap").siblings(".prodDiv").hide(100); oldTime=newTime;newTime=(new Date).getTime();var theTime=newTime;setTimeout(function(){if(_this.val()!=="")if(newTime-oldTime>300||theTime==newTime){var sty=$(".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},success:function(xhr){$(".prodDivrecomend .prodUl").html(" ");var prodHtml="";for(var i=0;i
  +86-025-52855480      ningkaiyq@163.com
Home / Sitemap

Home

 Copyrights 2020 Nanjing Ningkai Instrument Co., Ltd  All rights reserved.     Supported By LeadongSitemap