").append(this[0]).html()},focusEnd:function(){if(this.length>0&&this[0].nodeType){d.EL.focusEnd(this[0])}return this},select:function(){if(this.length>0&&this[0].nodeType){this[0].select()}return this},selection:function(){return(this.length>0)?d.EL.selection(this[0]):""},isSelection:function(){return d.V.isNotEmpty(this.selection())},offsetParent:function(){if(this.length==0||!this[0].nodeType){return null}return d(this[0].offsetParent)},offsetWidth:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.offsetWidth(this[0])}else{return this[0].offsetWidth}},offsetHeight:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.offsetHeight(this[0])}else{return this[0].offsetHeight}},offsetLeft:function(){if(this.length==0||!this[0].nodeType){return 0}return d.EL.offsetLeft(this[0])},offsetTop:function(){if(this.length==0||!this[0].nodeType){return 0}return d.EL.offsetTop(this[0])},offsetLeftBody:function(){if(this.length==0||!this[0].nodeType||this[0].nodeType===9){return 0}return d.EL.offsetLeftBody(this[0])},offsetTopBody:function(){if(this.length==0||!this[0].nodeType||this[0].nodeType===9){return 0}return d.EL.offsetTopBody(this[0])},clientWidth:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.clientWidth(this[0])}else{return this[0].clientWidth}},clientHeight:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.clientHeight(this[0])}else{return this[0].clientHeight}},clientLeft:function(){if(this.length==0||!this[0].nodeType){return 0}return this[0].clientLeft},clientTop:function(){if(this.length==0||!this[0].nodeType){return 0}return this[0].clientHeight},clientX:function(){if(this.length==0||!this[0].nodeType){return 0}return this.offsetLeftBody()-(d.body().scrollLeft+document.documentElement.scrollLeft)},clientY:function(){if(this.length==0||!this[0].nodeType){return 0}return this.offsetTopBody()-(d.body().scrollTop+document.documentElement.scrollTop)},scrollIntoView:function(f,g){if(this.length==0||!this[0].nodeType){return this}this[0].scrollIntoView(f);if(g){window.scrollTo(d.D.scrollLeft(),d.D.scrollTop()+g)}},animate:function(q,k,h){if(this.length==0||!this[0].nodeType){return this}if(!q||!d.T.isPlainObject(q)){return this}k=(!d.T.isNumber(k)||k<13)?200:k;var g=Math.ceil(k/13);var n=[],p=[],o=[],m=[],j=0;for(var f in q){var l=j++;n[l]=f;if(f in this[0]){p[l]=d.S.prefixNum(this[0][f])}else{p[l]=d.EL.cssNum(this[0],f)}o[l]=+d.S.prefixNum(q[f]);m[l]=(o[l]-p[l])/g}d.timer(13,g,this,function(){for(var i=0;i
0&&h.length>0&&this[0].nodeType){var g=(this[0].nodeType===9)?d("body"):this;d.EL[f].call(null,g[0],h[0])}return this}});var e=["appendTo","prependTo","insertBefore","insertAfter"];d.each(e,function(g,f){d.Q.fn[g]=function(i){if(!(i instanceof d.Query)){i=d(i)}if(this.length>0&&i.length>0&&i[0].nodeType){var h=(i[0].nodeType===9)?d("body"):i;d.EL[c[f]].call(null,h[0],this[0])}return this}});var b=["keydown","keypress","keyup","click","dblclick","change","blur","focusin","focusout","focus","input","mouseenter","mouseleave","mouseover","mouseout","mouseup","mousedown","mousemove","resize","scroll","load","unload","beforeunload"];d.each(b,function(f){d.Q.fn[f]=function(h,g){if(arguments.length>0){return this.on(f,h,g)}this.each(function(i){if(i[f]){i[f]()}});return this};d.Q.fn["off"+f]=function(h,g){return this.off(f,h,g)}})})(zhiqim);+(function(a){a.MD5=a.Class.newInstance();a.MD5.V=[1732584193,-271733879,-1732584194,271733878];a.MD5.S=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21];a.MD5.T=[3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745];a.MD5.PAD=128;a.MD5.prototype={defaults:{abcd:a.MD5.V},digest:function(e){var g;var f=Math.floor((e.length+8)/64)+1;var h=f*64-8-e.length-1;var d=new Int8Array(64*f);for(g=0;g>>(32-i));return this.add(g,f)},ff:function(g,f,k,j,e,i,h){return this.cc(this.f(f,k,j),g,f,k,j,e,i,h)},gg:function(g,f,k,j,e,i,h){return this.cc(this.g(f,k,j),g,f,k,j,e,i,h)},hh:function(g,f,k,j,e,i,h){return this.cc(this.h(f,k,j),g,f,k,j,e,i,h)},ii:function(g,f,k,j,e,i,h){return this.cc(this.i(f,k,j),g,f,k,j,e,i,h)},f:function(b,d,c){return(b&d)|((~b)&c)},g:function(b,d,c){return(b&c)|(d&(~c))},h:function(b,d,c){return b^d^c},i:function(b,d,c){return d^(b|(~c))},getInt:function(c,d){return((c[d+0]&255)<<0)+((c[d+1]&255)<<8)+((c[d+2]&255)<<16)+((c[d+3]&255)<<24)},putInt:function(c,e,d){c[e+0]=(d>>>0);c[e+1]=(d>>>8);c[e+2]=(d>>>16);c[e+3]=(d>>>24)},add:function(b,e){var d=(b&65535)+(e&65535);var c=(b>>16)+(e>>16)+(d>>16);return(c<<16)|(d&65535)},slice:function(d,h,e){var c=e-h,f=0;var b=new Int32Array(c);for(var g=h;g5||Math.abs(e)>5){this.$elem.attr("data-touchMoved",1)}},onTouchend:function(b){if(this.$elem.attr("data-touchMoved")=="1"){b.stopImmediatePropagation();return false}this.endEvent(b)},getAttributeTouchend:function(){},removeAttributeTouchend:function(){if("hasAttribute" in this.$elem[0]&&this.$elem[0].hasAttribute("ontouchend")){this.$elem.removeAttr("ontouchend")}},};a.ResetTouchEnd.resetAdd=function(){a.E.add=a.Event.add=function(e,b,c,d){if(b=="touchend"){c=d?a.bind(c,d):a.bind(c,e);new a.ResetTouchEnd({elem:e,endEvent:c});return}c=d?a.bind(c,d):c;if(e.addEventListener){e.addEventListener(b,c,false)}else{if(e.attachEvent){e.attachEvent("on"+b,c)}else{e["on"+b]=c}}}};a.ResetTouchEnd.load=function(b){a.$selector("[ontouchend]",b).each(function(d){var e;if("ontouchend" in d){e=d.ontouchend}else{e=d.getAttributeNode("ontouchend")}if(typeof e=="string"){return}var c=function(){e.apply(d,arguments)};new a.ResetTouchEnd({elem:d,endEvent:c})})};a.onload(function(){a.ResetTouchEnd.load();a.ResetTouchEnd.resetAdd()})})(zhiqim);+(function(a){a.Dialog=a.Class.newInstance();a.Dialog.v="1.4.0";a.Dialog.cache=new a.HashMap();a.Dialog.close=function(d,b){d=d?((d.charAt(0)=="#")?d.substring(1):d):d;if(!d){a.each(a.Dialog.cache.values(),function(e){e.remove(b)});a.Dialog.cache.clear()}else{var c=a.Dialog.cache.get(d);if(c){c.remove(b);a.Dialog.cache.remove(d)}}};a.Dialog.get=function(b){b=b?((b.charAt(0)=="#")?b.substring(1):b):b;return a.Dialog.cache.get(b)};a.Dialog.prototype={defaults:{id:null,title:"提示",borderColor:"#ccc",timeout:0,callback:null,text:null,url:null,hasTitle:true,titleBgColor:"#ffffff",shadow:true,shadowColor:"#555555",shadowOpacity:0.6,status:0},init:function(){if(!this.id){this.id=a.random(10)}},validate:function(){if(a.D.has("Z_Dialog_"+this.id)){alert("[Z.Dialog]您传入了相同的窗口ID,如无必须可以不传入由系统随机生成");return false}if(!this.text){alert("[Z.Dialog]您需传入的text参数值");return false}return true},execute:function(){if(!this.validate()){return}var b='';var e=''+this.title+"
";var d=''+(this.hasTitle?e:"")+"
";var g='';this.$dialog=a(b).appendTo("body");this.$content=a(d).appendTo(this.$dialog);this.$title=this.$content.find("h4");if(this.shadow){this.$shadow=a(g).appendTo("body");this.$shadow.fadeTo(500,this.shadowOpacity)}a.Dialog.cache.put(this.id,this);this.active=document.activeElement;if(this.active!=null&&this.active.blur){this.active.blur()}this.$content[0].insertAdjacentHTML("beforeend",this.text);this.status=1;if(a.T.isFunction(this.callback)){this.callback.call(this,this.status)}if(this.timeout>0){var c=this;var f=setTimeout(function(){c.$dialog.fadeOut(c.timeout,a.bind(c.close,c))},1000)}},close:function(b,c){if(b instanceof Event){a.E.forbidden(b)}if(this.status==0){return}a.Dialog.cache.remove(this.id);this.remove(b===true);if(a.T.isFunction(c)){c.call(this,b)}},remove:function(b){if(this.status==0){return}this.$dialog.remove();window.focus();if(this.shadow){if(b){this.$shadow.remove()}else{this.$shadow.fadeOut(500,function(){a(this).remove()})}}this.status=0;if(a.T.isFunction(this.callback)){this.callback.call(this,this.status)}},};a.dialog=function(d){var c=new a.Dialog();for(var b in d){c.set(b,d[b])}c.execute()};a.alert=function(f,g,e){var c=e&&e.type||"alert";var d=''+f+"
";d+='';var b=new a.Dialog();b.title=c=="success"?"成功":c=="failure"?"失败":"注意";b.hasTitle=false;b.text=d;b.execute();b.$content.find(".z-button-flex").on("touchstart",function(h){b.close(h,g)})};a.confirm=function(e,f,d){var c=''+e+"
";c+='';var b=new a.Dialog();b.hasBackground=d&&d.hasBackground||false;b.title="询问";b.hasTitle=false;b.text=c;b.execute();b.$content.css("overflow","hidden");b.$content.find(".z-button-row").find(".z-red-bd").focus().on("touchend",function(g){b.close(g)});b.$content.find(".z-button-row").find(".z-blue-bd").on("touchend",function(g){b.close(g,f)});throw"stop"};a.prompt=function(l,j,k,c){var d=c&&c.type=="textarea";var b=c&&c.width||a.Dialog.innerWidth();var m=c&&c.height||(d)?150:120;var e='';var f=new a.Dialog();f.fixed=true;f.hasBackground=c&&c.hasBackground||false;f.title=a.S.toString(l||"提示修改");f.text=e;f.width=b;f.height=m;f.execute();f.$dialog.css("position","fixed");f.$content.css("overflow","hidden");f.$content.find(".z-console").find(".z-cancel").click(function(){f.close()});var h=f.$content.find(".z-container").find(".z-prompt").find(d?"textarea":"input").focusEnd();function g(){f.close();if(a.T.isFunction(k)){k(h.val())}}f.$content.find(".z-console").find(".z-ok").click(g);function i(n){if(a.E.key(n)!=a.E.KEY.ENTER){return}a(document).offkeydown(i);g()}throw"stop"};a.loading=function(g){var f="正在加载...";if(a.T.isString(g)){f=g;g=null}f=g&&g.text||f;var b=g&&g.radius||"z-bd-rd5";var e='";var d='";var c=new a.Dialog();c.hasTitle=false;c.shadow=g&&g.shadow||false;c.text=d;c.execute();c.$content.addClass(b).addClass("z-flex-none");if(!c.shadow){c.$content.css("background","rgba(85,85,85,.6)")}return c};a.tips=function(c){var k="处理成功";if(a.T.isString(c)){k=c;c=null}k=c&&c.text||k;var g=c&&c.radius||"z-bd-rd5";var d=c&&c.color||"#fff";var b=c&&c.background||"#333";var f=c&&c.ico||"finish";var j=c&&c.timeout||300;var e='';switch(f){case"finish":e+='
';break;case"failure":e+='
';break;case"alert":e+='
';break;case"confirm":e+='
';break}e+="
";var h='";var i=new a.Dialog();i.hasTitle=false;i.shadow=c&&c.shadow||false;i.text=h;i.timeout=j;i.execute();i.$dialog.addClass("z-event-none");i.$content.css("overflow","hidden").addClass(g).addClass("z-flex-none").css("background",b).css("color",d);return i}})(zhiqim);+(function(a){a.Ajax=a.Class.newInstance();a.Ajax.v="1.4.0";a.Ajax.prototype={defaults:{contextPath:null,className:null,methodName:null,token:"",async:true,params:[],paramMap:new a.HashMap(),paramData:null,callback:null,callbackMethod:"htmlc",success:null,failure:null,loading:null,loadingParam:null,loadingAttr:null,loadingProcess:false,responseStatus:0,responseText:null},init:function(){if(window.ActiveXObject){try{this.httpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.httpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}}else{if(window.XMLHttpRequest){this.httpRequest=new XMLHttpRequest()}}},execute:function(){if(!this.httpRequest){a.failure("[Z.Ajax]浏览器不支持AJAX");return false}if(!this.className){a.failure("[Z.Ajax]未设置className");return false}if(!this.methodName){a.failure("[Z.Ajax]未设置methodName");return false}var b=null;try{b=window.location.pathname}catch(h){b="null"}var d=a.rootPath(this.contextPath,"/service/ajax?path="+b+"&time="+(new Date()).getTime());var c=null;if(this.paramMap.size()>0){c="";a.eachof(this,this.paramMap.keySet(),function(e){c+=e+"="+encodeURIComponent(this.paramMap.get(e))+"&"});c=c.slice(0,-1)}else{if(this.paramData){c=this.paramData}else{if(this.params.length>0){c="";a.eachof(this,this.params,function(e){e=""+e;if(e.indexOf("#")!=-1){e=e.replace(/\#/g,"-%2-%-3%-")}c+="%23"+encodeURIComponent(e)+"%23"})}}}if(this.async){this.httpRequest.onreadystatechange=a.bind(this.receive,this)}this.httpRequest.open("POST",d,this.async);this.httpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");this.httpRequest.setRequestHeader("X-RMI-Class",this.className);this.httpRequest.setRequestHeader("X-RMI-Method",this.methodName);if(this.token){this.httpRequest.setRequestHeader("X-RMI-Token",this.token)}if(this.paramMap.size()>0||this.paramData){this.httpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")}else{this.httpRequest.setRequestHeader("Content-Type","text/plain; charset=UTF-8")}this.httpRequest.send(c);if(!this.async){this.processResult();return}if(!this.loading||(a.Dialog&&this.loading instanceof a.Dialog)){return}if(a.T.isFunction(this.loading)){this.loading.call(this)}else{if(a.T.isDocument(this.loading)){this.loading=a.loading({target:document,shadow:true===this.loadingParam})}else{if(a.T.isElement(this.loading)||a.T.isString(this.loading)){if(a.T.isString(this.loadingParam)){var g=a.T.isString(this.loading)?a("#"+this.loading):a(this.loading);var f=g.html();g.html(this.loadingParam);this.loadingParam=f;if(this.loadingAttr&&this.loadingAttr.disabled===true){g.attr("disabled",true)}}else{if(a.loading){this.loading=a.loading({target:this.loading,shadow:true===this.loadingParam})}}}else{if(a.T.isObject(this.loading)&&this.loading.execute){this.loading.execute()}}}}},receive:function(){if(this.httpRequest.readyState!=4){return}if(this.loading){if(a.T.isObject(this.loading)&&this.loading.close){this.loading.close(true)}else{if((a.T.isString(this.loading)||a.T.isElement(this.loading))&&this.loading!=this.callback){this.processRecoveryLoading()}}}this.processResult()},processRecoveryLoading:function(){if(this.loadingProcess){return}var b=a.T.isString(this.loading)?a("#"+this.loading):a(this.loading);if(!(this.loadingAttr&&this.loadingAttr.recovery===false)){if(this.loadingParam){b.html(this.loadingParam)}}if(this.loadingAttr&&this.loadingAttr.disabled===true&&this.loadingAttr.recovery!==false){b.attr("disabled",false)}},processResult:function(){if(this.httpRequest.status==200){this.responseStatus=0;this.responseText=this.httpRequest.responseText}else{this.responseStatus=(this.httpRequest.status==0)?91:this.httpRequest.status;this.responseText=this.httpRequest.responseText}this.httpRequest=null;if(this.responseStatus>=601&&this.responseStatus<=603){var b;var c=this.responseText.lastIndexOf("#");if(c!=-1){b=this.responseText.substring(c+1);this.responseText=this.responseText.substring(0,c)}if(a.V.isEmpty(b)){this.processRedirect()}else{a.failure(b,a.bind(this.processRedirect,this))}throw"stop"}else{if(this.responseStatus!=0&&a.T.isFunction(this.failure)){this.failure.call(this,this.responseText,this.responseStatus)}else{if(this.responseStatus!=0&&a.T.isString(this.failure)){this.showValue(this.failure)}else{if(this.responseStatus==0&&a.T.isFunction(this.success)){this.success.call(this,this.responseText,this.responseStatus)}else{if(this.responseStatus==0&&a.T.isString(this.success)){this.showValue(this.success)}else{if(a.T.isFunction(this.callback)){this.callback.call(this,this.responseText,this.responseStatus)}else{if(a.T.isString(this.callback)){this.showValue(this.callback)}}}}}}}},showValue:function(b){if(this.callbackMethod=="val"){a("#"+b).val(this.responseText)}else{if(this.callbackMethod=="text"){a("#"+b).text(this.responseText)}else{if(this.callbackMethod=="html"){a("#"+b).html(this.responseText)}else{a("#"+b).htmlc(this.responseText)}}}},processRedirect:function(){switch(this.responseStatus){case 601:window.parent.location.href=this.responseText;break;case 602:window.location.href=this.responseText;break;case 603:window.top.location.href=this.responseText;break}},setContextPath:function(b){this.contextPath=b;return this},setClassName:function(b){this.className=b;return this},setMethodName:function(b){this.methodName=b;return this},setToken:function(b){this.token=b;return this},setSync:function(){this.async=false;return this},setCallback:function(b){this.callback=b;return this},setCallbackMethod:function(b){this.callbackMethod=b;return this},setSuccess:function(b){this.success=b;return this},setSuccessLocation:function(c,b){this.success=function(){a.L.href(c,b)}},setSuccessLocationResponse:function(c,b){this.success=function(){a.L.href(this.responseText,b)}},setSuccessReload:function(){this.success=function(){a.L.reload()}},setSuccessReloadParent:function(){this.success=function(){parent.Z.L.reload()}},setSuccessReloadTop:function(){this.success=function(){top.Z.L.reload()}},setSuccessAlertLocation:function(d,c,b){this.success=function(){a.success(d,function(){a.L.href(c,b)})}},setSuccessAlertReload:function(b){this.success=function(){a.success(b,function(){a.L.reload()})}},setSuccessAlertReloadParent:function(b){this.success=function(){a.success(b,function(){parent.Z.L.reload()})}},setSuccessAlertReloadTop:function(b){this.success=function(){a.success(b,function(){top.Z.L.reload()})}},setFailure:function(b){this.failure=b;return this},setFailureAlert:function(){this.failure=function(){a.failure(this.responseText)};return this},setFailureAlertRecovery:function(){this.failure=function(){if(this.loadingAttr){this.loadingAttr.recovery=true;this.processRecoveryLoading()}a.failure(this.responseText)};return this},addParam:function(c,b){(b==a.u)?this.params.push(c):this.paramMap.put(c,b);return this},setParamData:function(b){this.paramData=b;return this},setParamForm:function(b){this.paramData=a.FM.formData(b);return this},setLoading:function(c,d,b){this.loading=c;this.loadingParam=d;this.loadingAttr=b;return this}};a.ajax=function(b,e,d){var c=new a.Ajax();if(b){c.setClassName(b)}if(e){c.setMethodName(e)}if(d){c.setCallback(d)}return c};a.submit=function(b,h,g,c,f,d){a(c).attr("type","button");if(validateForm&&validateForm(c.form)){return}var e=a.ajax(b,h,g);e.setParamData(a.FM.formData(c.form));e.setLoading(c,f,d);e.execute()};a.log=function(b,c){a.ajax("Logs",c||"info").addParam(b).execute()}})(zhiqim);+(function(a){})(zhiqim);+(function(a){a.Input=a.Class.newInstance();a.Input.types=["Numeric","Alphabetic","AlphaNumeric","Integer","Decimal","Amount2R","Discount","Date","HourMinute"];a.Input.speTypes=["number","email"];a.Input.prototype={defaults:{elem:null,options:null},init:function(){if(!this.elem){return}this.$elem=a(this.elem);if(!this.options&&!a.AR.contains(a.Input.speTypes,this.$elem.attr("type"))){return}if(this.$elem.attr("max")!=null){this.$elem.max=parseFloat(this.$elem.attr("max"))}if(this.$elem.attr("maxlength")!=null){this.$elem.maxlength=parseInt(this.$elem.attr("maxlength"))}this.$elem.on("input",this.onInput,this)},onInput:function(b){this.call("on",b)},call:function(b,c){if(!this.options){this.$elem.val(this.inputMax(this.$elem.val()))}else{if(this.options.type&&b+this.options.type in this){this[b+this.options.type].call(this,c)}}},inputMax:function(b){if(this.$elem.max&&+b>this.$elem.max){return b=this.$elem.max}if(this.$elem.maxlength&&(""+b).length>this.$elem.maxlength){return b=b.substring(0,this.$elem.maxlength)}return b},onNumeric:function(c){var b=this.$elem.val();if(!/^[0-9]*$/.test(b)){b=b.replace(/[^0-9]/g,"");this.inputMax(b);this.$elem.val(b)}},onInteger:function(c){var b=this.$elem.val();if(!/^[0-9]*$/.test(b)){b=b.replace(/[^0-9]/g,"")}b=a.S.prefixZeroRemove(b);this.inputMax(b);this.$elem.val(b)},onDecimal:function(c){var b=this.$elem.val();if(!/^[0-9.]*$/.test(b)){b=b.replace(/[^0-9.]/g,"")}b=a.S.prefixZeroRemove(b);b=a.S.removeSecondDot(b);if(b.length>0&&b.charAt(0)=="."){b="0"+b}this.inputMax(b);this.$elem.val(b)},onAlphabetic:function(c){var b=this.$elem.val();if(!/^[a-zA-Z]*$/.test(b)){b=b.replace(/[^a-zA-Z]/g,"");this.$elem.val(b)}},onAlphabeticNumeric:function(c){var b=this.$elem.val();if(!/^[0-9a-zA-Z]*$/.test(b)){b=b.replace(/[^0-9a-zA-Z]/g,"");this.$elem.val(b)}},onAmount2R:function(d){var c=this.$elem.val();if(!/^[0-9.]*$/.test(c)){c=c.replace(/[^0-9.]/g,"")}c=a.S.prefixZeroRemove(c);c=a.S.removeSecondDot(c);if(c.length>0&&c.charAt(0)=="."){c="0"+c}var b=c.indexOf(".");if(b!=-1&&b<=c.length-1-2){c=c.substring(0,b+1+2)}this.inputMax(c);this.$elem.val(c)},onDiscount:function(d){var c=this.$elem.val();if(!/^[0-9.]*$/.test(c)){c=c.replace(/[^0-9.]/g,"")}c=a.S.prefixZeroRemove(c);c=a.S.removeSecondDot(c);if(c.length>0&&c.charAt(0)=="."){c="0"+c}var b=c.indexOf(".");if(b!=-1&&b<=c.length-1-2){c=c.substring(0,b+1+2)}this.$elem.val((parseFloat(c)>10)?"":c)},onDate:function(d){var c=this.$elem.val();if(!/^[0-9\-]*$/.test(c)){c=c.replace(/[^0-9\-]/g,"")}var b=null;switch(c.length){case 1:b=/^[0-9]$/;break;case 2:b=/^[0-9]{2}$/;break;case 3:b=/^[0-9]{3}$/;break;case 4:b=/^[0-9]{4}$/;break;case 5:b=/^[0-9]{4}\-$/;break;case 6:b=/^[0-9]{4}\-[0-1]$/;break;case 7:b=/^[0-9]{4}\-(0[1-9]|1[0-2])$/;break;case 8:b=/^[0-9]{4}\-(0[1-9]|1[0-2])\-$/;break;case 9:b=/^[0-9]{4}\-(0[1-9]|1[0-2])\-[0-3]$/;break;case 10:b=a.R.DATE;break}this.$elem.val((!b||!b.test(c))?"":c)},onHourMinute:function(d){var c=this.$elem.val();if(!/^[0-9:]*$/.test(c)){c=c.replace(/[^0-9:]/g,"")}var b=null;switch(c.length){case 1:b=/^[0-2]$/;break;case 2:b=/^([0-1][0-9]|[2][0-3])$/;break;case 3:b=/^([0-1][0-9]|[2][0-3]):$/;break;case 4:b=/^([0-1][0-9]|[2][0-3]):([0-5])$/;break;case 5:b=/^([0-1][0-9]|[2][0-3]):([0-5][0-9])$/;break}this.$elem.val((!b||!b.test(c))?"":c)}};a.Input.load=function(b){a.$selector("input",b).each(function(e){if(a.B.msie){a.placeholder(e)}if(a.EL.get(e,"readonly")!=null){a.E.add(e,"keydown",a.E.forbidden);return}if(!a.EL.has(e,"data-options")){var d=a.EL.get(e,"type");if(a.AR.contains(a.Input.speTypes,d)){if(a.EL.get(e,"max")!=null||a.EL.get(e,"maxlength")!=null){return new a.Input({elem:e})}}return}var f=a.EL.get(e,"data-options");var c=a.AR.toObject(f,";");if(!c.type||!a.AR.contains(a.Input.types,c.type)){return}a.EL.addClass(e,"z-ime-disabled");new a.Input({elem:e,options:c})})};a.onload(a.Input.load);a.NumInput={};a.NumInput.load=function(b){a.$selector("[data-role=z-numInput]",b).each(function(e){var c=a(e).find(".z-btn-minus");var d=a(e).find(".z-btn-plus");var f=a(e).find("input[type=text]");if(!c[0]||!d[0]||!f[0]){return false}f.off("input",a.NumInput.numInput).on("input",a.NumInput.numInput);d.off("touchend",a.NumInput.numPlus).on("touchend",a.NumInput.numPlus);c.off("touchend",a.NumInput.numMinus).on("touchend",a.NumInput.numMinus)})};a.NumInput.numInput=function(c){var e=a(this);var d=e.val();var b=parseInt(e.attr("data-min"))||1;d=d.replace(/[^\d]/g,"");while(d.charAt(0)=="0"&&d.length>1){d=d.substring(1)}if(d==""){d=b}e.val(d)};a.NumInput.numPlus=function(c){a.E.forbidden(c);var b=a(this);var e=b.parent().find("input[type=text]");var d=parseInt(e.val());d++;e.val(d)};a.NumInput.numMinus=function(d){a.E.forbidden(d);var b=a(this);var f=b.parent().find("input[type=text]");var c=parseInt(f.attr("data-min"))||1;var e=parseInt(f.val());e--;e=(e').prependTo("body")}f.target="zCallFrame";if(!f.zFormIndex){var c=document.createElement("input");c.name="zFormIndex";c.type="hidden";f.insertBefore(c,f.firstNode)}var g=-1;for(var d=0;d'+h+" ");d.appendTo(e).opacity(0.8).css({width:f,height:b}).cssMaybe("padding-left",c.cssNum("paddingLeft")+2).cssMaybe("padding-right",c.css("paddingRight")).cssMaybe("padding-top",c.css("paddingTop")).cssMaybe("padding-bottom",c.css("paddingBottom")).cssMaybe("font-family",c.css("fontFamily")).cssMaybe("font-size",c.css("fontSize")).cssMaybe("line-height",c.css("lineHeight")).cssMaybe("text-indent",c.css("textIndent"));if(c.val().length>0){d.hide()}c.keydown(function(){d.hide()});c.keyup(function(){if(c.val().length>0){d.hide()}else{d.show()}})};a.preRemoveBR=function(){a(".z-text-preline:not(pre),.z-text-prewrap:not(pre)").each(function(d){var b=a(d);var c=b.html();if(a.V.isEmpty(c)){return}if(c.charAt(0)=="\n"){b.html(c.substring(1))}})};a.onload(a.preRemoveBR)})(zhiqim);+(function(a){})(zhiqim);+(function(a){a.Popup=a.Class.newInstance();a.Popup.cache=new a.HashMap();a.Popup.close=function(d,c){d=d?((d.charAt(0)=="#")?d.substring(1):d):d;if(!d){a.each(a.Popup.cache.values(),function(e){e.fadeOut(c)});a.Popup.cache.clear()}else{var b=a.Popup.cache.get(d);if(b){b.fadeOut(c);a.Popup.cache.remove(d)}}};a.Popup.get=function(b){b=b?((b.charAt(0)=="#")?b.substring(1):b):b;return a.Popup.cache.get(b)};a.Popup.prototype={defaults:{target:null,start:"left",overlay:"all",overlayRatio:"75",},validate:function(){if(!this.target){a.alert("Z.Popup参数“target”未设置!");return false}if(a.T.isString(this.target)||a.T.isObject(this.target)){if(!a(this.target)[0]){a.alert("Z.Popup参数“target”设置不正确!");return false}}if(!a.AR.contains(["left","top","right","bottom"],this.start)){this.start="left"}if(!a.AR.contains(["part","all"],this.overlay)){this.start="part"}return true},execute:function(){if(!this.validate()){return}this.id=a(this.target).attr("id");if(!this.id){this.id="Z_zmPopup_"+a.Ids.uuid();a(this.target).attr(this.id)}a.Popup.cache.put(this.id,this);this.creatPopup();this.attachEvent();this.fadeIn()},creatPopup:function(){this.$popup=a(this.target);this.$popup.removeClass("z-overlay-all").removeClass("z-overlay-part").addClass("z-overlay-"+this.overlay);this.$popup.removeClass("z-top").removeClass("z-right").removeClass("z-bottom").removeClass("z-left").addClass("z-"+this.start).css("display","none");this.$bg=this.$popup.find(".z-popup-bg");this.$main=this.$popup.find(".z-popup-main");this.$title=this.$popup.find(".z-popup-title");this.$sure=this.$popup.find(".z-popup-sure");this.$cancel=this.$popup.find(".z-popup-cancel");this.$con=this.$popup.find(".z-popup-content")},attachEvent:function(){this.$bg.on("touchstart",this.fadeOut,this);this.$cancel.on("touchstart",this.fadeOut,this);if(this.$sure[0]){this.$sure[0].$this=this;this.$sure.on("touchstart",function(c){this.$this.fadeOut(c)})}var b=this.transitionFixed();this.$main.on(b,this.transitionEnd,this)},fadeIn:function(){var c=this;var b=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(d){window.setTimeout(d,1000/60)};b(function(){c.$popup.css("display","block");b(function(){c.$popup.addClass("z-popup-fadeIn");c=null})})},fadeOut:function(b){a.E.forbidden(b);this.$popup.removeClass("z-popup-fadeIn");this.$popup.addClass("z-popup-fadeOut");a.Popup.cache.remove(this.id);if(a(this.target).attr("id").indexOf("Z_zmPopup_")>-1){a(this.target).removeAttr("id")}},transitionEnd:function(b){if(this.$popup.hasClass("z-popup-fadeOut")){this.$popup.css("display","none");this.$popup.removeClass("z-popup-fadeOut")}},transitionFixed:function(){var b=document.createElement("div");if(b.style.transition!==undefined){b=null;return"transitionend"}if(b.style.OTransition!==undefined){b=null;return"oTransitionEnd"}if(b.style.WebkitTransition!==undefined){b=null;return"webkitTransitionEnd"}},};a.ActionList=a.Class.newInstance();a.ActionList.cache=new a.HashMap();a.ActionList.close=function(d,b){d=d?((d.charAt(0)=="#")?d.substring(1):d):d;if(!d){a.each(a.ActionList.cache.values(),function(e){e.fadeOut(b)});a.ActionList.cache.clear()}else{var c=a.ActionList.cache.get(d);if(c){c.fadeOut(b);a.ActionList.cache.remove(d)}}};a.ActionList.get=function(b){b=b?((b.charAt(0)=="#")?b.substring(1):b):b;return a.ActionList.cache.get(b)};a.ActionList.prototype={defaults:{id:"",html:"",height:0.7,},validate:function(){if(a.V.isEmpty(this.html)){a.alert("Z.ActionList参数“html”未设置!");return false}if(!this.id){this.id="Z_actionList_"+a.Ids.uuid()}return true},execute:function(){if(!this.validate){return}a.ActionList.cache.put(this.id,this);this.creatActionList();this.attachEvent();this.fadeIn()},creatActionList:function(){var e='';this.$action=a(e);this.$action.appendTo(a("body"));a.ResetTouchEnd.load(this.$action);var d=this.$action.find(".z-popup-content");d.htmlc(this.html);if(this.html.match(/data-role\s*=\s*"z-numInput"/)){a.ZmNumInput.load(d)}this.$bg=this.$action.find(".z-popup-bg");this.$main=this.$action.find(".z-popup-main");this.$con=this.$action.find(".z-popup-content");var c=parseInt(a.D.clientHeight());var b=c*this.height;this.$con.css("height",b)},attachEvent:function(){this.$bg.on("touchstart",this.fadeOut,this);var b=this.transitionFixed();this.$main.on(b,this.transitionEnd,this)},fadeIn:function(){var c=this;var b=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(d){window.setTimeout(d,1000/60)};b(function(){c.$action[0].style.display="block";b(function(){c.$action.addClass("z-popup-fadeIn")})})},fadeOut:function(){a.ActionList.cache.remove(this.id);this.$action.removeClass("z-popup-fadeIn");this.$action.addClass("z-popup-fadeOut")},transitionEnd:function(b){if(this.$action.hasClass("z-popup-fadeOut")){this.$action.remove()}},transitionFixed:function(){var b=document.createElement("div");if(b.style.transition!==undefined){b=null;return"transitionend"}if(b.style.OTransition!==undefined){b=null;return"oTransitionEnd"}if(b.style.WebkitTransition!==undefined){b=null;return"webkitTransitionEnd"}},}})(zhiqim);+(function(a){a.ScrollLoad=a.Class.newInstance();a.ScrollLoad.prototype={defaults:{elem:"",ajaxClass:"",ajaxMethod:"",ajaxParams:null,paramPage:"page",ajaxSuccess:null,ajaxFailue:null,loading:false,loadPage:2,distance:30,},validate:function(){if(!a("body>.z-container")[0]){return false}this.$scroller=a("body>.z-container");this.sOffsetHeight=this.$scroller[0].offsetHeight;var b=this.$scroller[0].scrollHeight;if(this.sOffsetHeight>=b){return false}if(!this.ajaxClass){a.alert("Z.ScrollLoad 参数 ajaxClass 配置有误");return false}if(!this.ajaxMethod){a.alert("Z.ScrollLoad 参数 ajaxMethod 配置有误");return false}if(typeof this.ajaxParams!="object"){a.alert("Z.ScrollLoad 参数 ajaxParams 配置有误");return false}return true},execute:function(){if(!this.validate()){return}this.$elem=a.$elem(this.elem,"Z.ScrollLoad");this.loading=false;this.distance=+this.distance;if(this.distance>this.sOffsetHeight||this.distance<0){this.distance=30}var b='