/*! layer-v3.5.1 Web 閫氱敤寮瑰嚭灞傜粍浠 MIT License */ !function(i,d){var e=i.layui&&layui.define,f,h,j={getPath:function(){var m=document.currentScript?document.currentScript.src:function(){var p=document.scripts,o=p.length-1,q;for(var n=o;n>0;n--){if(p[n].readyState==="interactive"){q=p[n].src;break}}return q||p[o].src}(),l=i.LAYUI_GLOBAL||{};return l.layer_dir||m.substring(0,m.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(n,l){var m=n.currentStyle?n.currentStyle:i.getComputedStyle(n,null);return m[m.getPropertyValue?"getPropertyValue":"getAttribute"](l)},link:function(l,t,m){if(!g.path){return}var u=document.getElementsByTagName("head")[0],s=document.createElement("link");if(typeof t==="string"){m=t}var o=(m||l).replace(/\.|\//g,"");var n="layuicss-"+o,p="creating",r=0;s.rel="stylesheet";s.href=g.path+l;s.id=n;if(!document.getElementById(n)){u.appendChild(s)}if(typeof t!=="function"){return}(function q(v){var w=100,x=document.getElementById(n);if(++r>10*1000/w){return i.console&&console.error(o+".css: Invalid")}if(parseInt(j.getStyle(x,"width"))===1989){if(v===p){x.removeAttribute("lay-status")}x.getAttribute("lay-status")===p?setTimeout(q,w):t()}else{x.setAttribute("lay-status",p);setTimeout(function(){q(p)},w)}}())}};var g={v:"3.5.1",ie:function(){var l=navigator.userAgent.toLowerCase();return(!!i.ActiveXObject||"ActiveXObject" in i)?((l.match(/msie\s(\d+)/)||[])[1]||"11"):false}(),index:(i.layer&&i.layer.v)?100000:0,path:j.getPath,config:function(l,m){l=l||{};g.cache=j.config=f.extend({},j.config,l);g.path=j.config.path||g.path;typeof l.extend==="string"&&(l.extend=[l.extend]);if(j.config.path){g.ready()}if(!l.extend){return this}e?layui.addcss("modules/layer/"+l.extend):j.link("theme/"+l.extend);return this},ready:function(o){var m="layer",l="",n=(e?"modules/layer/":"theme/")+"default/layer.css?v="+g.v+l;e?layui.addcss(n,o,m):j.link(n,o,m);return this},alert:function(n,l,o){var m=typeof l==="function";if(m){o=l}return g.open(f.extend({content:n,yes:o},m?{}:l))},confirm:function(o,l,p,n){var m=typeof l==="function";if(m){n=p;p=l}return g.open(f.extend({content:o,btn:j.btn,yes:p,btn2:n},m?{}:l))},msg:function(o,m,l){var n=typeof m==="function",r=j.config.skin;var q=(r?r+" "+r+"-msg":"")||"layui-layer-msg";var p=c.anim.length-1;if(n){l=m}return g.open(f.extend({content:o,time:3000,shade:false,skin:q,title:false,closeBtn:false,btn:false,resize:false,end:l},(n&&!j.config.skin)?{skin:q+" layui-layer-hui",anim:p}:function(){m=m||{};if(m.icon===-1||m.icon===d&&!j.config.skin){m.skin=q+" "+(m.skin||"layui-layer-hui")}return m}()))},load:function(m,l){return g.open(f.extend({type:3,icon:m||0,resize:false,shade:0.01},l))},tips:function(n,l,m){return g.open(f.extend({type:4,content:[n,l],closeBtn:false,time:3000,shade:false,resize:false,fixed:false,maxWidth:260},m))}};var b=function(m){var n=this,l=function(){n.creat()};n.index=++g.index;n.config.maxWidth=f(h).width()-15*2;n.config=f.extend({},n.config,j.config,m);document.body?l():setTimeout(function(){l()},30)};b.pt=b.prototype;var c=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];c.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"];c.SHADE="layui-layer-shade";c.MOVE="layui-layer-move";b.pt.config={type:0,shade:0.3,fixed:true,move:c[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:true,minStack:true,icon:-1,moveType:1,resize:true,scrollbar:true,tips:2};b.pt.vessel=function(p,t){var q=this,l=q.index,o=q.config;var s=o.zIndex+l,n=typeof o.title==="object";var r=o.maxmin&&(o.type===1||o.type===2);var m=(o.title?'
'+(n?o.title[0]:o.title)+"
":"");o.zIndex=s;t([o.shade?('
'):"",'
'+(p&&o.type!=2?"":m)+'
'+(o.type==0&&o.icon!==-1?'':"")+(o.type==1&&p?"":(o.content||""))+"
"+''+function(){var u=r?'':"";o.closeBtn&&(u+='');return u}()+""+(o.btn?function(){var w="";typeof o.btn==="string"&&(o.btn=[o.btn]);for(var v=0,u=o.btn.length;v'+o.btn[v]+""}return'
'+w+"
"}():"")+(o.resize?'':"")+"
"],m,f('
'));return q};b.pt.creat=function(){var o=this,m=o.config,r=o.index,s,n=m.content,q=typeof n==="object",l=f("body");if(m.id&&f("#"+m.id)[0]){return}if(typeof m.area==="string"){m.area=m.area==="auto"?["",""]:[m.area,""]}if(m.shift){m.anim=m.shift}if(g.ie==6){m.fixed=false}switch(m.type){case 0:m.btn=("btn" in m)?m.btn:j.btn[0];g.closeAll("dialog");break;case 2:var n=m.content=q?m.content:[m.content||"","auto"];m.content='';break;case 3:delete m.title;delete m.closeBtn;m.icon===-1&&(m.icon===0);g.closeAll("loading");break;case 4:q||(m.content=[m.content,"body"]);m.follow=m.content[1];m.content=m.content[0]+'';delete m.title;m.tips=typeof m.tips==="object"?m.tips:[m.tips,true];m.tipsMore||g.closeAll("tips");break}o.vessel(q,function(u,t,v){l.append(u[0]);q?function(){(m.type==2||m.type==4)?function(){f("body").append(u[1])}():function(){if(!n.parents("."+c[0])[0]){n.data("display",n.css("display")).show().addClass("layui-layer-wrap").wrap(u[1]);f("#"+c[0]+r).find("."+c[5]).before(t)}}()}():l.append(u[1]);f("#"+c.MOVE)[0]||l.append(j.moveElem=v);o.layero=f("#"+c[0]+r);o.shadeo=f("#"+c.SHADE+r);m.scrollbar||c.html.css("overflow","hidden").attr("layer-full",r)}).auto(r);o.shadeo.css({"background-color":m.shade[1]||"#000","opacity":m.shade[0]||m.shade});m.type==2&&g.ie==6&&o.layero.find("iframe").attr("src",n[0]);m.type==4?o.tips():function(){o.offset();parseInt(j.getStyle(document.getElementById(c.MOVE),"z-index"))||function(){o.layero.css("visibility","hidden");g.ready(function(){o.offset();o.layero.css("visibility","visible")})}()}();if(m.fixed){h.on("resize",function(){o.offset();(/^\d+%$/.test(m.area[0])||/^\d+%$/.test(m.area[1]))&&o.auto(r);m.type==4&&o.tips()})}m.time<=0||setTimeout(function(){g.close(o.index)},m.time);o.move().callback();if(c.anim[m.anim]){var p="layer-anim "+c.anim[m.anim];o.layero.addClass(p).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){f(this).removeClass(p)})}if(m.isOutAnim){o.layero.data("isOutAnim",true)}};b.pt.auto=function(p){var r=this,o=r.config,n=f("#"+c[0]+p);if(o.area[0]===""&&o.maxWidth>0){if(g.ie&&g.ie<8&&o.btn){n.width(n.innerWidth())}n.outerWidth()>o.maxWidth&&n.width(o.maxWidth)}var q=[n.innerWidth(),n.innerHeight()],s=n.find(c[1]).outerHeight()||0,m=n.find("."+c[6]).outerHeight()||0,l=function(t){t=n.find(t);t.height(q[1]-s-m-2*(parseFloat(t.css("padding-top"))|0))};switch(o.type){case 2:l("iframe");break;default:if(o.area[1]===""){if(o.maxHeight>0&&n.outerHeight()>o.maxHeight){q[1]=o.maxHeight;l("."+c[5])}else{if(o.fixed&&q[1]>=h.height()){q[1]=h.height();l("."+c[5])}}}else{l("."+c[5])}break}return r};b.pt.offset=function(){var p=this,m=p.config,l=p.layero;var o=[l.outerWidth(),l.outerHeight()];var n=typeof m.offset==="object";p.offsetTop=(h.height()-o[1])/2;p.offsetLeft=(h.width()-o[0])/2;if(n){p.offsetTop=m.offset[0];p.offsetLeft=m.offset[1]||p.offsetLeft}else{if(m.offset!=="auto"){if(m.offset==="t"){p.offsetTop=0}else{if(m.offset==="r"){p.offsetLeft=h.width()-o[0]}else{if(m.offset==="b"){p.offsetTop=h.height()-o[1]}else{if(m.offset==="l"){p.offsetLeft=0}else{if(m.offset==="lt"){p.offsetTop=0;p.offsetLeft=0}else{if(m.offset==="lb"){p.offsetTop=h.height()-o[1];p.offsetLeft=0}else{if(m.offset==="rt"){p.offsetTop=0;p.offsetLeft=h.width()-o[0]}else{if(m.offset==="rb"){p.offsetTop=h.height()-o[1];p.offsetLeft=h.width()-o[0]}else{p.offsetTop=m.offset}}}}}}}}}}if(!m.fixed){p.offsetTop=/%$/.test(p.offsetTop)?h.height()*parseFloat(p.offsetTop)/100:parseFloat(p.offsetTop);p.offsetLeft=/%$/.test(p.offsetLeft)?h.width()*parseFloat(p.offsetLeft)/100:parseFloat(p.offsetLeft);p.offsetTop+=h.scrollTop();p.offsetLeft+=h.scrollLeft()}if(l.attr("minLeft")){p.offsetTop=h.height()-(l.find(c[1]).outerHeight()||0);p.offsetLeft=l.css("left")}l.css({top:p.offsetTop,left:p.offsetLeft})};b.pt.tips=function(){var s=this,r=s.config,n=s.layero;var q=[n.outerWidth(),n.outerHeight()],m=f(r.follow);if(!m[0]){m=f("body")}var p={width:m.outerWidth(),height:m.outerHeight(),top:m.offset().top,left:m.offset().left},o=n.find(".layui-layer-TipsG");var l=r.tips[0];r.tips[1]||o.remove();p.autoLeft=function(){if(p.left+q[0]-h.width()>0){p.tipLeft=p.left+p.width-q[0];o.css({right:12,left:"auto"})}else{p.tipLeft=p.left}};p.where=[function(){p.autoLeft();p.tipTop=p.top-q[1]-10;o.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",r.tips[1])},function(){p.tipLeft=p.left+p.width+10;p.tipTop=p.top;o.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",r.tips[1])},function(){p.autoLeft();p.tipTop=p.top+p.height+10;o.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",r.tips[1])},function(){p.tipLeft=p.left-q[0]-10;p.tipTop=p.top;o.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",r.tips[1])}];p.where[l-1]();if(l===1){p.top-(h.scrollTop()+q[1]+8*2)<0&&p.where[2]()}else{if(l===2){h.width()-(p.left+p.width+q[0]+8*2)>0||p.where[3]()}else{if(l===3){(p.top-h.scrollTop()+p.height+q[1]+8*2)-h.height()>0&&p.where[0]()}else{if(l===4){q[0]+8*2-p.left>0&&p.where[1]()}}}}n.find("."+c[5]).css({"background-color":r.tips[1],"padding-right":(r.closeBtn?"30px":"")});n.css({left:p.tipLeft-(r.fixed?h.scrollLeft():0),top:p.tipTop-(r.fixed?h.scrollTop():0)})};b.pt.move=function(){var p=this,m=p.config,o=f(document),l=p.layero,n=l.find(m.move),q=l.find(".layui-layer-resize"),r={};if(m.move){n.css("cursor","move")}n.on("mousedown",function(s){s.preventDefault();if(m.move){r.moveStart=true;r.offset=[s.clientX-parseFloat(l.css("left")),s.clientY-parseFloat(l.css("top"))];j.moveElem.css("cursor","move").show()}});q.on("mousedown",function(s){s.preventDefault();r.resizeStart=true;r.offset=[s.clientX,s.clientY];r.area=[l.outerWidth(),l.outerHeight()];j.moveElem.css("cursor","se-resize").show()});o.on("mousemove",function(v){if(r.moveStart){var x=v.clientX-r.offset[0],w=v.clientY-r.offset[1],t=l.css("position")==="fixed";v.preventDefault();r.stX=t?0:h.scrollLeft();r.stY=t?0:h.scrollTop();if(!m.moveOut){var s=h.width()-l.outerWidth()+r.stX,u=h.height()-l.outerHeight()+r.stY;xs&&(x=s);wu&&(w=u)}l.css({left:x,top:w})}if(m.resize&&r.resizeStart){var x=v.clientX-r.offset[0],w=v.clientY-r.offset[1];v.preventDefault();g.style(p.index,{width:r.area[0]+x,height:r.area[1]+w});r.isResize=true;m.resizing&&m.resizing(l)}}).on("mouseup",function(s){if(r.moveStart){delete r.moveStart;j.moveElem.hide();m.moveEnd&&m.moveEnd(l)}if(r.resizeStart){delete r.resizeStart;j.moveElem.hide()}});return p};b.pt.callback=function(){var o=this,l=o.layero,m=o.config;o.openLayer();if(m.success){if(m.type==2){l.find("iframe").on("load",function(){m.success(l,o.index)})}else{m.success(l,o.index)}}g.ie==6&&o.IE6(l);l.find("."+c[6]).children("a").on("click",function(){var p=f(this).index();if(p===0){if(m.yes){m.yes(o.index,l)}else{if(m["btn1"]){m["btn1"](o.index,l)}else{g.close(o.index)}}}else{var q=m["btn"+(p+1)]&&m["btn"+(p+1)](o.index,l);q===false||g.close(o.index)}});function n(){var p=m.cancel&&m.cancel(o.index,l);p===false||g.close(o.index)}l.find("."+c[7]).on("click",n);if(m.shadeClose){o.shadeo.on("click",function(){g.close(o.index)})}l.find(".layui-layer-min").on("click",function(){var p=m.min&&m.min(l,o.index);p===false||g.min(o.index,m)});l.find(".layui-layer-max").on("click",function(){if(f(this).hasClass("layui-layer-maxmin")){g.restore(o.index);m.restore&&m.restore(l,o.index)}else{g.full(o.index,m);setTimeout(function(){m.full&&m.full(l,o.index)},100)}});m.end&&(j.end[o.index]=m.end)};j.reselect=function(){f.each(f("select"),function(l,m){var n=f(this);if(!n.parents("."+c[0])[0]){(n.attr("layer")==1&&f("."+c[0]).length<1)&&n.removeAttr("layer").show()}n=null})};b.pt.IE6=function(l){f("select").each(function(m,n){var o=f(this);if(!o.parents("."+c[0])[0]){o.css("display")==="none"||o.attr({"layer":"1"}).hide()}o=null})};b.pt.openLayer=function(){var l=this;g.zIndex=l.config.zIndex;g.setTop=function(m){var n=function(){g.zIndex++;m.css("z-index",g.zIndex+1)};g.zIndex=parseInt(m[0].style.zIndex);m.on("mousedown",n);return g.zIndex}};j.record=function(l){var m=[l.width(),l.height(),l.position().top,l.position().left+parseFloat(l.css("margin-left"))];l.find(".layui-layer-max").addClass("layui-layer-maxmin");l.attr({area:m})};j.rescollbar=function(l){if(c.html.attr("layer-full")==l){if(c.html[0].style.removeProperty){c.html[0].style.removeProperty("overflow")}else{c.html[0].style.removeAttribute("overflow")}c.html.removeAttr("layer-full")}};i.layer=g;g.getChildFrame=function(l,m){m=m||f("."+c[4]).attr("times");return f("#"+c[0]+m).find("iframe").contents().find(l)};g.getFrameIndex=function(l){return f("#"+l).parents("."+c[4]).attr("times")};g.iframeAuto=function(o){if(!o){return}var n=g.getChildFrame("html",o).outerHeight();var m=f("#"+c[0]+o);var p=m.find(c[1]).outerHeight()||0;var l=m.find("."+c[6]).outerHeight()||0;m.css({height:n+p+l});m.find("iframe").css({height:n})};g.iframeSrc=function(m,l){f("#"+c[0]+m).find("iframe").attr("src",l)};g.style=function(p,t,m){var q=f("#"+c[0]+p),r=q.find(".layui-layer-content"),s=q.attr("type"),l=q.find(c[1]).outerHeight()||0,o=q.find("."+c[6]).outerHeight()||0,n=q.attr("minLeft");if(s===j.type[3]||s===j.type[4]){return}if(!m){if(parseFloat(t.width)<=260){t.width=260}if(parseFloat(t.height)-l-o<=64){t.height=64+l+o}}q.css(t);o=q.find("."+c[6]).outerHeight();if(s===j.type[2]){q.find("iframe").css({height:parseFloat(t.height)-l-o})}else{r.css({height:parseFloat(t.height)-l-o-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))})}};g.min=function(o,n){n=n||{};var m=f("#"+c[0]+o),s=f("#"+c.SHADE+o),r=m.find(c[1]).outerHeight()||0,q=m.attr("minLeft")||(181*j.minIndex)+"px",l=m.css("position"),p={width:180,height:r,position:"fixed",overflow:"hidden"};j.record(m);if(j.minLeft[0]){q=j.minLeft[0];j.minLeft.shift()}if(n.minStack){p.left=q;p.top=h.height()-r;m.attr("minLeft")||j.minIndex++;m.attr("minLeft",q)}m.attr("position",l);g.style(o,p,true);m.find(".layui-layer-min").hide();m.attr("type")==="page"&&m.find(c[4]).hide();j.rescollbar(o);s.hide()};g.restore=function(m){var l=f("#"+c[0]+m),p=f("#"+c.SHADE+m),o=l.attr("area").split(","),n=l.attr("type");g.style(m,{width:parseFloat(o[0]),height:parseFloat(o[1]),top:parseFloat(o[2]),left:parseFloat(o[3]),position:l.attr("position"),overflow:"visible"},true);l.find(".layui-layer-max").removeClass("layui-layer-maxmin");l.find(".layui-layer-min").show();l.attr("type")==="page"&&l.find(c[4]).show();j.rescollbar(m);p.show()};g.full=function(m){var l=f("#"+c[0]+m),n;j.record(l);if(!c.html.attr("layer-full")){c.html.css("overflow","hidden").attr("layer-full",m)}clearTimeout(n);n=setTimeout(function(){var o=l.css("position")==="fixed";g.style(m,{top:o?0:h.scrollTop(),left:o?0:h.scrollLeft(),width:h.width(),height:h.height()},true);l.find(".layui-layer-min").hide()},100)};g.title=function(m,l){var n=f("#"+c[0]+(l||g.index)).find(c[1]);n.html(m)};g.close=function(n,r){var m=f("#"+c[0]+n),o=m.attr("type"),p="layer-anim-close";if(!m[0]){return}var q="layui-layer-wrap",l=function(){if(o===j.type[1]&&m.attr("conType")==="object"){m.children(":not(."+c[5]+")").remove();var u=m.find("."+q);for(var s=0;s<2;s++){u.unwrap()}u.css("display",u.data("display")).removeClass(q)}else{if(o===j.type[2]){try{var t=f("#"+c[4]+n)[0];t.contentWindow.document.write("");t.contentWindow.close();m.find("."+c[5])[0].removeChild(t)}catch(v){}}m[0].innerHTML="";m.remove()}typeof j.end[n]==="function"&&j.end[n]();delete j.end[n];typeof r==="function"&&r()};if(m.data("isOutAnim")){m.addClass("layer-anim "+p)}f("#layui-layer-moves, #"+c.SHADE+n).remove();g.ie==6&&j.reselect();j.rescollbar(n);if(m.attr("minLeft")){j.minIndex--;j.minLeft.push(m.attr("minLeft"))}if((g.ie&&g.ie<10)||!m.data("isOutAnim")){l()}else{setTimeout(function(){l()},200)}};g.closeAll=function(m,n){if(typeof m==="function"){n=m;m=null}var l=f("."+c[0]);f.each(l,function(q){var p=f(this);var o=m?(p.attr("type")===m):1;o&&g.close(p.attr("times"),q===l.length-1?n:null);o=null});if(l.length===0){typeof n==="function"&&n()}};var a=g.cache||{},k=function(l){return(a.skin?(" "+a.skin+" "+a.skin+"-"+l):"")};g.prompt=function(m,r){var n="";m=m||{};if(typeof m==="function"){r=m}if(m.area){var p=m.area;n='style="width: '+p[0]+"; height: "+p[1]+';"';delete m.area}var l,o=m.formType==2?'":function(){return''}();var q=m.success;delete m.success;return g.open(f.extend({type:1,btn:["确定","取消"],content:o,skin:"layui-layer-prompt"+k("prompt"),maxWidth:h.width(),success:function(s){l=s.find(".layui-layer-input");l.val(m.value||"").focus();typeof q==="function"&&q(s)},resize:false,yes:function(s){var t=l.val();if(t===""){l.focus()}else{if(t.length>(m.maxlength||500)){g.tips("最多输入"+(m.maxlength||500)+"个字数",l,{tips:1})}else{r&&r(t,s,l)}}}},m))};g.tab=function(l){l=l||{};var m=l.tab||{},n="layui-this",o=l.success;delete l.success;return g.open(f.extend({type:1,skin:"layui-layer-tab"+k("tab"),resize:false,title:function(){var p=m.length,q=1,r="";if(p>0){r=''+m[0].title+"";for(;q"+m[q].title+""}}return r}(),content:'
    '+function(){var p=m.length,q=1,r="";if(p>0){r='
  • '+(m[0].content||"no content")+"
  • ";for(;q'+(m[q].content||"no content")+""}}return r}()+"
",success:function(q){var r=q.find(".layui-layer-title").children();var p=q.find(".layui-layer-tabmain").children();r.on("mousedown",function(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=true;var t=f(this),s=t.index();t.addClass(n).siblings().removeClass(n);p.eq(s).show().siblings().hide();typeof l.change==="function"&&l.change(s)});typeof o==="function"&&o(q)}},l))};g.photos=function(w,q,s){var n={};w=w||{};if(!w.photos){return}var v=!(typeof w.photos==="string"||w.photos instanceof f),u=v?w.photos:{},p=u.data||[],m=u.start||0;n.imgIndex=(m|0)+1;w.img=w.img||"img";var t=w.success;delete w.success;if(!v){var r=f(w.photos),o=function(){p=[];r.find(w.img).each(function(x){var y=f(this);y.attr("layer-index",x);p.push({alt:y.attr("alt"),pid:y.attr("layer-pid"),src:y.attr("layer-src")||y.attr("src"),thumb:y.attr("src")})})};o();if(p.length===0){return}q||r.on("click",w.img,function(){o();var y=f(this),x=y.attr("layer-index");g.photos(f.extend(w,{photos:{start:x,data:p,tab:w.tab},full:w.full}),true)});if(!q){return}}else{if(p.length===0){return g.msg("没有图片")}}n.imgprev=function(x){n.imgIndex--;if(n.imgIndex<1){n.imgIndex=p.length}n.tabimg(x)};n.imgnext=function(x,y){n.imgIndex++;if(n.imgIndex>p.length){n.imgIndex=1;if(y){return}}n.tabimg(x)};n.keyup=function(y){if(!n.end){var x=y.keyCode;y.preventDefault();if(x===37){n.imgprev(true)}else{if(x===39){n.imgnext(true)}else{if(x===27){g.close(n.index)}}}}};n.tabimg=function(x){if(p.length<=1){return}u.start=n.imgIndex-1;g.close(n.index);return g.photos(w,true,x);setTimeout(function(){g.photos(w,true,x)},200)};n.event=function(){n.bigimg.find(".layui-layer-imgprev").on("click",function(x){x.preventDefault();n.imgprev(true)});n.bigimg.find(".layui-layer-imgnext").on("click",function(x){x.preventDefault();n.imgnext(true)});f(document).on("keyup",n.keyup)};function l(z,A,y){var x=new Image();x.src=z;if(x.complete){return A(x)}x.onload=function(){x.onload=null;A(x)};x.onerror=function(B){x.onerror=null;y(B)}}n.loadi=g.load(1,{shade:"shade" in w?false:0.9,scrollbar:false});l(p[m].src,function(x){g.close(n.loadi);if(s){w.anim=-1}n.index=g.open(f.extend({type:1,id:"layui-layer-photos",area:function(){var A=[x.width,x.height];var z=[f(i).width()-100,f(i).height()-100];if(!w.full&&(A[0]>z[0]||A[1]>z[1])){var y=[A[0]/z[0],A[1]/z[1]];if(y[0]>y[1]){A[0]=A[0]/y[0];A[1]=A[1]/y[0]}else{if(y[0]'+''+(p[m].alt||'+function(){if(p.length>1){return'
'+''+'
'+(p[m].alt||"")+""+n.imgIndex+" / "+p.length+"
"+"
"}return""}()+"",success:function(y,z){n.bigimg=y.find(".layui-layer-phimg");n.imgsee=y.find(".layui-layer-imgbar");n.event(y);w.tab&&w.tab(p[m],y);typeof t==="function"&&t(y)},end:function(){n.end=true;f(document).off("keyup",n.keyup)}},w))},function(){g.close(n.loadi);g.msg("当前图片地址异常
是否继续查看下一张?",{time:30000,btn:["下一张","不看了"],yes:function(){p.length>1&&n.imgnext(true,true)}})})};j.run=function(l){f=l;h=f(i);c.html=f("html");g.open=function(n){var m=new b(n);return m.index}};i.layui&&layui.define?(g.ready(),layui.define("jquery",function(l){g.path=layui.cache.dir;j.run(layui.$);i.layer=g;l("layer",g)})):((typeof define==="function"&&define.amd)?define(["jquery"],function(){j.run(i.jQuery);return g}):function(){g.ready();j.run(i.jQuery)}())}(window);