1 |
- (()=>{var e={266:e=>{var t=window.location.protocol+"//"+window.location.host,i="http://kedejs.jishutao.com/upload";window.location.protocol,window.location.host;function s(){var e=document.querySelector(".nav-dog"),t=document.querySelectorAll(".pc_nav>ul>li"),i=document.querySelector(".pc_nav>ul>.active");e.style.cssText="left:"+i.offsetLeft+"px;width:"+i.offsetWidth+"px;";for(var s=0;s<t.length;s++)t[s].onmouseover=function(){var t=this.offsetLeft,i=this.offsetWidth;e.style.cssText="left:"+t+"px;width:"+i+"px;"},t[s].onmouseleave=function(){var t=i.offsetWidth;e.style.cssText="left:"+i.offsetLeft+"px;width:"+t+"px;"}}function n(){for(var e=document.querySelectorAll(".pc_nav>ul>li"),t=0;t<e.length;t++)e[t].classList.remove("active")}function l(){for(var e=document.querySelectorAll(".one.active .product-a li"),t=document.querySelectorAll(".one.active .p-dec-d"),i=0;i<e.length;i++)e[i].setAttribute("data-_index",i),e[i].addEventListener("click",function(){for(var i=0;i<e.length;i++)e[i].classList.remove("active");this.classList.add("active");for(var s=this.getAttribute("data-_index"),n=0;n<t.length;n++)t[n].style.display="none",t[n].classList.remove("active");t[s].style.display="block",t[s].classList.add("active")})}function a(e,t,i){var s=document.querySelectorAll(e),n=document.querySelectorAll(t),l=i;function a(e,t,i){for(var s=0;s<e.length;s++)e[s].classList.remove("active");this.classList.add("active");for(var n=this.getAttribute("data-_index"),l=0;l<t.length;l++)t[l].style.display="none",t[l].classList.remove("active");t[n].style.display="block",t[n].classList.add("active"),i&&i()}for(var c=0;c<s.length;c++)s[c].setAttribute("data-_index",c),s[c].addEventListener("click",a.bind(s[c],s,n,l))}function c(e,t){return e.getElementsByClassName(t)}function o(e){this.mobileSelect,this.wheelsData=e.wheels,this.jsonType=!1,this.cascadeJsonData=[],this.displayJson=[],this.cascade=!1,this.startY,this.moveEndY,this.moveY,this.oldMoveY,this.offset=0,this.offsetSum=0,this.oversizeBorder,this.curDistance=[],this.clickStatus=!1,this.isPC=!0,this.init(e)}$(".hamburger").click(function(){$(this).toggleClass("is-active"),$(this).next().slideToggle("1000")}),$(".toTop").hide(),$(window).scroll(function(){$(window).scrollTop()>100?$(".toTop").fadeIn(500):$(".toTop").fadeOut(500)}),$(".toTop").click(function(e){$("html,body").animate({scrollTop:"0px"},666)}),$(".product_nav").mouseover(function(){$(".product-serve").stop().slideDown("fast")}),$(".product_nav").mouseleave(function(){$(".product-serve").stop().slideUp("fast")}),a(".news-fenlei>span",".news-list-it"),function(){var e=document.querySelectorAll(".pc_nav>ul>li"),c=document.querySelector(".app>div.index"),o=document.querySelector(".app>div.about"),r=document.querySelector(".app>div.about-cx"),h=document.querySelector(".app>div.product"),d=document.querySelector(".app>div.main-str"),u=document.querySelector(".app>div.client"),v=document.querySelector(".app>div.news");null!==c&&(n(),e[0].setAttribute("class","active"),s()),null!==h&&(n(),e[1].classList.add("active"),s(),a(".pd-li",".one",l),l()),null!==d&&(n(),e[2].setAttribute("class","active"),s()),null!==u&&(n(),e[3].setAttribute("class","active"),s(),function(){document.querySelectorAll(".quyu ul>li"),document.querySelector(".shengfen>ul");var e=[{value:"7",key:"安徽"},{value:"15",key:"北京"},{value:"27",key:"重庆"},{value:"8",key:"福建"},{value:"30",key:"甘肃"},{value:"24",key:"广东"},{value:"20",key:"广西"},{value:"25",key:"贵州"},{value:"21",key:"海南"},{value:"13",key:"河北"},{value:"1",key:"黑龙江"},{value:"19",key:"河南"},{value:"22",key:"香港"},{value:"17",key:"湖北"},{value:"18",key:"湖南"},{value:"5",key:"江苏"},{value:"9",key:"江西"},{value:"3",key:"辽宁"},{value:"2",key:"吉林"},{value:"23",key:"澳门"},{value:"14",key:"内蒙古"},{value:"32",key:"宁夏"},{value:"31",key:"青海"},{value:"10",key:"山东"},{value:"4",key:"上海"},{value:"9",key:"山西"},{value:"34",key:"陕西"},{value:"29",key:"四川"},{value:"11",key:"台湾"},{value:"16",key:"天津"},{value:"33",key:"新疆"},{value:"28",key:"西藏"},{value:"26",key:"云南"},{value:"6",key:"浙江"}],s=[{place:"全国",children:["全部","河南","湖北","湖南","上海","江苏","浙江","安徽","福建","江西","山东","台湾","黑龙江","吉林","辽宁","广东","广西","海南","香港","澳门","北京","天津","山西","河北","内蒙古","四川","贵州","云南","重庆","西藏","陕西","甘肃","青海","宁夏","新疆"]},{place:"华中",children:["河南","湖北","湖南"]},{place:"华东",children:["上海","江苏","浙江","安徽","福建","江西","山东","台湾"]},{place:"东北",children:["黑龙江","吉林","辽宁"]},{place:"华南",children:["广东","广西","海南","香港","澳门"]},{place:"华北",children:["北京","天津","山西","河北","内蒙古"]},{place:"西南",children:["四川","贵州","云南","重庆","西藏"]},{place:"西北",children:["陕西","甘肃","青海","宁夏","新疆"]}];$(".quyu>ul").on("click","li",function(){$(".quyu>ul>li").removeClass("active"),$(this).addClass("active");for(var e=$(this).html(),t=0;t<s.length;t++)if(e==s[t].place){var i=s[t].children;let e="";for(var n=0;n<i.length;n++)e+="<li>"+i[n]+"</li>";$(".shengfen > ul").html(e),setTimeout(function(){$(".shengfen>ul>li").eq(0).click()},0);break}}),$(".quyu>ul>li").eq(0).click(),$(".shengfen > ul").on("click","li",function(){if($(".shengfen > ul > li").removeClass("active"),$(this).addClass("active"),"全部"==$(this).html)var s=void 0;else for(var n=0;n<e.length;n++)if($(this).html()==e[n].key){var s=e[n].value;break}$.ajax({method:"get",url:t+"/open/listCustomerCase",data:{province:s},success:function(e){if(e.error&&e.error.length)alert("系统繁忙,请刷新页面");else{var t=e.data.list,n="";if(t.length){for(var l=0;l<t.length;l++)n+="<div><img src="+i+t[l].pictureUrl+" /></div>";$(".page_ctrl").css({display:"block"}),window.sessionStorage.setItem("total",e.data.totalCount),window.sessionStorage.setItem("province",s),page()}else{var n="<h4 style='text-align:center;margin-top:90px;color:#666' >暂无服务客户</h4>";$(".page_ctrl").css({display:"none"})}$(".client-item").html(n)}}})})}()),null!==v&&(n(),e[4].setAttribute("class","active"),s()),null!==o&&(n(),e[5].setAttribute("class","active"),s(),a(".about-kede-secodn ul li",".app>div.about>.container>div"),a(".period>div",".history"),function(){var e=document.querySelector(".dsanjiao"),t=document.querySelector(".filtrate .shengfen"),i=0;e.addEventListener("click",function(){i?(i=0,t.style.height="59px"):(i=1,t.style.height="127px")})}()),null!==r&&(n(),e[6].setAttribute("class","active"),s())}(),o.prototype={constructor:o,init:function(e){var t=this;if(t.keyMap=e.keyMap?e.keyMap:{id:"id",value:"value",childs:"childs"},t.checkDataType(),t.renderWheels(t.wheelsData,e.cancelBtnText,e.ensureBtnText),t.trigger=document.querySelector(e.trigger),!t.trigger)return console.error("mobileSelect has been successfully installed, but no trigger found on your page."),!1;if(t.wheel=c(t.mobileSelect,"wheel"),t.slider=c(t.mobileSelect,"selectContainer"),t.wheels=t.mobileSelect.querySelector(".wheels"),t.liHeight=t.mobileSelect.querySelector("li").offsetHeight,t.ensureBtn=t.mobileSelect.querySelector(".ensure"),t.cancelBtn=t.mobileSelect.querySelector(".cancel"),t.grayLayer=t.mobileSelect.querySelector(".grayLayer"),t.popUp=t.mobileSelect.querySelector(".content"),t.callback=e.callback?e.callback:function(){},t.transitionEnd=e.transitionEnd?e.transitionEnd:function(){},t.initPosition=e.position?e.position:[],t.titleText=e.title?e.title:"",t.connector=e.connector?e.connector:" ",t.trigger.style.cursor="pointer",t.setStyle(e),t.setTitle(t.titleText),t.checkIsPC(),t.checkCascade(),t.cascade&&t.initCascade(),t.initPosition.length<t.slider.length)for(var i=t.slider.length-t.initPosition.length,s=0;s<i;s++)t.initPosition.push(0);t.setCurDistance(t.initPosition),t.addListenerAll(),t.cancelBtn.addEventListener("click",function(){t.mobileSelect.classList.remove("mobileSelect-show")}),t.ensureBtn.addEventListener("click",function(){t.mobileSelect.classList.remove("mobileSelect-show");for(var e="",i=0;i<t.wheel.length;i++)i==t.wheel.length-1?e+=t.getInnerHtml(i):e+=t.getInnerHtml(i)+t.connector;t.trigger.innerHTML=e,t.callback(t.getIndexArr(),t.getValue())}),t.trigger.addEventListener("click",function(){t.mobileSelect.classList.add("mobileSelect-show")}),t.grayLayer.addEventListener("click",function(){t.mobileSelect.classList.remove("mobileSelect-show")}),t.popUp.addEventListener("click",function(){event.stopPropagation()}),t.fixRowStyle()},setTitle:function(e){this.titleText=e,this.mobileSelect.querySelector(".title").innerHTML=this.titleText},setStyle:function(e){e.ensureBtnColor&&(this.ensureBtn.style.color=e.ensureBtnColor),e.cancelBtnColor&&(this.cancelBtn.style.color=e.cancelBtnColor),e.titleColor&&(this.title=this.mobileSelect.querySelector(".title"),this.title.style.color=e.titleColor),e.textColor&&(this.panel=this.mobileSelect.querySelector(".panel"),this.panel.style.color=e.textColor),e.titleBgColor&&(this.btnBar=this.mobileSelect.querySelector(".btnBar"),this.btnBar.style.backgroundColor=e.titleBgColor),e.bgColor&&(this.panel=this.mobileSelect.querySelector(".panel"),this.shadowMask=this.mobileSelect.querySelector(".shadowMask"),this.panel.style.backgroundColor=e.bgColor,this.shadowMask.style.background="linear-gradient(to bottom, "+e.bgColor+", rgba(255, 255, 255, 0), "+e.bgColor+")")},checkIsPC:function(){var e=navigator.userAgent.toLowerCase(),t=(e.match(/ipad/i),"iphone os"==e.match(/iphone os/i)),i="midp"==e.match(/midp/i),s="rv:1.2.3.4"==e.match(/rv:1.2.3.4/i),n="ucweb"==e.match(/ucweb/i),l="android"==e.match(/android/i),a="windows ce"==e.match(/windows ce/i),c="windows mobile"==e.match(/windows mobile/i);(t||i||s||n||l||a||c)&&(this.isPC=!1)},show:function(){this.mobileSelect.classList.add("mobileSelect-show")},renderWheels:function(e,t,i){var s=t||"取消",n=i||"确认";this.mobileSelect=document.createElement("div"),this.mobileSelect.className="mobileSelect",this.mobileSelect.innerHTML='<div class="grayLayer"></div><div class="content"><div class="btnBar"><div class="fixWidth"><div class="cancel">'+s+'</div><div class="title"></div><div class="ensure">'+n+'</div></div></div><div class="panel"><div class="fixWidth"><div class="wheels"></div><div class="selectLine"></div><div class="shadowMask"></div></div></div></div>',document.body.appendChild(this.mobileSelect);for(var l="",a=0;a<e.length;a++){if(l+='<div class="wheel"><ul class="selectContainer">',this.jsonType)for(var c=0;c<e[a].data.length;c++)l+='<li data-id="'+e[a].data[c][this.keyMap.id]+'">'+e[a].data[c][this.keyMap.value]+"</li>";else for(c=0;c<e[a].data.length;c++)l+="<li>"+e[a].data[c]+"</li>";l+="</ul></div>"}this.mobileSelect.querySelector(".wheels").innerHTML=l},addListenerAll:function(){for(var e=this,t=0;t<e.slider.length;t++)!function(t){e.addListenerWheel(e.wheel[t],t),e.addListenerLi(t)}(t)},addListenerWheel:function(e,t){var i=this;e.addEventListener("touchstart",function(){i.touch(event,this.firstChild,t)},!1),e.addEventListener("touchend",function(){i.touch(event,this.firstChild,t)},!1),e.addEventListener("touchmove",function(){i.touch(event,this.firstChild,t)},!1),i.isPC&&(e.addEventListener("mousedown",function(){i.dragClick(event,this.firstChild,t)},!1),e.addEventListener("mousemove",function(){i.dragClick(event,this.firstChild,t)},!1),e.addEventListener("mouseup",function(){i.dragClick(event,this.firstChild,t)},!0))},addListenerLi:function(e){for(var t=this,i=t.slider[e].getElementsByTagName("li"),s=0;s<i.length;s++)!function(s){i[s].addEventListener("click",function(){t.singleClick(this,s,e)},!1)}(s)},checkDataType:function(){"object"==typeof this.wheelsData[0].data[0]&&(this.jsonType=!0)},checkCascade:function(){if(this.jsonType){for(var e=this.wheelsData[0].data,t=0;t<e.length;t++)if(this.keyMap.childs in e[t]&&e[t][this.keyMap.childs].length>0){this.cascade=!0,this.cascadeJsonData=this.wheelsData[0].data;break}}else this.cascade=!1},generateArrData:function(e){for(var t=[],i=this.keyMap.id,s=this.keyMap.value,n=0;n<e.length;n++){var l={};l[i]=e[n][this.keyMap.id],l[s]=e[n][this.keyMap.value],t.push(l)}return t},initCascade:function(){this.displayJson.push(this.generateArrData(this.cascadeJsonData)),this.initPosition.length>0?(this.initDeepCount=0,this.initCheckArrDeep(this.cascadeJsonData[this.initPosition[0]])):this.checkArrDeep(this.cascadeJsonData[0]),this.reRenderWheels()},initCheckArrDeep:function(e){if(e&&this.keyMap.childs in e&&e[this.keyMap.childs].length>0){this.displayJson.push(this.generateArrData(e[this.keyMap.childs])),this.initDeepCount++;var t=e[this.keyMap.childs][this.initPosition[this.initDeepCount]];t?this.initCheckArrDeep(t):this.checkArrDeep(e[this.keyMap.childs][0])}},checkArrDeep:function(e){e&&this.keyMap.childs in e&&e[this.keyMap.childs].length>0&&(this.displayJson.push(this.generateArrData(e[this.keyMap.childs])),this.checkArrDeep(e[this.keyMap.childs][0]))},checkRange:function(e,t){for(var i,s=this.displayJson.length-1-e,n=0;n<s;n++)this.displayJson.pop();for(n=0;n<=e;n++)i=0==n?this.cascadeJsonData[t[0]]:i[this.keyMap.childs][t[n]];this.checkArrDeep(i),this.reRenderWheels(),this.fixRowStyle(),this.setCurDistance(this.resetPostion(e,t))},resetPostion:function(e,t){var i,s=t;if(this.slider.length>t.length){i=this.slider.length-t.length;for(var n=0;n<i;n++)s.push(0)}else if(this.slider.length<t.length){i=t.length-this.slider.length;for(n=0;n<i;n++)s.pop()}for(n=e+1;n<s.length;n++)s[n]=0;return s},reRenderWheels:function(){var e=this;if(e.wheel.length>e.displayJson.length)for(var t=e.wheel.length-e.displayJson.length,i=0;i<t;i++)e.wheels.removeChild(e.wheel[e.wheel.length-1]);for(i=0;i<e.displayJson.length;i++)!function(t){var i="";if(e.wheel[t]){for(var s=0;s<e.displayJson[t].length;s++)i+='<li data-id="'+e.displayJson[t][s][e.keyMap.id]+'">'+e.displayJson[t][s][e.keyMap.value]+"</li>";e.slider[t].innerHTML=i}else{var n=document.createElement("div");n.className="wheel",i='<ul class="selectContainer">';for(s=0;s<e.displayJson[t].length;s++)i+='<li data-id="'+e.displayJson[t][s][e.keyMap.id]+'">'+e.displayJson[t][s][e.keyMap.value]+"</li>";i+="</ul>",n.innerHTML=i,e.addListenerWheel(n,t),e.wheels.appendChild(n)}e.addListenerLi(t)}(i)},updateWheels:function(e){if(this.cascade){if(this.cascadeJsonData=e,this.displayJson=[],this.initCascade(),this.initPosition.length<this.slider.length)for(var t=this.slider.length-this.initPosition.length,i=0;i<t;i++)this.initPosition.push(0);this.setCurDistance(this.initPosition),this.fixRowStyle()}},updateWheel:function(e,t){var i="";if(this.cascade)return console.error("级联格式不支持updateWheel(),请使用updateWheels()更新整个数据源"),!1;if(this.jsonType){for(var s=0;s<t.length;s++)i+='<li data-id="'+t[s][this.keyMap.id]+'">'+t[s][this.keyMap.value]+"</li>";this.wheelsData[e]={data:t}}else{for(s=0;s<t.length;s++)i+="<li>"+t[s]+"</li>";this.wheelsData[e]=t}this.slider[e].innerHTML=i,this.addListenerLi(e)},fixRowStyle:function(){for(var e=(100/this.wheel.length).toFixed(2),t=0;t<this.wheel.length;t++)this.wheel[t].style.width=e+"%"},getIndex:function(e){return Math.round((2*this.liHeight-e)/this.liHeight)},getIndexArr:function(){for(var e=[],t=0;t<this.curDistance.length;t++)e.push(this.getIndex(this.curDistance[t]));return e},getValue:function(){var e=[],t=this.getIndexArr();if(this.cascade)for(var i=0;i<this.wheel.length;i++)e.push(this.displayJson[i][t[i]]);else if(this.jsonType)for(i=0;i<this.curDistance.length;i++)e.push(this.wheelsData[i].data[this.getIndex(this.curDistance[i])]);else for(i=0;i<this.curDistance.length;i++)e.push(this.getInnerHtml(i));return e},calcDistance:function(e){return 2*this.liHeight-e*this.liHeight},setCurDistance:function(e){for(var t=[],i=0;i<this.slider.length;i++)t.push(this.calcDistance(e[i])),this.movePosition(this.slider[i],t[i]);this.curDistance=t},fixPosition:function(e){return-(this.getIndex(e)-2)*this.liHeight},movePosition:function(e,t){e.style.webkitTransform="translate3d(0,"+t+"px, 0)",e.style.transform="translate3d(0,"+t+"px, 0)"},locatePostion:function(e,t){this.curDistance[e]=this.calcDistance(t),this.movePosition(this.slider[e],this.curDistance[e])},updateCurDistance:function(e,t){this.curDistance[t]=parseInt(e.style.transform.split(",")[1])},getDistance:function(e){return parseInt(e.style.transform.split(",")[1])},getInnerHtml:function(e){var t=this.getIndex(this.curDistance[e]);return this.slider[e].getElementsByTagName("li")[t].innerHTML},touch:function(e,t,i){var s=this;switch((e=e||window.event).type){case"touchstart":s.startY=e.touches[0].clientY,s.oldMoveY=s.startY;break;case"touchend":if(s.moveEndY=e.changedTouches[0].clientY,s.offsetSum=s.moveEndY-s.startY,s.updateCurDistance(t,i),s.curDistance[i]=s.fixPosition(s.curDistance[i]),s.movePosition(t,s.curDistance[i]),s.oversizeBorder=-(t.getElementsByTagName("li").length-3)*s.liHeight,s.curDistance[i]+s.offsetSum>2*s.liHeight?(s.curDistance[i]=2*s.liHeight,setTimeout(function(){s.movePosition(t,s.curDistance[i])},100)):s.curDistance[i]+s.offsetSum<s.oversizeBorder&&(s.curDistance[i]=s.oversizeBorder,setTimeout(function(){s.movePosition(t,s.curDistance[i])},100)),s.transitionEnd(s.getIndexArr(),s.getValue()),s.cascade){var n=s.getIndexArr();n[i]=s.getIndex(s.curDistance[i]),s.checkRange(i,n)}break;case"touchmove":e.preventDefault(),s.moveY=e.touches[0].clientY,s.offset=s.moveY-s.oldMoveY,s.updateCurDistance(t,i),s.curDistance[i]=s.curDistance[i]+s.offset,s.movePosition(t,s.curDistance[i]),s.oldMoveY=s.moveY}},dragClick:function(e,t,i){var s=this;switch((e=e||window.event).type){case"mousedown":s.startY=e.clientY,s.oldMoveY=s.startY,s.clickStatus=!0;break;case"mouseup":if(s.moveEndY=e.clientY,s.offsetSum=s.moveEndY-s.startY,s.updateCurDistance(t,i),s.curDistance[i]=s.fixPosition(s.curDistance[i]),s.movePosition(t,s.curDistance[i]),s.oversizeBorder=-(t.getElementsByTagName("li").length-3)*s.liHeight,s.curDistance[i]+s.offsetSum>2*s.liHeight?(s.curDistance[i]=2*s.liHeight,setTimeout(function(){s.movePosition(t,s.curDistance[i])},100)):s.curDistance[i]+s.offsetSum<s.oversizeBorder&&(s.curDistance[i]=s.oversizeBorder,setTimeout(function(){s.movePosition(t,s.curDistance[i])},100)),s.clickStatus=!1,s.transitionEnd(s.getIndexArr(),s.getValue()),s.cascade){var n=s.getIndexArr();n[i]=s.getIndex(s.curDistance[i]),s.checkRange(i,n)}break;case"mousemove":e.preventDefault(),s.clickStatus&&(s.moveY=e.clientY,s.offset=s.moveY-s.oldMoveY,s.updateCurDistance(t,i),s.curDistance[i]=s.curDistance[i]+s.offset,s.movePosition(t,s.curDistance[i]),s.oldMoveY=s.moveY)}},singleClick:function(e,t,i){if(this.cascade){var s=this.getIndexArr();s[i]=t,this.checkRange(i,s)}else this.curDistance[i]=(2-t)*this.liHeight,this.movePosition(e.parentNode,this.curDistance[i])}},e.exports=o,$(function(){switch(window.location.search.length<=3&&window.location.search.length>=2&&$("html,body").animate({scrollTop:"1200px"},500),window.location.search){case"?0":$(".product-a li").eq(0).click();break;case"?1":$(".product-a li").eq(1).click();break;case"?2":$(".product-a li").eq(2).click();break;case"?3":$(".product-a li").eq(3).click();break;case"?4":$(".product-a li").eq(4).click();break;case"?5":$(".product-a li").eq(5).click();break;case"?6":$(".product-a li").eq(6).click();break;case"?7":$(".product-a li").eq(7).click();break;case"?8":$(".product-a li").eq(8).click();break;case"?9":$(".product-a li").eq(9).click();break;case"?10":$(".product-a li").eq(10).click();break;case"?11":$(".product-a li").eq(11).click();break;case"?12":$(".product-a li").eq(12).click()}})}},t={};!function i(s){if(t[s])return t[s].exports;var n=t[s]={exports:{}};return e[s](n,n.exports,i),n.exports}(266)})();
|