console.log(""),function(e,n){e.util=n()}(this,function(){if(!e)var e={toast:function(n){null!=Object.assign&&(n=Object.assign({string:"",type:"normal"},n));var t=document.getElementsByClassName("_toast")[0];switch(e.addClass(t,"active"),e.removeClass(t,"success"),t.childNodes[0].childNodes[0].innerHTML=n.string,n.type){case"normal":break;case"success":e.addClass(t,"success");break;case"error":e.addClass(t,"error");break;case"warning":e.addClass(t,"warning")}setTimeout(function(){t.className="_toast"},1500)},Album:function(e,n){function t(e){s.style="transform: translate(-50%,-50%);opacity:1;transition:opacity ease .5s;",s.src=c.parentNode.children[d].getAttribute("data-url"),$infobar.innerHTML=d+1+"/"+(u+1),e.stopPropagation()}var a=document.createElement("div");a.innerHTML='
',a.className="_AlbumPictures";var o=document.body;o.insertBefore(a,o.lastChild);var i=document.getElementsByClassName("_AlbumPictures")[0],s=document.getElementById("_photoImg"),r=document.getElementsByClassName("_SBL")[0],l=document.getElementsByClassName("_SBR")[0];$infobar=document.getElementsByClassName("infobar")[0];for(var c,d=0,u=e.children.length-1,m=0;m<=u;m++)e.children[m].onclick=function(e){r.style="display: block;",l.style="display: block;",c=this,i.className="_AlbumPictures active",s.src=c.getAttribute("data-url"),d=Array.prototype.indexOf.call(c.parentNode.children,c),$infobar.innerHTML=d+1+"/"+(u+1),d==u?l.style="display: none;":0==d&&(r.style="display: none;"),e.stopPropagation()};var h=document.getElementsByClassName("_swiperBtnOff")[0];h.addEventListener("click",function(e){i.className="_AlbumPictures"}),r.addEventListener("click",function(e){d<=0?d=0:d--,0==d?r.style="display: none;":l.style="display: block;",s.style="transform: translate(0%,-50%);opacity: 0;transition: ease .5s;",s.addEventListener("transitionend",t,!1),e.stopPropagation()}),l.addEventListener("click",function(e){d==u?d=u:d++,d==u?l.style="display: none;":r.style="display: block;",s.style="transform: translate(-100%,-50%);opacity: 0;transition: ease .5s",s.addEventListener("transitionend",t,!1),e.stopPropagation()})},LoadPercentage:function(n,t){function a(e){var a=Math.round(100*e/s.length);if(r[0].innerHTML=Math.round(100*e/s.length)+"%",e==s.length){var i=!1;function l(){i?o()&&t(a):setTimeout(l,1e3)}l(),setTimeout(function(){i=!0},n.timer)}}function o(){return null!=t}null!=Object.assign&&(n=Object.assign({obj:null,Loader:null,timer:1e3},n));var i=0,s=e.ifIDorClass(n.Loader),r=e.ifIDorClass(n.obj);if(null!=s&&null!=r)for(var l=0;l

",n.className="_toast",e.appendChild(n)},banner:function(n,t){function a(){return null!=t}function o(e){}function i(n,o){h&&(m=setTimeout(function(){Object.keys(f).forEach(function(t,a){e.removeClass(f[t],"active"),n.$pagination&&e.removeClass(n.$pagination.children[t],"active")}),o>=v?o=0:o++,p.bannerIndex=o,l(n,o),a()&&t(p),e.addClass(f[o],"active"),n.$pagination&&e.addClass(n.$pagination.children[o],"active"),i(n,o)},n.timer))}function s(n,o){a()&&t(p),Object.keys(f).forEach(function(t,a){e.removeClass(f[t],"active"),n.$pagination&&e.removeClass(n.$pagination.children[t],"active")}),l(n,o),e.addClass(f[o],"active"),n.$pagination&&e.addClass(n.$pagination.children[o],"active")}function r(n){if("brush"==n.effect)e.addClass(n.$banner.children[0],"brush"),e.addClass(n.$banner.children[0],"_h100vh"),n.$banner.children[0].children[0].style="width:100%";else if("??"==n.effect)for(var t=0;t<=v;t++)n.$banner.children[0].children[t].style.transform="translate3d("+-t*n.$banner.clientWidth+"px, 0px, 0px)"}function l(e,n){if(""==e.effect)h=!1,TweenMax.to(e.$banner.children[0],e.speed,{x:-n*e.$banner.clientWidth,onComplete:function(t){h=!0,e.autoplay&&i(e,n)}});else if("brush"==e.effect){h=!1,TweenMax.to(e.$banner.children[0].children[n],e.speed,{autoCSS:!1,css:{width:g},onComplete:function(t){h=!0,e.autoplay&&i(e,n)}});for(var t=0;t<=v;t++)t!=n&&TweenMax.to(e.$banner.children[0].children[t],e.speed,{autoCSS:!1,css:{width:0}})}}function c(e){if(e.bannerBtnLR){var n=document.createElement("div"),t=document.createElement("div");n.className="_swiperPrer bannerSwBtn",t.className="_swiperNext bannerSwBtn",e.$banner.appendChild(n),e.$banner.appendChild(t),n.addEventListener("click",u),t.addEventListener("click",d)}}function d(){h&&(clearInterval(m),b=p.bannerIndex,b>=v?b=0:b++,p.bannerIndex=b,console.log(b),s(n,b))}function u(){h&&(clearInterval(m),b=p.bannerIndex,b<=0?b=v:b--,s(n,b))}null!=Object.assign&&(n=Object.assign({$banner:null,$btnR:null,$btnL:null,$pagination:null,speed:3,timer:5e3,effect:"",autoplay:!1,bannerBtnLR:!1,loop:!1},n));for(var m,h=!0,p={bannerIndex:0},g=window.innerWidth,f=(window.innerHeight,n.$banner.children[0].children),v=f.length-1,b=0,w="",y=0;y<=v;y++)w+="";n.$pagination&&(n.$pagination.innerHTML=w,e.addClass(n.$pagination.children[0],"active")),e.addClass(f[b],"active"),n.autoplay&&i(n,b),r(n),c(n),o(n),n.$btnR&&n.$btnL&&(n.$btnR.addEventListener("click",d),n.$btnL.addEventListener("click",u)),n.$pagination&&n.$pagination.addEventListener("click",function(e){var t=e||window.event,a=t.target||t.srcElement;if(h){var o=Array.from(n.$pagination.querySelectorAll("span"));b=o.indexOf(a),-1!=b&&(p.index=b,clearInterval(m),s(n,b))}})},createImg:function(e,n){function t(){return null!=n}null!=Object.assign&&(e=Object.assign({$cntElem:null},e));var a=e.$cntElem,o=a.offsetWidth,i=a.offsetHeight,s=document.createElement("canvas"),r=2;s.width=o*r,s.height=i*r,s.getContext("2d").scale(r,r);var l={scale:r,canvas:s,width:o,height:i,useCORS:!0};html2canvas(a,l).then(function(e){var a=e.getContext("2d");a.mozImageSmoothingEnabled=!0,a.webkitImageSmoothingEnabled=!0,a.msImageSmoothingEnabled=!0,a.imageSmoothingEnabled=!0;var o=Canvas2Image.convertToJPEG(e,e.width,e.height),i=o.src;t()&&n(i)})},PageTurningNumber:function(n){function t(e){return Math.ceil(e/n.pageSize)}function a(e){return n.page==e?"active":""}null!=Object.assign&&(n=Object.assign({obj:null,page:1,pageSize:4,count:100,php:e.truncate(0,window.location.pathname,window.location.pathname.length-5)},n)),n.page=Number(n.page),n.obj.innerHTML='棣栭〉灏鹃〉璺宠浆鍒?椤袋a class="_btnJump" href="javascript:void(0)">纭畾鍏?+t(n.count)+"椤袋/span>";var o=document.getElementsByClassName("pageNumber")[0],s=document.getElementsByClassName("_btnJump")[0],r=document.getElementsByClassName("_Incoming")[0],l="",c=1,d=t(n.count);for(c=n.page-2<=1?1:n.page-2,d=n.page+2>=d?t(n.count):n.page+2,i=c;i<=d;i++)l+=''+i+"";o.innerHTML=l,s.addEventListener("click",function(a){r.value>t(n.count)||!e.regNumber(r.value)||(window.location.href=n.php+"/"+r.value+".html")})},backTop:function(){var n=200,t=document.getElementsByTagName("body")[0],a=document.createElement("div");a.className="backTop animate _templateIcon",a.innerHTML="",t.appendChild(a),a.addEventListener("click",function(n){e.scrollToTop()}),window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;document.getElementById("scrollup");t>=n?e.addClass(a,"active"):e.removeClass(a,"active")}},scrollToTop:function(){var n=document.documentElement.scrollTop||document.body.scrollTop;n>0&&(window.requestAnimationFrame?(window.requestAnimationFrame(e.scrollToTop),window.scrollTo(0,n-n/8)):(window.scrollTo(0,n-n/8),e.scrollToTop()))},share:function(e){null!=Object.assign&&(e=Object.assign({obj:null,shareTitle:"",shareSummary:"",shareUrl:location.href,sharePic:"",shareSelect:[""]},e));var n={qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+e.shareUrl+"&title="+e.shareTitle+"&summary="+e.shareSummary+"&pics="+e.sharePic,qq:"http://connect.qq.com/widget/shareqq/index.html?url="+e.shareUrl+"&title="+e.shareTitle+"&summary="+e.shareSummary+"&pics="+e.sharePic,weibo:"http://service.weibo.com/share/share.php?url="+e.shareUrl+"&title="+e.shareTitle+"&summary="+e.shareSummary+"&pic="+e.sharePic,wechat:"javascript:void(0)"},t={wechat:"",weibo:"",qzone:"",qq:""},a=e.obj,o="";for(var i in e.shareSelect)"wechat"==e.shareSelect[i]?o+=''+t[e.shareSelect[i]]+'

寰俊鎵竴鎵細鍒嗕韩

寰俊閲岀偣鈥滃彂鐜扳€濓紝鎵竴涓婞/p>

浜岀淮鐮佷究鍙皢鏈枃鍒嗕韩鑷虫湅鍙嬪湀銆侟/p>

':o+=''+t[e.shareSelect[i]]+"";a.innerHTML=o,new QRCode(document.getElementById("qrcode"),"http://www.runoob.com"),console.log(n.qzone)},waterfall:function(e){function n(n){for(var s=[],r=(e.$ul.offsetWidth-e.border*(n-1))/n,l=(e.$ul.offsetWidth-e.border*(n-1))/n+e.border,c=0;c=768?row=2:document.body.clientWidth<768?row=1:row=e.row,n(row)}},regPhone:function(e){return reg=/^(13|15|17|18|19|14)[0-9]{9}$/,reg.test(e)},regNumber:function(e){return reg=/^[0-9]*$/,reg.test(e)},regName:function(e){return reg=/^[\u4E00-\u9FA5A-Za-z]+$/,reg.test(e)},regID:function(e){return reg=/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,reg.test(e)},regEmail:function(e){return reg=/^\w+\@+[0-9a-zA-Z]+\.(com|com.cn|edu|hk|cn|net)$/,reg.test(e)},regNull:function(e){if(""==e)return!0;var n="^[ ]+$",t=new RegExp(n);return t.test(e)},ifIDorClass:function(e){return null!=e&&(0==e.indexOf(".")?document.getElementsByClassName(e.substr(1)):0==e.indexOf("#")?document.getElementById(e.substr(1)):void 0)},hasClass:function(e,n){return e.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)"))},addClass:function(n,t){e.hasClass(n,t)||(n.className+=" "+t)},removeClass:function(n,t){if(e.hasClass(n,t)){var a=new RegExp("(\\s|^)"+t+"(\\s|$)");n.className=n.className.replace(a,"")}},toggleClass:function(n,t){e.hasClass(n,t)?e.removeClass(n,t):e.addClass(n,t)},getSearch:function(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(n);return t?decodeURIComponent(t[2]):null},userAgent:function(e){return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)?"Mobile":"pc"},CountdownNumber:function(e){var n={Conversion:[],Remaining:[]},t=0,a=Math.floor((new Date).getTime()/1e3),o=0,i=0,s=0,r=0;t=e-a,o=Math.floor(t/86400),i=Math.floor(t/3600)-24*o,s=Math.floor(t/60)-24*o*60-60*i,r=Math.floor(t)-24*o*60*60-60*i*60-60*s,i<=9&&(i="0"+i),s<=9&&(s="0"+s),r<=9&&(r="0"+r);var l=new Date(1e3*e);return n.Conversion.Year=l.getFullYear(),n.Conversion.Month=l.getMonth(),n.Conversion.Date=l.getDate(),n.Conversion.Hours=l.getHours(),n.Conversion.Minutes=l.getMinutes(),n.Remaining.day=o,n.Remaining.Hours=i,n.Remaining.Minutes=s,n.Remaining.second=r,n},truncate:function(e,n,t){return n.length>t&&(n=n.substring(e,t)),n},inputShakeIos:function(e){document.body.addEventListener("focusin",function(){isReset=!1}),document.body.addEventListener("focusout",function(){isReset=!0,setTimeout(function(){isReset&&window.scroll(0,0)},300)})},inputShakeAndroid:function(e){window.onresize=function(){var e=document.documentElement.clientHeight||document.body.clientHeight;e