/*! layer mobile-v2.0.0 web弹层组件 mit license http://layer.layui.com/mobile by 贤心 */ ;!function(e){"use strict";var t=document,n="queryselectorall",i="getelementsbyclassname",a=function(e){return t[n](e)},s={type:0,shade:!0,shadeclose:!0,fixed:!0,anim:"scale"},l={extend:function(e){var t=json.parse(json.stringify(s));for(var n in e)t[n]=e[n];return t},timer:{},end:{}};l.touch=function(e,t){e.addeventlistener("click",function(e){t.call(this,e)},!1)};var r=0,o=["layui-m-layer"],c=function(e){var t=this;t.config=l.extend(e),t.view()};c.prototype.view=function(){var e=this,n=e.config,s=t.createelement("div");e.id=s.id=o[0]+r,s.setattribute("class",o[0]+" "+o[0]+(n.type||0)),s.setattribute("index",r);var l=function(){var e="object"==typeof n.title;return n.title?'

'+(e?n.title[0]:n.title)+"

":""}(),c=function(){"string"==typeof n.btn&&(n.btn=[n.btn]);var e,t=(n.btn||[]).length;return 0!==t&&n.btn?(e=''+n.btn[0]+"",2===t&&(e=''+n.btn[1]+""+e),'
'+e+"
"):""}();if(n.fixed||(n.top=n.hasownproperty("top")?n.top:100,n.style=n.style||"",n.style+=" top:"+(t.body.scrolltop+n.top)+"px"),2===n.type&&(n.content='

'+(n.content||"")+"

"),n.skin&&(n.anim="up"),"msg"===n.skin&&(n.shade=!1),s.innerhtml=(n.shade?"
':"")+'
"+l+'
'+n.content+"
"+c+"
",!n.type||2===n.type){var d=t[i](o[0]+n.type),y=d.length;y>=1&&layer.close(d[0].getattribute("index"))}document.body.appendchild(s);var u=e.elem=a("#"+e.id)[0];n.success&&n.success(u),e.index=r++,e.action(n,u)},c.prototype.action=function(e,t){var n=this;e.time&&(l.timer[n.index]=settimeout(function(){layer.close(n.index)},1e3*e.time));var a=function(){var t=this.getattribute("type");0==t?(e.no&&e.no(),layer.close(n.index)):e.yes?e.yes(n.index):layer.close(n.index)};if(e.btn)for(var s=t[i]("layui-m-layerbtn")[0].children,r=s.length,o=0;o