+(function(window,undefined){var document=window.document;document.createElement("zcover");var Z=window.Z=window.zhiqim=function(selector){return new Z.Query({selector:selector})};Z.v="1.4.0";Z.u=undefined;Z.d=window.document;Z.l=window.location;Z.n=window.navigator;Z.ua=Z.n.userAgent.toLowerCase();Z._D_="0123456789";Z._LU_="ABCDEFGHIJKLMNOPQRSTUVWXYZ";Z._LL_="abcdefghijklmnopqrstuvwxyz";Z._L_=Z._LU_+Z._LL_;Z._DL_=Z._D_+Z._L_;Z._DLL_=Z._D_+Z._LL_;Z._DLU_=Z._D_+Z._LU_;Z._DH_=Z._D_+"abcdefABCDEF";Z._DHL_=Z._D_+"abcdef";Z._DHU_=Z._D_+"ABCDEF";Z._SYM_="._-`~!@#$%";Z.body=function(){if(Z.d.body){return Z.d.body}else{Z.alert("未初始化body,请在Z.onload之后调用!");throw"nobody"}};Z.assert=function(require,exception,message){if(!require){Z.alert(message);throw exception}};Z.evals=function(expression){try{return eval("("+expression+")")}catch(e){return null}};Z.loads=function(src,callback){var $script=document.createElement("script");$script.src=src;$script.onload=callback;document.body.appendChild($script)};Z.alert=function(text,callback,param){alert(text);if(Z.T.isFunction(callback)){callback()}};Z.success=function(text,callback,param){param=param||{};param.type="success";Z.alert(text,callback,param)};Z.failure=function(text,callback,param){param=param||{};param.type="failure";Z.alert(text,callback,param)};Z.confirm=function(text,callback,param){if(confirm(text)){callback()}};Z.prompt=function(text,value,callback,param){if(prompt(text,value)){callback()}};Z.copy=function(text,type){if(!text){Z.alert("请输入要复制的文本");return}if(!document.execCommand){Z.alert("当前浏览器不支持复制");return}var $textarea=Z("").appendTo("body");type=type||"text";if(type=="val"){$textarea.val(text)}else{if(type=="html"){$textarea.html(text)}else{$textarea.text(text)}}$textarea.select();document.execCommand("copy");$textarea.remove()};Z.bind=function(f,$this){if(!Z.bind.fs){Z.bind.fs=[];Z.bind.ts=[];Z.bind.ns=[]}var ind=-1;Z.each(Z.bind.fs,function(_f,i){if(_f!==f){return}if(Z.bind.ts[i]!==$this){return}ind=i;return true});if(ind==-1){ind=Z.bind.fs.length;Z.bind.fs[ind]=f;Z.bind.ts[ind]=$this;Z.bind.ns[ind]=function(){f.apply($this,arguments)}}return Z.bind.ns[ind]};Z.each=function(object,callback){return Z.eachof(null,object,callback)};Z.eachof=function($this,object,callback){if(!object||!Z.T.isFunction(callback)){return}if(!Z.T.isLikeArray(object)&&!Z.T.isPlainObject(object)&&!Z.T.isString(object)&&!Z.T.isNumber(object)){return}var args=[];for(var a=0;a=times){clearInterval(timer);if(complete){complete.call($this)}}else{if(process){process.call($this,curTimes)}}}return timer};Z.rootPath=function(contextPath,path){return((contextPath==null||contextPath=="/")?"":contextPath)+(Z.S.startWith(path,"/")?"":"/")+path};Z.textLineNum=function(text,width,fontSize,fontFamily,letterSpacing){fontFamily=fontFamily||('"微软雅黑","宋体",Arial,sans-serif');letterSpacing=letterSpacing||"normal";var $textarea=Z('").css("width",width).css("fontSize",fontSize).css("fontFamily",fontFamily).css("letterSpacing",letterSpacing).appendTo("body");var lineNum=$textarea[0].scrollHeight/50;if(window.devicePixelRatio&&window.devicePixelRatio!==1){}$textarea.remove();return Math.ceil(lineNum)};Z.drag=function(elem,param,callback,$this){if(Z.T.isString(elem)){elem=Z.D.id(elem)}if(!elem||!elem.nodeType){return null}if(Z.T.isString(param)){param={drag:Z.D.id(param)}}else{if(param.nodeType){param={drag:param}}}return new Z.Draggable({immediate:true,elem:elem,param:param,callback:callback,callthis:$this})};Z.dragInParent=function(elem,drag,parent,callback,$this){if(Z.T.isString(elem)){elem=Z.D.id(elem)}if(!elem||!elem.nodeType){return null}if(Z.T.isString(drag)){drag=Z.D.id(drag)}if(!drag||!drag.nodeType){return null}if(Z.T.isString(parent)){parent=Z.D.id(parent)}if(!parent||!parent.nodeType){return null}var width=parent.offsetWidth-elem.offsetWidth;var height=parent.offsetHeight-elem.offsetHeight;var param={drag:drag,left:parent.offsetLeft,top:parent.offsetTop,width:width,height:height};return new Z.Draggable({immediate:true,elem:elem,param:param,callback:callback,callthis:$this})};Z.$elem=function(elem,clazz){if(elem instanceof Z.Query){if(!elem[0]){Z.alert("["+clazz+"]的[elem]参数无效");throw"elem does not exist"}return elem}else{if(Z.T.isElement(elem)||Z.T.isWindow(elem)||Z.T.isDocument(elem)){return Z(elem)}else{if(Z.T.isString(elem)){if(Z(elem)[0]){return Z(elem)}if(!/^#/.test(elem)&&Z("#"+elem)[0]){return Z("#"+elem)}}}}if(clazz){Z.alert("["+clazz+"]的[elem]参数必须是元素对象或元素编号");throw"elem does not exist"}return Z("")};Z.$selector=function(selector,target){return target==null?Z(selector):Z.$elem(target).find(selector)};Z.$cover=function($elem){$elem=Z.$elem($elem);var $parent=$elem.parent();if($parent.length>0&&$parent[0].tagName.toLowerCase()=="zcover"){return $parent}var $cover=Z("").insertAfter($elem).cssMaybe("float",$elem.css("float")).cssMaybe("margin-left",$elem.css("marginLeft")).cssMaybe("margin-right",$elem.css("marginRight")).cssMaybe("margin-top",$elem.css("marginTop")).cssMaybe("margin-bottom",$elem.css("marginBottom"));if($elem.css("width").indexOf("%")!=-1){$cover.cssMaybe("width",$elem.css("width"));$elem.css("width","100%")}$elem.appendTo($cover).css("margin",0);return $cover};Z.R=Z.Regexps={SPACE:/\s+/,SPACE_LEFT:/^\s+/,SPACE_RIGHT:/\s+$/,NUMERIC:/^\d+$/,INTEGER:/^(0|[\+\-]?[1-9]\d*)$/,INTEGER_P:/^[1-9]\d*$/,INTEGER_N_N:/^(0|[1-9]\d*)$/,FLOAT:/^(0|[\+\-]?[1-9]\d*)(\.\d+)?$/,FLOAT_N_N:/^(0|[1-9]\d*)(\.\d+)?$/,AMOUNT_2R:/^(0|[\+\-]?[1-9]\d*)(\.\d{1,2})?$/,AMOUNT_2R_FIXED:/^(0|[\+\-]?[1-9]\d*)(\.\d{2})$/,AMOUNT_N_N_2R:/^(0|[1-9]\d*)(\.\d{1,2})?$/,AMOUNT_N_N_2R_FIXED:/^(0|[1-9]\d*)(\.\d{2})$/,ALPHABAT:/^[A-Za-z]+$/,ALPHABAT_UPPER:/^[A-Z]+$/,ALPHABAT_LOWER:/^[a-z]+$/,ALPHA_LOWER_NUMERIC:/^[a-z0-9]+$/,ALPHA_UPPER_NUMERIC:/^[A-Z0-9]+$/,ALPHA_NUMERIC:/^[A-Za-z0-9]+$/,ALPHA_NUMERIC_PA:/^[A-Za-z][A-Za-z0-9]*$/,ALPHABAT_DOUBLE:/^[^x00-xff]+$/,CHINESE:/^[\u4e00-\u9fa5]+$/,CHINESE_ALPHA_NUMERIC:/^[\u4e00-\u9fa5A-Za-z0-9]+$/,DATE:/^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))$/,TIME:/^([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9])$/,DATE_TIME:/^((([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))\s(([0-1][0-9]|[2][0-3]):([0-5][0-9]):([0-5][0-9]))$/,DATE_TIME_MATCH:/^(\d{4})-(\d{2})-(\d{2})\s(\d{2}):(\d{2}):(\d{2})$/,HTML:/<|&#?\w+;/,HTML_TAG:/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,HTML_TAG_NAME:/<([\w:]+)/,ACCOUNT:/^(?!(_|@|\.))(?!.*?(_|@|\.)$)[\w@\.\u4e00-\u9fa5]{5,25}$/,PASSWORD:/^[\w@\.#$!~%]{6,16}$/,MOBILE:/^((\+86)|(86)|)?(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|170|18[0|1|2|3|5|6|7|8|9])\d{8}$/,MOBILE_11:/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|170|18[0|1|2|3|5|6|7|8|9])\d{8}$/,IP:/^((?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])$/,MAC:/^[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}$/,QQ:/^[1-9]\d{4,10}$/,POSTAL_CODE:/^[1-9]\d{5}$/,EMAIL:/^([\w-_]+(?:\.[\w-_]+)*)@((?:[a-z0-9]+(?:-[a-zA-Z0-9]+)*)+\.[a-z]{2,6})$/,IDCARD:/^(\d{6})((((19|20)[0-9]{2})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29))(\d{3}[0-9xX*])$/};Z.C=Z.Class={newInstance:function(){return function(){this.immediate=false;this.set=function(name,value){this[name]=value};Z.C.copyFields(this,this.defaults);Z.C.copyFields(this,arguments);if(this.init){this.init.apply(this)}if(this.immediate&&this.execute){this.execute.apply(this)}}},copyFields:function(target,obj){if(!target||!obj){return}if(Z.T.isLikeArray(obj)){for(var i=0;ithis.right){offsetLeft=this.right}if("top" in this&&offsetTopthis.bottom){offsetTop=this.bottom}}if(Z.T.isFunction(this.callback)){this.callback.call(this.callthis||this,e,this.dragging)}Z(this.elem).css({left:offsetLeft,top:offsetTop});Z.D.clearSelection()},doStopDrag:function(e){Z(document).offmousemove(this.doDragging,this).offmouseup(this.doStopDrag,this);if(Z.T.isFunction(this.callback)){this.callback.call(this.callthis||this,e,this.dragging)}}}})(window);+(function(b){b.B=b.Browser={mobile:/mobile/.test(b.ua),iphone:/iphone/.test(b.ua),ipad:/ipad/.test(b.ua),win64:/wow64/.test(b.ua),firefox:/firefox/.test(b.ua),webkit:/webkit/.test(b.ua),safari:/safari/.test(b.ua),chrome:/chrome/.test(b.ua),opera:/opera/.test(b.ua),mozilla:/mozilla/.test(b.ua)&&!/compatible/.test(b.ua),msie:(/msie/.test(b.ua)||/trident/.test(b.ua))&&!/opera/.test(b.ua),msieOnly:/msie/.test(b.ua),msie11:/trident\/7/.test(b.ua),msie10:/msie 10/.test(b.ua),msie9:/msie 9/.test(b.ua),msie8:/msie 8/.test(b.ua),msie7:/msie 7/.test(b.ua),msie6:/msie 6/.test(b.ua),msieVer:/msie/.test(b.ua)?parseInt(b.ua.match(/msie (\d+)/)[1]):100};if(b.B.msieVer<=8){var c=["abbr","article","aside","datalist","details","dialog","eventsource","figure","footer","header","hgroup","main","mark","menu","meter","nav","output","progress","section","time","audio","canvas","video"];var a=c.length;while(a--){document.createElement(c[a])}}b.D=b.Document={id:function(e,d){d=d||document;return d.getElementById(e)},has:function(e,d){d=d||document;return d.getElementById(e)!=null},create:function(d,e){e=e||document;return e.createElement(d)},names:function(d,e){e=e||document;return e.getElementsByName(d)},tagNames:function(d,e){e=e||document;return e.getElementsByTagName(d)},classNames:function(e,f){f=f||document;if(f.getElementsByClassName){return f.getElementsByClassName(e)}var d=[];b.each(this.tagNames("*"),function(g){b.each(g.className.split(" "),function(h){if(h==e){d.push(g)}})});return d},attrs:function(e,f,g){g=g||document;var d=[];b.each(this.tagNames("*"),function(h){if(f==b.EL.get(h,e)){d.push(h)}});return d},scrollTop:function(d){d=d||document;return d.body.scrollTop+d.documentElement.scrollTop},scrollLeft:function(d){d=d||document;return d.body.scrollLeft+d.documentElement.scrollLeft},scrollWidth:function(d){d=d||document;return Math.max(d.body.scrollWidth,d.documentElement.scrollWidth)},scrollHeight:function(d){d=d||document;return Math.max(d.body.scrollHeight,d.documentElement.scrollHeight)},clientWidth:function(d){d=d||document;return d.documentElement.clientWidth||d.body.clientWidth},clientHeight:function(d){d=d||document;return d.documentElement.clientHeight||d.body.clientHeight},offsetWidth:function(d){d=d||document;return Math.max(d.body.offsetWidth,d.documentElement.offsetWidth)},offsetHeight:function(d){d=d||document;return Math.max(d.body.offsetHeight,d.documentElement.offsetHeight)},clearSelection:function(){window.getSelection?window.getSelection().removeAllRanges():document.selection.empty()}};b.E=b.Event={KEY:{ESC:27,ENTER:13,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},add:function(g,d,e,f){e=f?b.bind(e,f):e;if(g.addEventListener){g.addEventListener(d,e,false)}else{if(g.attachEvent){g.attachEvent("on"+d,e)}else{g["on"+d]=e}}},remove:function(g,d,e,f){e=f?b.bind(e,f):e;if(g.removeEventListener){g.removeEventListener(d,e,false)}else{if(g.detachEvent){g.detachEvent("on"+d,e)}else{g["on"+d]=null}}},event:function(d){return d||window.event},key:function(d){d=this.event(d);return d.which||d.keyCode},target:function(d){d=this.event(d);return d.target||d.srcElement},current:function(d){d=this.event(d);return d.currentTarget||d.srcElement},cancel:function(d){if(d&&d.preventDefault){d.preventDefault()}else{if(window.event){window.event.returnValue=false}}return false},stop:function(d){if(d&&d.stopPropagation){d.stopPropagation()}else{if(window.event){window.event.cancelBubble=true}}return false},forbidden:function(d){b.E.stop(d);b.E.cancel(d)},clientX:function(d){return this.event(d).clientX},clientY:function(d){return this.event(d).clientY},screenX:function(d){return this.event(d).clientX},screenY:function(d){return this.event(d).clientY},wheelDelta:function(d){return b.B.firefox?(-this.event(d).detail*40):this.event(d).wheelDelta},isCtrl:function(d){return b.E.event(d).ctrlKey},isEsc:function(d){return b.E.key(d)===27},isBackspace:function(d){return b.E.key(d)===8},isEnter:function(d){return b.E.key(d)===13},isCtrlC:function(d){return b.E.isCtrl(d)&&b.E.key(d)==67},isCtrlV:function(d){return b.E.isCtrl(d)&&b.E.key(d)==86}};b.EL=b.Element={PX:["top","bottom","left","right","width","height","min-width","max-width","min-height","max-height","line-height","text-indent","minWidth","maxWidth","minHeight","maxHeight","lineHeight","textIndent","margin-top","margin-bottom","margin-left","margin-right","padding-top","padding-bottom","padding-left","padding-right","font-size","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","padding-Left","paddingRight","fontSize"],has:function(e,d){if(!e||!e.nodeType){return false}if(d in e){return true}else{if(e.hasAttribute&&e.hasAttribute(d)){return true}}return false},get:function(e,d){if(!e||!e.nodeType){return null}if(d in e){return e[d]}else{if(e.getAttribute){return e.getAttribute(d)}}return null},set:function(e,d,f){if(!e||!e.nodeType){return}if(d in e){e[d]=f}else{if(e.setAttribute){e.setAttribute(d,f)}}},equals:function(e,d,f){if(!e||!e.nodeType){return false}return b.EL.get(e,d)==f},style:function(f,e){if(!this.has(f,"style")){return}if(e===b.u){return f.style}var g=b.AR.toObject(e,";");for(var d in g){f.style[d]=g[d]}},css:function(e,d,f){if(!this.has(e,"style")){return}if(d=="opacity"){return this.opacity(e,f)}if(arguments.length==2){if(e.style[d]){return e.style[d]}if(e.currentStyle){return e.currentStyle[d]}if(document.defaultView){return document.defaultView.getComputedStyle(e,null)[d]}return""}else{if(arguments.length==3){if(b.AR.contains(b.EL.PX,d)){f=(b.T.isNumber(f)||b.V.isInteger(f)||b.V.isFloat(f))?f+"px":f}e.style[d]=f}}},cssNum:function(e,d){return b.S.prefixNum(this.css(e,d))},opacity:function(f,g){if(!this.has(f,"style")){return}if(g===b.u){if("opacity" in f.style){return f.style.opacity?parseFloat(f.style.opacity):0}else{var e=f.style.filter;var d=(!e)?null:e.match(/opacity=([\d.]*)[\)\,\s]/i);if(!d||d.length<2){return 0}return d[1]/100}}else{if(b.T.isNumber(g)||b.V.isFloat(g)){g=+g;if("opacity" in f.style){f.style.opacity=g}else{f.style.filter="alpha(opacity="+g*100+")"}}}},className:function(e,d){if(!this.has(e,"className")){return null}if(d===b.u){return e.className}e.className=d},addClass:function(e,d){if(!this.has(e,"className")){return}var f=b.AR.toArray(e.className,b.R.SPACE);if(b.AR.contains(f,d)){return}f.push(d);e.className=b.AR.toString(f," ")},removeClass:function(e,d){if(!this.has(e,"className")){return}var g=b.AR.toArray(e.className,b.R.SPACE);var f=b.AR.indexOf(g,d);if(f==-1){return}g.splice(f,1);e.className=b.AR.toString(g," ")},hasClass:function(e,d){if(!this.has(e,"className")){return false}var f=b.AR.toArray(e.className,b.R.SPACE);return b.AR.contains(f,d)},toggleClass:function(e,d){this.hasClass(e,d)?this.removeClass(e,d):this.addClass(e,d)},select:function(d){if(!d||!d.nodeType){return}d.select()},selection:function(e){if(!this.has(e,"value")){return""}var f=this.get(e,"value");if(b.V.isEmpty(f)){return""}if(!("selectionStart" in e)){return""}var g=e.selectionStart;var d=e.selectionEnd;return f.substring(g,d)},isSelection:function(d){return b.V.isNotEmpty(this.selection(d))},focus:function(d){if(!d||!d.nodeType){return}d.focus()},focusEnd:function(f,d){if(!f||!f.nodeType){return}d=d||0;if(b.B.msieOnly){var e=f.createTextRange();(d==0)?e.collapse(false):e.move("character",d);e.select()}else{d=(d==0)?f.value.length:d;f.setSelectionRange(d,d);f.focus()}},parent:function(e){if(!e||!e.nodeType){return null}var d=e.parentNode;return d&&d.nodeType!==11?d:null},parentIndex:function(d){var e=0;while(d=d.previousSibling){if(d.nodeType==1){e++}}return e},childs:function(d){if(!d||!d.nodeType){return null}return d.childNodes},children:function(d){if(!d||!d.nodeType){return null}return d.children},html:function(d,e){if(!d||!d.nodeType){return}if(e===b.u){return d.innerHTML}else{d.innerHTML=e}},htmlc:function(d,k){if(!d||!d.nodeType){return}if(k===b.u){return d.innerHTML}d.innerHTML=k;if(b.Input&&b.Input.load){b.Input.load(d)}if(b.ButtonGroup&&b.ButtonGroup.load){b.ButtonGroup.load(d)}if(b.Checkbox&&b.Checkbox.load){b.Checkbox.load(d)}if(b.Radio&&b.Radio.load){b.Radio.load(d)}if(b.Select&&b.Select.load){b.Select.load(d)}if(b.Dropdown&&b.Dropdown.load){b.Dropdown.load(d)}if(b.Textarea&&b.Textarea.load){b.Textarea.load(d)}if(b.CallFrame&&b.CallFrame.load){b.CallFrame.load()}if(b.Tooltip&&b.Tooltip.load){b.Tooltip.load()}if(b.Clipboard&&b.Clipboard.onload){b.Clipboard.onload()}var n=d.querySelectorAll("script");for(var g=0;g",""],optgroup:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tbody:[1,"","
"],tfoot:[1,"","
"],colgroup:[1,"","
"],caption:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],th:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},createElement:function(e){if(!e){return[]}if(e.nodeType){return[e]}if(b.T.isNumber(e)){e+=""}if(!b.T.isString(e)){return[]}if(!b.R.HTML.test(e)){return[document.createTextNode(e)]}e=e.replace(b.R.HTML_XHTML_TAG,"<$1>");var d=(b.R.HTML_TAG_NAME.exec(e)||["",""])[1].toLowerCase(),f=b.H.wrapMap[d]||b.H.wrapMap._default,g=f[0],h=document.createElement("div");h.innerHTML=f[1]+e+f[2];while(g--){h=h.lastChild}return h.childNodes},displayCache:{},displayDefault:function(e){if(this.displayCache[e]){return this.displayCache[e]}var d=document.body;var g=b.D.create(e);d.appendChild(g);var h=b.EL.css(g,"display");d.removeChild(g);if(h!==""&&h!=="none"){this.displayCache[e]=h;return h}var f=b.D.create("iframe");f.frameBorder=f.width=f.height=0;d.appendChild(f);var i=(f.contentWindow||f.contentDocument).document;i.write((document.compatMode==="CSS1Compat"?"":"")+"");i.close();g=i.createElement(e);i.body.appendChild(g);h=this.css(g,"display");d.removeChild(f);this.displayCache[e]=h;return h}};b.L=b.Location={protocol:location.href.match(/^https/i)?"https":"http",reload:function(d){d=d||window;d.location.reload()},access:function(e,f){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");f=f||window;if(f==="open"){var d=b("
").appendTo("body");d.attr({action:e,method:"post",target:"blank"})[0].submit();d.remove()}else{if(f.name&&f.name=="zCallFrame"){e+=((e.indexOf("?")==-1)?"?":"&")+"zCallFrame=true";f.location.href=e}else{f.location.href=e}}},check:function(e,d,f,h){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");if(f){if(!(f instanceof HTMLFormElement)&&h==null){h=f;f=null}}var g=b.FM.getChecked(d,f);if(!g){return}e+=(e.indexOf("?")==-1)?"?":"&";e+=d+"="+encodeURIComponent(g);b.L.access(e,h)},confirm:function(e,g,d,f,i){b.A.assertNotEmptyBlank(e,"Z.Location的所有函数url不能为空");if(f){if(!(f instanceof HTMLFormElement)&&i==null){i=f;f=null}}if(d){var h=b.FM.getChecked(d,f);if(!h){return}e+=(e.indexOf("?")==-1)?"?":"&";e+=d+"="+encodeURIComponent(h)}b.confirm(g,function(){b.L.access(e,i)})},href:function(j,i){if(b.T.isString(j)){b.L.access(j,i)}else{if(b.T.isPlainObject(j)){var e=j.url||null;var g=j.message||null;var d=j.name||null;var f=j.form||null;var h=i||j.target||null;if(d==null){b.L.access(e,h)}else{if(g==null){b.L.check(e,d,f,h)}else{b.L.confirm(e,g,d,f,h)}}}else{b.alert("Z.L.href函数第一个参数必须是字符串或纯对象")}}}};b.CK=b.Cookie={all:function(){return document.cookie},add:function(g,i,d,k,h,j){if(!cookie||!cookie.name||b.V.isEmptyBlank(cookie.name)){return}var g=escape(b.S.trim(cookie.name));var i=escape(cookie.value||"");var e=g+"="+i;if(b.T.isNumber(cookie.expires)||b.V.isInteger(cookie.expires)){var f=new Date();f.setTime(f.getTime()+(+cookie.expires*1000));e+=";expires="+f.toGMTString()}e+=(cookie.path)?";path="+cookie.path:"";e+=(cookie.domain)?";domain="+cookie.domain:"";e+=(cookie.secure===true)?";secure":"";document.cookie=e},remove:function(e){var d=new Date();d.setTime(d.getTime()-10*1000);document.cookie=e+"=value;expires="+d.toGMTString()},get:function(d){if(b.V.isEmptyBlank(d)){return""}d=escape(b.S.trim(d));var g=b.AR.toArray(document.cookie,";");for(var f=0;f1){e=e.slice(0,-1)}e+="}";return e}};d.Ids={HEX_LETTERS:[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70],uuid:function(){var h=new Array(32);var f=0,g=0,e=0;for(g=0;g<8;g++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}for(g=0;g<3;g++){for(e=0;e<4;e++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}}var l=new Date().getTime();var k=("0000000"+l.toString(16).toUpperCase()).substr(-8);for(g=0;g<8;g++){h[f++]=k.charCodeAt(g)}for(g=0;g<4;g++){h[f++]=this.HEX_LETTERS[Math.floor(Math.random()*16)]}return String.fromCharCode.apply(null,h)}};d.T=d.Types={isBoolean:function(e){return d.O.toString(e)==="Boolean"},isNumber:function(e){return d.O.toString(e)==="Number"},isString:function(e){return d.O.toString(e)==="String"},isPrimitive:function(e){return d.T.isBoolean(e)||d.T.isNumber(e)||d.T.isString(e)},isFunction:function(e){return d.O.toString(e)==="Function"},isArray:function(e){return d.O.toString(e)==="Array"},isDate:function(e){return d.O.toString(e)==="Date"},isRegExp:function(e){return d.O.toString(e)==="RegExp"},isObject:function(e){return d.O.toString(e)==="Object"},isPlainObject:function(f){if(!f||!d.T.isObject(f)||f.nodeType||d.T.isWindow(f)){return false}if(f.constructor&&!b.call(f,"constructor")&&!b.call(f.constructor.prototype,"isPrototypeOf")){return false}var e;for(e in f){}return e===d.u||b.call(f,e)},isLikeArray:function(f){if(!f||!d.T.isNumber(f.length)){return false}if(d.T.isFunction(f)&&f instanceof d.Query){return true}var e=d.O.toString(f);if(e==="Array"||e==="Arguments"||e==="HTMLCollection"||e==="NodeList"||f.callee||f.item){return true}if(d.T.isString(f)||d.T.isFunction(f)||d.T.isWindow(f)){return false}return f[0]!=d.u},isNull:function(e){return e===null},isUndefined:function(e){return e===d.u},isNaN:function(e){return !(e==e)},isInfinity:function(e){return e===Infinity},isNonInfinity:function(e){return e===-Infinity},isNil:function(e){return e===null||e===d.u||!(e==e)||e===Infinity||e===-Infinity},isWindow:function(e){return e&&typeof(e)==="object"&&"setInterval" in e},isNode:function(e){return e&&e.nodeType},isDocument:function(e){return e&&e.nodeType===9},isElement:function(e){return e&&e.nodeType&&e.nodeType!==9},isArguments:function(e){return e&&d.O.toString(e)==="Arguments"&&d.T.isNumber(e.length)}};d.V=d.Validates={isDigit:function(e){return e>=48&&e<=57},isMinus:function(e){return e==45},isDot:function(e){return e===46},isColon:function(e){return e==58},isDigitOrMinus:function(e){return(e>=48&&e<=57)||e===45},isDigitOrDot:function(e){return(e>=48&&e<=57)||e===46},isDigitOrColon:function(e){return(e>=48&&e<=57)||e===58},isLetter:function(e){return(e>=65&&e<=90)||(e>=97&&e<=122)},isLetterLowercase:function(e){return e>=97&&e<=122},isLetterUppercase:function(e){return e>=65&&e<=90},isLetterOrDigit:function(e){return isLetter(e)||isDigit(e)},isRegexp:function(f,e){return f.test(e)},isEmpty:function(e){return(e==null||e==""||e.length<1)},isNotEmpty:function(e){return !d.V.isEmpty(e)},isEmptyBlank:function(f){if(f==null||f==""||f.length<1){return true}for(var e=0;eString.fromCharCode(32)){return false}}return true},isNotEmptyBlank:function(e){return !d.V.isEmptyBlank(e)},isNumeric:function(e){return d.R.NUMERIC.test(e)},isNumericLen:function(g,f,e){return d.R.NUMERIC.test(g)&&g.length>=f&&g.length<=e},isInteger:function(e){return d.R.INTEGER.test(e)},isIntegerValue:function(g,f,e){return d.R.INTEGER.test(g)&&+g>=f&&+g<=e},isIntegerPositive:function(e){return d.R.INTEGER_P.test(e)},isFloat:function(e){return d.R.FLOAT.test(e)},isAmount2R:function(e){return d.R.AMOUNT_2R.test(e)},isDate:function(e){return d.R.DATE.test(e)},isTime:function(e){return d.R.TIME.test(e)},isDateTime:function(e){return d.R.DATE_TIME.test(e)},isEmail:function(e){return d.R.EMAIL.test(e)},isMobile:function(e){return d.R.MOBILE.test(e)},isMobile11:function(e){return d.R.MOBILE_11.test(e)},isContain:function(g,h,e){var f=d.AR.toArray(g,h);return d.AR.contains(f,e)},isLeapYear:function(e){return(e%4==0)&&((!(e%100==0))||(e%400==0))},};d.FM=d.Forms={formData:function(e){if(!e||!e.length){return null}var f="";d.each(e,function(g){if(g.disabled||!g.name||!g.value){return}f+=g.name+"="+encodeURIComponent(g.value)+"&"});return(f.length>0)?f.slice(0,-1):null},clearForm:function(h){if(!h){return}h.reset();var g=h.elements.length;for(var e=0;e0){f.options[0].selected=true}}}}},clearSelect:function(e){e.options.length=0},isChecked:function(f,g){if(!f){return false}var e=g?g[f]:d.D.names(f);if(!e){return false}if(!d.T.isNumber(e.length)){return e.checked}else{return d.each(e,function(h){if(h.checked){return true}})}},getChecked:function(f,h){if(!f){d.alert("[Z.FM.getChecked]第一个参数必传");throw"[Z.FM.getChecked]第一个参数必传"}var e=h?h[f]:d.D.names(f);if(!e){d.alert("[Z.FM.getChecked]没有找到["+f+"]的对象");throw"[Z.FM.getChecked]没有找到["+f+"]的对象"}if(!d.T.isNumber(e.length)){if(e.checked){return e.value}else{d.alert("请选择一个选项");throw"请选择一个选项"}}else{for(var g=0;gi.length){var l=k.value.substring(0,i.length);if(l==i){if(h){k.checked=true}else{k.checked=false}}}else{if(k.value.length0){e=e.slice(0,-g.length)}return e},toJSONString:function(f){if(!f){return"[]"}var e="[";d.each(f,function(g){e+=d.Jsons.toString(g)+","});if(e.length>1){e=e.slice(0,-1)}e+="]";return e}};d.S=d.Strings={trim:a?function(e){return e==null?"":a.call(e)}:function(e){return e==null?"":e.toString().replace(d.R.SPACE_LEFT,"").replace(d.R.SPACE_RIGHT,"")},trimLeft:function(e){return e==null?"":e.toString().replace(d.R.SPACE_LEFT,"")},trimRight:function(e){return e==null?"":e.toString().replace(d.R.SPACE_RIGHT,"")},startWith:function(f,e){if(f==null||e==null||f.length==0||e.length==0||e.length>f.length){return false}return new RegExp("^"+e).test(f)},endWith:function(f,e){if(f==null||e==null||f.length==0||e.length==0||e.length>f.length){return false}return new RegExp(e+"$").test(f)},equalsIgnoreCase:function(f,e){if(!d.T.isString(f)||!d.T.isString(e)){return false}return f.toUpperCase()==e.toUpperCase()},replaceAll:function(g,h,f,e){if(!RegExp.prototype.isPrototypeOf(h)){return g.replace(new RegExp(h,(e?"gi":"g")),f)}else{return g.replace(h,f)}},lengthUnicode:function(g){if(g==null||g.length==0){return 0}var e=0;for(var f=0;f127){e+=2}else{e+=1}}return e},lengthUnicode35:function(g){if(g==null||g.length==0){return 0}var e=0;for(var f=0;f127){e+=5}else{e+=3}}return e},toString:function(e){if(e===d.u){return"undefined"}else{if(e===null){return""}else{if(d.T.isString(e)){return e}else{return e.toString()}}}},toUTF8:function(g){var e=[];for(var f=0;f>6)&31));e.push(128|(h&63))}else{e.push(224|((h>>12)&15));e.push(128|((h>>6)&63));e.push(128|(h&63))}}}return new Int8Array(e)},toHexString:function(e){var f="";for(var g=0;g"9")&&h!="."){return true}f+=h});if(f.length==0){return 0}return e?-parseFloat(f,10):parseFloat(f,10)},prefixZeroRemove:function(e){while(e.length>1&&e.charAt(0)=="0"&&e.charAt(1)!="."){e=e.substring(1)}return e},removeSecondDot:function(f){var e=f.indexOf(".");if(e==-1){return f}var g=f.indexOf(".",e+1);return(g==-1)?f:f.substring(0,g)},removeAmountZero:function(h){var g=h.indexOf(".");if(g==-1){return h}var f=-1;for(var e=h.length-1;e>=g;e--){var j=h.charAt(e);if(j!="0"&&j!="."){break}f=e}return(f==-1)?h:h.substring(0,f)}};d.Maths={multiply:function(h,x){if(d.T.isNumber(h)){h=h.toString()}else{if(!d.T.isString(h)||!d.V.isFloat(h)){d.alert("不支持["+h+"]["+x+"]非数字相乘")}}if(d.T.isNumber(x)){x=x.toString()}else{if(!d.T.isString(x)||!d.V.isFloat(h)){d.alert("不支持["+h+"]["+x+"]非数字相乘")}}var u,q,f,n;var g=h.indexOf(".");if(g==-1){u=h;q="0";f=0;n=false}else{u=h.substring(0,g);q=h.substring(g+1);f=q.length;if(u.charAt(0)=="-"){n=true}}var o,k,e,r;var s=x.indexOf(".");if(s==-1){o=x;k="0";e=0;r=false}else{o=x.substring(0,s);k=x.substring(s+1);e=k.length;if(o.charAt(0)=="-"){r=true}}var p=parseInt(u)*parseInt(o);if(f==0&&e==0){return p}var w=0,v=0,t=0,j;if(f!=0){w=((n)?-q:q)*o;for(j=0;j"&&this.selector.length>=3){if(this.selector.length<=12){var f=this.selector.substring(1,this.selector.length-1);if(d.AR.contains(a,f)){this[0]=document.createElement(f);this.length=1;return this}}var j=d.H.createElement(this.selector);d.eachof(this,j,function(l,k){this[k]=l});this.length=j.length;return this}var h=document.querySelectorAll(this.selector);for(g=0;g "+f+':not([id="'+g+'"])')}try{g="_zhiqim_siblings_"+d.random(4)+"_";d.EL.set(this[0],"id",g);return this.parent().find("> "+f+':not([id="'+g+'"])')}finally{d.EL.remove(this[0],"id")}},next:function(f){f=f||"*";return this.find("+ "+f)},nextAll:function(f){f=f||"*";return this.find("~ "+f)},prev:function(f){var g=[];this.each(function(i){var h=i.previousSibling;if(h){g.push(h)}});return d(g).find(f)},prevAll:function(f){var g=[];this.each(function(i){var h=i.previousSibling;while(h){g.push(h);h=h.previousSibling}});return d(g).find(f)},children:function(f){f=f||"*";return this.find("> "+f)},nth:function(h,f){var g=-1;this.find(f).each(function(k,j){if(k!=h){return}g=j;return true});return(g==-1)?-1:(g+1)},appendToPos:function(f){if(!(f instanceof d.Query)){f=d(f)}if(f.css("position")==="static"){f.css("position","relative")}return this.appendTo(f)},remove:function(){for(var f=0;f0)?d.EL.get(this[0],"value"):null}if(d.T.isFunction(f)){this.each(function(h,g){var j=f.call(h,h,g);if(d.T.isString(j)){d.EL.set(h,"value",j)}})}else{this.each(function(g){d.EL.set(g,"value",f)})}return this},attr:function(i,h){if(arguments.length==1){if(d.T.isString(i)){return d.EL.get(this[0],i)}for(var f in i){var g=i[f];this.each(function(j){d.EL.set(j,f,g)})}}else{if(arguments.length==2){this.each(function(j){d.EL.set(j,i,h)})}}return this},removeAttr:function(f){this.each(function(g){d.EL.remove(g,f)});return this},className:function(f){if(this.length==0){return this}if(f===d.u){return d.EL.className(this[0])}d.EL.className(this[0],f);return this},addClass:function(f){this.each(function(h){var j=d.AR.toArray(f,d.R.SPACE);for(var g=0;g0)?d.EL.hasClass(this[0],f):false},toggleClass:function(f){return this.hasClass(f)?this.removeClass(f):this.addClass(f)},style:function(f){if(f===d.u){return d.EL.style(this[0])}this.each(function(g){d.EL.style(g,f)});return this},css:function(g,f){if(!g){return this}if(f===d.u){if(d.T.isString(g)){return d.EL.css(this[0],g)}this.each(function(h){d.each(g,function(j,i){d.EL.css(h,i,j)})})}else{this.each(function(h){d.EL.css(h,g,f)})}return this},cssNum:function(f){return d.EL.cssNum(this[0],f)},cssMaybe:function(f,g){if(d.T.isNil(g)){return this}this.css(f,g);return this},opacity:function(f){return this.css("opacity",f)},display:function(f){return this.css("display",f)},inline:function(){return this.display("inline")},block:function(){return this.display("block")},inBlock:function(){return this.display("inline-block")},isHidden:function(){return"hidden"===this.css("visibility")},hidden:function(){return this.css("visibility","hidden")},visible:function(){return this.css("visibility","visible")},isHide:function(){return"none"===this.display()},hide:function(){this.each(function(f){var g=d.EL.css(f,"display");if(g!=null&&g!=="none"){d.EL.set(f,"data-zhiqim-display",g)}d.EL.css(f,"display","none")});return this},show:function(){this.each(function(f){var g=d.EL.get(f,"data-zhiqim-display");if(g==null||g==="none"){g=d.H.displayDefault(f.nodeName)}d.EL.css(f,"display",g)});return this},toggle:function(){return this.isHide()?this.show():this.hide()},text:function(f){if(this.length>0){if(f===d.u){return d.EL.text(this[0])}else{d.EL.text(this[0],f)}}return this},html:function(f){if(this.length>0){if(f===d.u){return d.EL.html(this[0])}else{d.EL.html(this[0],f)}}return this},htmlc:function(f){if(this.length>0){if(f===d.u){return d.EL.htmlc(this[0])}else{d.EL.htmlc(this[0],f)}}return this},htmlx:function(){if(this.length==0){return null}var f=d.EL.html(this[0]);f=d.S.replaceAll(f,'readonly=""',"readonly");f=d.S.replaceAll(f,'disabled=""',"disabled");f=d.S.replaceAll(f,'checked=""',"checked");f=d.S.replaceAll(f,'selected=""',"selected");f=d.S.replaceAll(f,'single=""',"single");f=d.S.replaceAll(f,'multiple=""',"multiple");if(f.indexOf("")==-1){f=d.S.replaceAll(f,"","");f=d.S.replaceAll(f,"","")}return f},htmlt:function(){if(this.length==0){return null}var f=this.htmlx();f=d.S.replaceAll(f,"<","<");f=d.S.replaceAll(f,">",">");return f},htmls:function(){if(this.length==0){return null}return d("
").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;i0&&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='
';if(d){e+='"}else{e+='';a(document).keydown(i)}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='
';e+='';e+=''+f+"
";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+='';e+=''+e+'
'+k+"
";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='
';b+='';b+='");this.$file.appendTo("body").change(this.onFileOpenWindow,this);this.$elem.click(function(){this.clear();this.$file[0].click()},this)},onFileOpenWindow:function(){this.file=this.$file[0].files[0];if(!a.T.isFunction(this.onPreview)){this.upload()}else{var b=new FileReader();b.onload=a.bind(function(c){this.onPreview(c.target.result)},this);b.readAsDataURL(this.file)}},onUploadError:function(){this.$elem.text(this.text);this.clear();alert("文件上传连接服务器失败:"+this.request.responseText)},onUploadSuccess:function(){if(this.request.readyState!=4){return}this.$elem.text(this.text);this.clear();switch(this.request.status){case 404:alert("文件上传时服务器不支持");return;case 403:alert("文件上传时被服务器拒绝");return;case 412:alert("文件上传时服务器诊断参数格式错误");return;case 400:alert("文件上传时服务器诊断参数传值错误");return;case 200:var b=this.request.getResponseHeader("X-Upload-File-Url");if(!b){alert("文件上传时服务器异常");return}if(a.T.isFunction(this.onCompleted)){this.onCompleted(b)}return;default:alert("文件上传时服务器未知错误:"+this.request.status);return}},upload:function(){this.$elem.text("正在上传");this.request=new XMLHttpRequest();this.request.open("POST",a.rootPath(this.contextPath,"/service/upload"),true);this.request.setRequestHeader("Content-Type",this.file.type);this.request.setRequestHeader("Content-Length",this.file.size);if(this.fileDir){this.request.setRequestHeader("X-Upload-File-Dir",encodeURIComponent(this.fileDir))}this.request.setRequestHeader("X-Upload-File-Name",encodeURIComponent(this.file.name));this.request.onreadystatechange=a.bind(this.onUploadSuccess,this);this.request.onerror=a.bind(this.onUploadError,this);this.request.send(this.file)},clear:function(){this.$file[0].value=null;this.file=null},setFileDir:function(b){this.fileDir=b;return this},setFileFormatExt:function(b){this.fileFormatExt=b;return this}}})(zhiqim);+(function(a){a.Uploadmult=a.Class.newInstance();a.Uploadmult.prototype={defaults:{elem:null,contextPath:null,onPreview:null,onCompleted:null,fileFormatExt:"image/png,image/jpeg,image/jpg,image/gif",},execute:function(){this.$elem=a.$elem(this.elem,"Z.Uploadmult");this.random=a.random(10);this.text=this.$elem.text();this.$file=a("
");d.append("
"+this.results[c].name+" ("+(Math.floor(this.results[c].size/1024))+"K)
");d.append("");var b=a("
").appendTo(d);b.css({position:"absolute",top:2,right:2,cursor:"pointer"}).attr("name",this.results[c].name).html("×").click(this.onFileRemove,this);e.append(d)}},clear:function(){this.$file[0].value=null;this.files=null;this.results=null;this.fileResults=null},setFileDir:function(b){this.fileDir=b;return this},setFileFormatExt:function(b){this.fileFormatExt=b;return this}}})(zhiqim);