Zhiqim UI是一套集成Javascript库、Css库、Font库、常用ico图标等,并在其上开发的大量UI组件组成的前端开发套件。

森中灵 最后提交于11月前 整理V8.0.6
zhiqim.mobile_v8.0.6.min.js116KB
/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_framework/zhiqim_ui.htm
 *
 * Zhiqim UI is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
+(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="8.0.4";Z.u=undefined;Z.d=window.document;Z.l=window.location;Z.n=window.navigator;Z.ua=Z.n.userAgent.toLowerCase();Z.cp="/";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.param=function(name){var reg=new RegExp("(^|&)"+name+"=([^&]*)(&|$)");var r=Z.l.search.substr(1).match(reg);return(r==null)?null:unescape(r[2])};Z.write=function(value){document.write(value)};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.encode=function(value){return encodeURIComponent(value)};Z.decode=function(value){return decodeURIComponent(value)};Z.parseFloat=function(value){return parseFloat(value)};Z.parseInt=function(value){return parseInt(value)};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("<textarea class='z-hidden-fixed'></textarea>").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<arguments.length-1;a++){args[a]=arguments[a+1]}if(Z.T.isString(object)){for(var i=0;i<object.length;i++){args[0]=object.charAt(i);args[1]=i;if(callback.apply($this?$this:args[0],args)){return true}}}else{if(Z.T.isNumber(object)){for(var n=0;n<object;n++){args[0]=n;args[1]=n;if(callback.apply($this?$this:args[0],args)){return true}}}else{if(Z.T.isLikeArray(object)){for(var ind=0;ind<object.length;ind++){args[0]=object[ind];args[1]=ind;if(callback.apply($this?$this:args[0],args)){return true}}}else{for(var key in object){if(!Z.O.isOwn(object,key)){continue}args[0]=object[key];args[1]=key;if(callback.apply($this?$this:args[0],args)){return true}}}}}};Z.clone=function(obj){if(Z.T.isNil(obj)||Z.T.isPrimitive(obj)){return obj}if(Z.T.isPlainObject(obj)){var object={};for(var key in obj){object[key]=Z.clone(obj[key])}return object}if(obj instanceof Z.HashMap){var map=new Z.HashMap();Z.each(obj.keySet(),function(key){map.put(key,obj.get(key))});return map}var type=Z.O.toString(obj);switch(type){case"Function":return obj;case"Date":return new Date(obj);case"RegExp":return new RegExp(obj);case"Array":var array=[];for(var i=0;i<obj.length;i++){array[i]=Z.clone(obj[i])}return array;default:return obj}};Z.onload=function(f){var args=[];for(var i=1;i<arguments.length;i++){args.push(arguments[i])}if(!Z.loader){Z.loader=new Z.Loader()}if(Z.loader.isLoad){f.apply(document,args)}else{Z.loader.push(f,args)}};Z.random=function(length,type){var send=Z._DL_;maxLength=62;if(type&&Z.V.isIntegerPositive(type)){switch(type){case 1:maxLength=10;send=Z._D_;break;case 2:maxLength=52;send=Z._L_;break;case 3:maxLength=26;send=Z._LU_;break;case 4:maxLength=26;send=Z._LL_;break;case 5:maxLength=36;send=Z._DLU_;break;case 6:maxLength=36;send=Z._DLL_;break;case 7:maxLength=16;send=Z._DHU_;break;case 8:maxLength=16;send=Z._DHL_;break;case 9:maxLength=10;send=Z._SYM_;break}}var result="";for(var i=0;i<length;i++){result+=send.charAt(Math.floor(Math.random()*maxLength))}return result};Z.uuid=function(){var uid="",i=0,j=0;var HEX_LETTERS=Z._DHU_.split("");for(i=0;i<8;i++){uid+=HEX_LETTERS[Math.floor(Math.random()*16)]}for(i=0;i<3;i++){for(j=0;j<4;j++){uid+=HEX_LETTERS[Math.floor(Math.random()*16)]}}var time=new Date().getTime();uid+=("0000000"+time.toString(16).toUpperCase()).substr(-8);for(i=0;i<4;i++){uid+=HEX_LETTERS[Math.floor(Math.random()*16)]}return uid};Z.timer=function(speed,times,$this,process,complete){if(!Z.T.isNumber(speed)||!Z.T.isNumber(times)){return}var timer=null;if(times==-1){timer=setInterval(stepNoEnd,speed)}else{timer=setInterval(stepHasEnd,speed)}function stepNoEnd(){if(process){process.call($this)}}var curTimes=0;function stepHasEnd(){curTimes+=1;if(curTimes>=times){clearInterval(timer);if(complete){complete.call($this)}}else{if(process){process.call($this,curTimes)}}}return timer};Z.rootPath=function(contextPath,path){contextPath=contextPath||Z.cp;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('<textarea class="z-fixed-tl0 zi-pd0 z-hidden z-bd-none z-overflow-hidden z-text-break z-lh50 z-h50">'+text+"</textarea>").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]){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("<zcover></zcover>").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;i<obj.length;i++){for(var name in obj[i]){target[name]=Z.clone(obj[i][name])}}}else{for(var key in obj){target[key]=Z.clone(obj[key])}}}};Z.Loader=Z.Class.newInstance();Z.Loader.prototype={defaults:{isLoad:false,isInitialize:false,functions:[],parameters:[]},init:function(){if(this.isInitialize){return}this.isInitialize=true;if(document.readyState==="complete"){this.completed();return}Z.E.add(document,"DOMContentLoaded",this.completed,this);Z.E.add(window,"load",this.completed,this)},push:function(f,a){var len=this.functions.length;this.functions[len]=f;this.parameters[len]=a},completed:function(){if(this.isLoad){return}this.isLoad=true;if(!this.functions){return}for(var i=0;i<this.functions.length;i++){this.functions[i].apply(document,this.parameters[i])}this.functions=null;this.parameters=null;Z.E.remove(document,"DOMContentLoaded",this.completed,this);Z.E.remove(window,"load",this.completed,this)}};Z.HashMap=Z.Class.newInstance();Z.HashMap.prototype={defaults:{_keys:[],_values:[]},size:function(){return this._keys.length},isEmpty:function(){return this._keys.length==0},containsKey:function(key){return Z.AR.indexOf(this._keys,key)!=-1},containsValue:function(value){return Z.AR.indexOf(this._values,value)!=-1},put:function(key,value){var ind=Z.AR.indexOf(this._keys,key);if(ind!=-1){this._values[ind]=value}else{var len=this._keys.length;this._keys[len]=key;this._values[len]=value}},get:function(key){var ind=Z.AR.indexOf(this._keys,key);if(ind==-1){return null}else{return this._values[ind]}},remove:function(key){var ind=Z.AR.indexOf(this._keys,key);if(ind==-1){return}this._keys.splice(ind,1);this._values.splice(ind,1)},keySet:function(){return this._keys},values:function(){return this._values},clear:function(){this._keys.length=0;this._values.length=0},oString:function(){return"Z.HashMap"}};Z.Draggable=Z.Class.newInstance();Z.Draggable.prototype={defaults:{elem:null,param:null,drag:null,cursor:"move",callback:null,callthis:null,startX:0,startY:0,dragging:false},execute:function(){if(!this.elem||!this.elem.nodeType){alert("[Z.Draggable]没有指定拖拽对象或拖拽对象不支持");return}if(this.param){this.drag=this.param.drag||this.elem;this.cursor=this.param.cursor||"move";if("left" in this.param){this.left=this.param.left}if("top" in this.param){this.top=this.param.top}if("right" in this.param){this.right=this.param.right}else{if("left" in this&&"width" in this.param){this.right=this.left+this.param.width}}if("bottom" in this.param){this.bottom=this.param.bottom}else{if("top" in this&&"height" in this.param){this.bottom=this.top+this.param.height}}}Z(this.drag).css("cursor",this.cursor).mousedown(this.doStartDrag,this)},close:function(){Z(this.drag).offmousedown(this.doStartDrag,this)},doStartDrag:function(e){this.buttons=e.buttons;this.startX=Z.E.clientX(e)-Z(this.elem).offsetLeft()+parseInt(Z(this.elem).css("marginLeft"));this.startY=Z.E.clientY(e)-Z(this.elem).offsetTop()+parseInt(Z(this.elem).css("marginTop"));Z(document).mousemove(this.doDragging,this).mouseup(this.doStopDrag,this);if(Z.T.isFunction(this.callback)){this.callback.call(this.callthis||this,e,this.dragging)}},doDragging:function(e){Z.E.cancel(e);if(!e.buttons||e.buttons!==this.buttons){return this.doStopDrag.call(this,e)}var offsetLeft=Z.E.clientX(e)-this.startX;var offsetTop=Z.E.clientY(e)-this.startY;if(this.param){if("left" in this&&offsetLeft<this.left){offsetLeft=this.left}if("right" in this&&offsetLeft>this.right){offsetLeft=this.right}if("top" in this&&offsetTop<this.top){offsetTop=this.top}if("bottom" in this&&offsetTop>this.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(d,b.R.SPACE);var f=" "+e.className.replace(/\s\s/g," ")+" ";g.map(function(h){h=" "+h.trim()+" ";if(f.indexOf(h)===-1){return}f=f.replace(h," ").replace(/\s\s/g," ")});e.className=f.trim()},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}},htmls:function(d,e){if(!d||!d.nodeType){return}if(e===b.u){return d.outerHTML}else{d.outerHTML=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<n.length;g++){var e=n[g];var o=e.innerHTML;var m=e.getAttribute("src");if(b.V.isEmptyBlank(o)&&(m===null||b.V.isEmptyBlank(o))){continue}var h=document.createElement("script");var l=e.attributes;for(var f=0;f<l.length;f++){h[l[f].name]=l[f].value}h.innerHTML=o;e.insertAdjacentElement("afterend",h);e.parentNode.removeChild(e)}},text:function(d,e){if(!d||!d.nodeType){return}if(e===b.u){if(this.has(d,"innerText")){return d.innerText}else{return d.textContent}}else{if(this.has(d,"innerText")){d.innerText=e}else{d.textContent=e}}},append:function(d,e){if(!d||!d.nodeType){return}if(b.T.isElement(e)){return d.appendChild(e)}else{if(b.T.isString(e)){d.insertAdjacentHTML("beforeend",e)}}},prepend:function(d,e){if(!d||!d.nodeType||d.nodeType!=1){return}if(b.T.isElement(e)){return d.insertBefore(e,d.firstNode)}else{if(b.T.isString(e)){d.insertAdjacentHTML("afterbegin",e)}}},before:function(e,d){if(!e||!e.nodeType||!e.parentNode){return}if(b.T.isElement(d)){e.parentNode.insertBefore(d,e)}else{if(b.T.isString(d)){e.insertAdjacentHTML("beforebegin",d)}}},after:function(e,d){if(!e||!e.nodeType||!e.parentNode){return}if(b.T.isElement(d)){e.parentNode.insertBefore(d,e.nextSibling)}else{if(b.T.isString(d)){e.insertAdjacentHTML("afterend",d)}}},replace:function(e,d){if(!e||!e.nodeType||!e.parentNode){return}e.parentNode.replaceChild(d,e)},remove:function(f,e){if(!f||!f.nodeType){return}if(!e){var d=f.parentNode;if(d!=null){d.removeChild(f)}}else{if(f.hasAttribute(e)){f.removeAttribute(e)}else{f[e]=""}}},offsetLeft:function(d){return(!b.B.firefox)?d.offsetLeft:this.offsetFirefox(d,"offsetLeft","borderLeftWidth")},offsetTop:function(d){return(!b.B.firefox)?d.offsetTop:this.offsetFirefox(d,"offsetTop","borderTopWidth")},offsetLeftBody:function(d){if(b.B.webkit){return this.offsetBodyWebkit(d,"offsetLeft","borderLeftWidth")}else{if(b.B.msieVer<=8){return this.offsetBodyIE(d,"offsetLeft","borderLeftWidth")}else{return this.offsetBodyFirefox(d,"offsetLeft")}}},offsetTopBody:function(d){if(b.B.webkit){return this.offsetBodyWebkit(d,"offsetTop","borderTopWidth")}else{if(b.B.msieVer<=8){return this.offsetBodyIE(d,"offsetTop","borderTopWidth")}else{return this.offsetBodyFirefox(d,"offsetTop")}}}};b.EL.siblingByTd=function(h,f){if("offsetLeft"==f){var e=h.previousSibling;if(e instanceof Text){e=h.previousSibling.previousSibling}return e}else{var g=this.parentIndex(h);var d=h.parentNode;var e=d.previousSibling;if(e instanceof Text){e=d.previousSibling.previousSibling}if(e){return e.childNodes[g]}return e}};b.EL.offsetFirefox=function(e,k,h){var f=e.offsetParent;if(!(f instanceof HTMLTableCellElement)||this.css(f,"borderCollapse")==="separate"){return e[k]-this.cssNum(f,h)}var g=this.cssNum(f,h);var j=this.cssNum(f.offsetParent,h);var i=("offsetLeft"==k)?"borderRightWidth":"borderBottomWidth";var l=this.siblingByTd(f,k);var d=l?this.cssNum(l,i):j;return e[k]-Math.max(g,d)};b.EL.offsetBodyFirefox=function(f,e,d){var g=f[e];while(f.offsetParent&&f.offsetParent.tagName!="BODY"&&f.offsetParent.tagName!="HTML"){f=f.offsetParent;g+=f[e];if(d){g+=b.S.prefixNum(this.css(f,d))}}if(b.EL.css(f,"position")=="fixed"){if(e=="offsetLeft"){g+=b.body().scrollLeft+document.documentElement.scrollLeft}else{if(e=="offsetTop"){g+=b.body().scrollTop+document.documentElement.scrollTop}}}return g};b.EL.offsetBodyIE=function(e,j,g){if(!(e.offsetParent instanceof HTMLTableCellElement)){return this.offsetBodyFirefox(e,j,g)}var h=("offsetLeft"==j)?"borderRightWidth":"borderBottomWidth";var k=e[j];var e=e.offsetParent;while(e){k+=e[j];if(!(e instanceof HTMLTableCellElement)){k+=b.S.prefixNum(this.css(e,g));e=e.offsetParent;continue}var m=this.css(e.offsetParent,"borderCollapse");var f=this.cssNum(e,g);if(m=="separate"){k+=f}else{var i=this.cssNum(e.offsetParent,g);var l=this.siblingByTd(e,j);var d=l?this.cssNum(l,h):i;k+=Math.max(f,d)/2}k+=e.offsetParent[j];e=e.offsetParent.offsetParent}return k};b.EL.offsetBodyWebkit=function(e,j,g){if(!(e.offsetParent instanceof HTMLTableCellElement)){return this.offsetBodyFirefox(e,j,g)}var h=("offsetLeft"==j)?"borderRightWidth":"borderBottomWidth";var k=e[j];var e=e.offsetParent;while(e){k+=e[j];if(!(e instanceof HTMLTableCellElement)){k+=this.cssNum(e,g);e=e.offsetParent;continue}var m=this.css(e.offsetParent,"borderCollapse");var f=this.cssNum(e,g);var i=this.cssNum(e.offsetParent,g);if(m=="separate"){k+=f;k+=i}else{var l=this.siblingByTd(e,j);if(l){var d=this.cssNum(l,h);k+=Math.max(d,f)/2;k+=i/2}else{k+=Math.max(f,i)}}k+=e.offsetParent[j];e=e.offsetParent.offsetParent}return k};b.H=b.Html={wrapMap:{option:[1,"<select multiple='multiple'>","</select>"],optgroup:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tbody:[1,"<table>","</table>"],tfoot:[1,"<table>","</table>"],colgroup:[1,"<table>","</table>"],caption:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],th:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_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></$2>");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"?"<!doctype html>":"")+"<html><body>");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(d,f){b.A.assertNotEmptyBlank(d,"Z.Location的所有函数url不能为空");f=f||window;if(f==="open"||f==="blank"){var e=b("<a></a>").appendTo("body");e.attr({href:d,target:"blank"})[0].click();e.remove()}else{if(f.name&&f.name=="zCallFrame"){d+=((d.indexOf("?")==-1)?"?":"&")+"zCallFrame=true";f.location.href=d}else{f.location.href=d}}},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+"="+b.encode(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+"="+b.encode(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){if(!g||!g.name||b.V.isEmptyBlank(g.name)){return}var f=escape(b.S.trim(g.name));var h=escape(g.value||"");var d=f+"="+h;if(b.T.isNumber(g.expires)||b.V.isInteger(g.expires)){var e=new Date();e.setTime(e.getTime()+(+g.expires*1000));d+=";expires="+e.toGMTString()}d+=(g.path)?";path="+g.path:"";d+=(g.domain)?";domain="+g.domain:"";d+=(g.secure===true)?";secure":"";document.cookie=d},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=document.cookie.split(";");for(var f=0;f<g.length;f++){var e=g[f].split("=");if(b.S.trim(e[0])==d){return unescape(e[1])}}return""}}})(zhiqim);+(function(d){var b=Object.prototype.hasOwnProperty,a=String.prototype.trim,c=Object.prototype.toString;d.A=d.Asserts={assertNotEmpty:function(f,e){d.assert(!d.V.isEmpty(f),"assertNotEmpty",e)},assertNotEmptyBlank:function(f,e){d.assert(!d.V.isEmptyBlank(f),"assertNotEmptyBlank",e)}};d.O=d.Objects={isOwn:function(e,f){return b.call(e,f)},isCommon:function(e,f){if(!d.O.isOwn(e,f)){return false}if(!d.T.isNumber(f)&&!d.T.isString(f)){return false}if(d.T.isFunction(e[f])){return false}return true},toString:function(e){if(e===d.u){return"undefined"}else{if(e===null){return"null"}else{return c.call(e).slice(8,-1)}}},toStyleString:function(h){var e="";for(var f in h){if(!this.isCommon(h,f)){continue}var g=h[f];if(d.T.isNil(g)){continue}e+=f+":"+g+";"}},toJSONString:function(h){var e="{";for(var f in h){if(!this.isCommon(h,f)){continue}var g=h[f];if(d.T.isNil(g)){g=null}e+=d.Jsons.toKey(f)+":"+d.Jsons.toString(g)+","}if(e.length>1){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){if(e==null||e===""){return true}e+="";return e.length<1},isNotEmpty:function(e){return !d.V.isEmpty(e)},isEmptyBlank:function(f){if(f==null||f===""){return true}f+="";if(f.length<1){return true}for(var e=0;e<f.length;e++){if(f.charAt(e)>String.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+"="+d.encode(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;e<g;e++){var f=h.elements[e];if(f.type=="text"||f.type=="textarea"){f.value=""}else{if(f.type=="select-one"){if(f.options.length>0){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;g<e.length;g++){if(e[g].checked){return e[g].value}}d.alert("请选择一个选项");throw"请选择一个选项"}},getCheckeds:function(e,f){var g=d.FM.getCheckBoxValue(e,f);if(d.V.isEmpty(g)){d.alert("请至少选择一项");throw"请至少选择一项"}return g},getCheckBoxValue:function(g,h){var f=h?h.elements:d.D.names(g?g:"*");var i="",e=true;d.each(f,function(j){if(j.type=="checkbox"&&j.checked){if(g&&g!=j.name){return}if(e){i=j.value;e=false}else{i+=","+j.value}}});return i},doSelectCheckBox:function(f,i,h){if(d.T.isBoolean(i)){i=i?1:2}i=i||0;var e=h?h.elements:d.D.names(f?f:"*");d.each(e,function(j){if(j.type!="checkbox"){return}if(f&&f!=j.name){return}switch(i){case 1:j.checked=true;break;case 2:j.checked=false;break;default:j.checked=!j.checked;break}});if(d.Checkbox){var g=(h?d(h):d(document)).find(".z-checkbox"+(f?"[data-name="+f+"]":""));g.each(function(k){var j=d(k);switch(i){case 1:j.addClass("z-active");break;case 2:j.removeClass("z-active");break;default:j.toggleClass("z-active");break}})}},doSelectCheckBoxTree:function(f,h,i,g){var e=g?g.elements:d.D.names(f?f:"*");d.each(e,function(k){if(k.type!="checkbox"){return}if(f&&f!=k.name){return}if(k.value.length>i.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.length<i.length){var j=k.value.length;var m=i.substring(0,j);if(m==k.value){if(h){k.checked=true}}}}})}};d.J=d.Jsons={toObject:function(e){if(JSON&&JSON.parse){return JSON.parse(e)}else{return d.evals(e)}},toString:function(f){if(JSON&&JSON.stringify){return JSON.stringify(f)}if(d.T.isNil(f)||d.T.isFunction(f)){return"null"}var e=d.O.toString(f);switch(e){case"String":return'"'+d.Jsons.addEscapeChar(f,'"')+'"';case"Number":return String(f);case"Boolean":return String(f);case"Date":return d.DT.toDateTimeString(f);case"RegExp":return d.Jsons.toString(f.toString());case"Array":return d.AR.toJSONString(f);default:if(d.T.isLikeArray(f)){return d.AR.toJSONString(f)}else{return d.O.toJSONString(f)}}},toKey:function(e){return'"'+(d.T.isNumber(e)?e:d.Jsons.addEscapeChar(e,'"'))+'"'},addEscapeChar:function(g,f){var e="";d.each(g,function(h){switch(h){case"\\":e+="\\\\";return;case'"':if(!f||f=='"'){e+='\\"'}return;case"'":if(!f||f=="'"){e+="\\'"}return;case"\b":e+="\\b";return;case"\f":e+="\\f";return;case"\r":e+="\\r";return;case"\n":e+="\\n";return;case"\t":e+="\\t";return;case"/":e+="\\/";return;default:e+=h;return}});return e}};d.DT=d.DateTimes={getDateTimeString:function(){var e=new Date();return e.getFullYear()+"-"+d.S.prefixZero(e.getMonth()+1,2)+"-"+d.S.prefixZero(e.getDate(),2)+" "+d.S.prefixZero(e.getHours(),2)+":"+d.S.prefixZero(e.getMinutes(),2)+":"+d.S.prefixZero(e.getSeconds(),2)},getDateString:function(){var e=new Date();return e.getFullYear()+"-"+d.S.prefixZero(e.getMonth()+1,2)+"-"+d.S.prefixZero(e.getDate(),2)},getCurrentYear:function(){return new Date().getFullYear()},getCurrentMonth:function(){return new Date().getMonth()+1},getCurrentMonthDays:function(){var e=new Date();var f=e.getFullYear();var g=e.getMonth()+1;return this.getMonthDays(f,g)},getCurrentDay:function(){return new Date().getDate()},getMonthDays:function(e,f){switch(f){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return 31;case 4:case 6:case 9:case 11:return 30;default:return d.V.isLeapYear(e)?29:28}},getDateWeek:function(g,h,e){var f=new Date(g,h-1,e).getDay();return f==0?7:f},toDateString:function(e){return e.getFullYear()+"-"+d.S.prefixZero(e.getMonth()+1,2)+"-"+d.S.prefixZero(e.getDate(),2)},toTimeString:function(e){return d.S.prefixZero(e.getHours(),2)+":"+d.S.prefixZero(e.getMinutes(),2)+":"+d.S.prefixZero(e.getSeconds(),2)},toDateTimeString:function(e){return d.DT.toDateString(e)+" "+d.DT.toTimeString(e)},toDate:function(f,g){var h;if(d.V.isDateTime(f)){h=f}else{if(!d.V.isDate(f)){return null}h=f+" "+(d.V.isTime(g)?g:"00:00:00")}var e=h.match(d.R.DATE_TIME_MATCH);return e?new Date(e[1],e[2]-1,e[3],e[4],e[5],e[6],0):null}};d.AR=d.Arrays={first:function(e){return(!e||!e.length||e.length==0)?null:e[0]},last:function(e){return(!e||!e.length||e.length==0)?null:e[e.length-1]},indexOf:function(g,f){if(!g||!g.length){return -1}if(g.indexOf){return g.indexOf(f)}for(var e=0;e<g.length;e++){if(f===g[e]){return e}}return -1},contains:function(f,e){return d.AR.indexOf(f,e)!=-1},remove:function(g,f){var e=d.AR.indexOf(g,f);if(e!=-1){g.splice(e,1)}},toArray:function(j,k){if(!j||!k){return[]}var g=j.split(k);if(!g){return[]}var e=[];for(var f=0;f<g.length;f++){var h=d.S.trim(g[f]);if(!d.V.isEmpty(h)){e.push(h)}}return e},toObject:function(j,m){var l={};var g=this.toArray(j,m);for(var f=0;f<g.length;f++){var k=g[f].split(":");if(k.length<2){continue}var e=d.S.trim(k[0]);if(e.length==0){continue}while(e.charAt(e.length-1)=="-"){e=e.substring(0,e.length-1)}if(e.length==0){continue}while(e.indexOf("-")!=-1){var h=e.indexOf("-");e=e.substring(0,h)+e.charAt(h+1).toUpperCase()+e.substring(h+2)}l[e]=k[1]}return l},toString:function(f,g){if(!f||!f.length){return""}g=g||",";var e="";d.each(f,function(h){e+=h+g});if(e.length>0){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;f<g.length;f++){if(g.charCodeAt(f)>127){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;f<g.length;f++){if(g.charCodeAt(f)>127){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<g.length;f++){var h=g.charCodeAt(f);if(h<=127){e.push(h)}else{if(h<=2047){e.push(192|((h>>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<e.length;g++){f+=d.S.prefixZero((e[g]&255).toString(16),2)}return f.toUpperCase()},prefixZero:function(f,e){return d.S.prefixLen(f,e,"0")},prefixLen:function(j,f,h){if(!h){h="0"}var e="";for(var g=0;g<f;g++){e+=h}j=e+j;return j.substring(j.length-f)},prefixNum:function(g){if(!g){return 0}if(d.T.isNumber(g)){return g}if(!d.T.isString(g)){g=String(g)}if(d.V.isEmpty(g)){return 0}var e="-"==g.charAt(0);if(e){g=g.substring(1)}var f="";d.each(g,function(h){if((h<"0"||h>"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<f;j++){w=w/10}}if(e!=0){v=((r)?-k:k)*u;for(j=0;j<e;j++){v=v/10}}if(f!=0&&e!=0){t=((n)?-q:q)*((r)?-k:k);for(j=0;j<(f+e);j++){t=t/10}}return t+v+w+p}};d.AM=d.Amounts={toYuan:function(e){var f=(+e/100).toString();var g=f.indexOf(".");return(g==-1)?f:f.substring(0,g+3)},toYuanMustRadix:function(f){var g=(+f/100).toString();var h=g.indexOf("."),e=g.length;if(h==-1){return g+".00"}else{if(h==e-2){return g+"0"}else{return g.substring(0,h+3)}}},toFen:function(f,e){if(d.T.isNumber(f)){return d.Maths.multiply(f,100)}if(!d.V.isAmount2R(f)){return e||0}return d.Maths.multiply(+f,100)}};d.Colors={toString:function(e){var f=e.toString(16);return"#"+d.S.prefixZero(f,6)},toInt:function(e){if(!e||(e.length!=4&&e.length!=7)){return 0}e=e.substring(1);if(e.length==3){e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]}return parseInt(e,16)},toArray:function(g){if(!d.T.isString(g)&&!d.T.isNumber(g)){return[0,0,0]}var h;if(d.T.isString(g)){h=g}else{h=this.toString(g)}var k=g.substring(1,3);var i=g.substring(3,5);var f=g.substring(5);var j=parseInt(k,16);var l=parseInt(i,16);var e=parseInt(f,16);return[j,l,e]}}})(zhiqim);+(function(d){var a=["div","ul","li","ol","dl","dt","dd","menu","dir","table","th","tbody","tr","td","iframe","frameset","frame","noframes","blockquote","center","pre","sup","sub","strike","fieldset","legend","p","span","font","br","h1","h2","h3","h4","h5","h6","hr","address","i","b","u","strong","em","form","input","select","textarea","button","a","img","map"];if(d.B.msieVer<=8){if(document.querySelectorAll){document.querySelectorAllNoParam=document.querySelectorAll}document.querySelectorAll=function(f){try{if(f==null){return document.querySelectorAllNoParam()}var g=[];var h=document.querySelectorAllNoParam(f);d.each(h,function(j){g.push(j)});return g}catch(i){return[]}};document.querySelector=function(f){var g=document.querySelectorAll(f);return(g.length)?g[0]:null}}d.Q=d.Query=d.Class.newInstance();d.Q.fn=d.Query.prototype={defaults:{selector:"",length:0},init:function(){var g;if(!this.selector){return this}if(this.selector.nodeType||d.T.isWindow(this.selector)){this[0]=this.selector;this.length=1;return this}if(d.T.isLikeArray(this.selector)){for(g=0;g<this.selector.length;g++){this[g]=this.selector[g]}this.length=this.selector.length;return this}if(d.T.isFunction(this.selector)){d.onload(this.selector);this[0]=this.selector;this.length=1;return this}if(!d.T.isString(this.selector)){return this}if(this.selector==="body"&&document.body){this[0]=document.body;this.length=1;return this}if(this.selector.charAt(0)==="<"&&this.selector.charAt(this.selector.length-1)===">"&&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<h.length;g++){this[g]=h[g]}this.length=h.length;return this},each:function(){var f=[this,this];for(var g=0;g<arguments.length;g++){f[g+2]=arguments[g]}return d.eachof.apply(this,f)},size:function(){return this.length},find:function(f){if(this.length==0||(f!==d.u&&!d.T.isString(f))){return d(null)}if(d.T.isDocument(this[0])){return d(document.querySelectorAll(f))}f=f||"*";var h=this[0].getAttribute("id");if(h!==null){var g=h;if(d.V.isNotEmpty(h)){if(d(document.querySelectorAll('[id="'+h+'"]')).length===1){return d(document.querySelectorAll('[id="'+h+'"] '+f))}}}h="_zhiqim_selector_"+d.random(4)+"_";d.EL.set(this[0],"id",h);try{return d(document.querySelectorAll('[id="'+h+'"] '+f))}finally{if(g!==d.u){d.EL.set(this[0],"id",g)}else{d.EL.remove(this[0],"id")}}},parent:function(){return d(d.EL.parent(this[0]))},siblings:function(f){f=f||"*";var g=d.EL.get(this[0],"id");if(d.V.isNotEmpty(g)){return this.parent().find("> "+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;f<this.length;f++){d.EL.remove(this[f])}return this},val:function(f){if(f===d.u){return(this.length>0)?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;g<j.length;g++){d.EL.addClass(h,j[g])}});return this},removeClass:function(f){this.each(function(h){var j=d.AR.toArray(f,d.R.SPACE);for(var g=0;g<j.length;g++){d.EL.removeClass(h,j[g])}});return this},hasClass:function(f){return(this.length>0)?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},htmls:function(f){if(this.length>0){if(f===d.u){return d.EL.htmls(this[0])}else{d.EL.htmls(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("<thead>")==-1){f=d.S.replaceAll(f,"<tbody>","");f=d.S.replaceAll(f,"</tbody>","")}return f},htmlt:function(){if(this.length==0){return null}var f=this.htmlx();f=d.S.replaceAll(f,"<","&lt;");f=d.S.replaceAll(f,">","&gt;");return f},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},scrollWidth:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.scrollWidth(this[0])}else{return this[0].scrollWidth}},scrollHeight:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.scrollHeight(this[0])}else{return this[0].scrollHeight}},scrollLeft:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.scrollLeft(this[0])}else{return this[0].scrollLeft}},scrollTop:function(){if(this.length==0||!this[0].nodeType){return 0}if(d.T.isDocument(this[0])){return d.D.scrollTop(this[0])}else{return this[0].scrollTop}},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<n.length;i++){if(n[i] in this[0]){this[0][n[i]]=d.S.prefixNum(this[0][n[i]])+m[i]}else{this.css(n[i],this.cssNum(n[i])+m[i])}}},function(){for(var i=0;i<n.length;i++){if(n[i] in this[0]){this[0][n[i]]=o[i]}else{this.css(n[i],o[i])}if(d.T.isFunction(h)){h.apply(this[0])}}});return this},fadeTo:function(j,h,f){j=(!d.T.isNumber(j)||j<13)?200:j;h=h||1;var k=Math.ceil(j/13);var g=0;var i=h/k;this.opacity(0).show();d.timer(13,k,this,function(){this.opacity(i*g++)},function(){this.opacity(h);if(d.T.isFunction(f)){f.apply(this[0])}})},fadeToggle:function(g,f){if(this.isHide()||this.opacity()==0){this.fadeIn(g,f)}else{this.fadeOut(g,f)}},fadeIn:function(g,f){this.fadeTo(g,1,f)},fadeOut:function(j,f){j=(!d.T.isNumber(j)||j<13)?200:j;var h=d.EL.opacity(this[0])||1;var k=Math.ceil(j/13);var g=0;var i=h/k;d.timer(13,k,this,function(){this.opacity(h-i*g++)},function(){this.hide();this.opacity(1);if(d.T.isFunction(f)){f.apply(this[0])}})},slideToggle:function(g,f){if(this.length==0||!this[0].nodeType){if(d.T.isFunction(f)){f()}return this}this.each(function(i){var h=d(i);if(h.isHide()){h.slideDown(g,f)}else{h.slideUp(g,f)}});return this},slideDown:function(g,f){if(this.length==0||!this[0].nodeType){if(d.T.isFunction(f)){f()}return this}g=(!d.T.isNumber(g)||g<13)?200:g;var h=Math.ceil(g/13);var i=0;this.each(function(l){i++;var j=d(l).show().css("overflow","hidden");var n=0;var k=j.offsetHeight();var m=(k-n)/h;j.css("height",n);d.timer(13,h,j,function(){j.css("height",j.offsetHeight()+m)},function(){j.css("height",k);if(f){f.apply(l)}})});return this},slideUp:function(g,f){if(this.length==0||!this[0].nodeType){if(d.T.isFunction(f)){f()}return this}g=(!d.T.isNumber(g)||g<13)?200:g;var h=Math.ceil(g/13);var i=0;this.each(function(l){var j=d(l);if(j.isHide()){return}i++;j.css("overflow","hidden");var n=j.offsetHeight();var k=0;var m=(n-k)/h;d.timer(13,h,j,function(){j.css("height",j.offsetHeight()-m)},function(){j.css("height",n).hide();if(f){f.apply(l)}})});if(f&&i==0){f()}return this},drag:function(g,h,f){if(this.length==0||!this[0].nodeType){return this}if(g&&g instanceof d.Query){g=g[0]}d.drag(this[0],g,h,f);return this},dragInParent:function(g,f,i,h){if(this.length==0||!this[0].nodeType){return this}if(g&&g instanceof d.Query){g=g[0]}if(f&&f instanceof d.Query){f=f[0]}d.dragInParent(this[0],g,f,i,h);return this},on:function(g,m,l){var k=d.AR.toArray(g," ");for(var h=0;h<this.length;h++){for(var f=0;f<k.length;f++){d.E.add(this[h],k[f],m,l)}}return this},off:function(g,m,l){var k=d.AR.toArray(g," ");for(var h=0;h<this.length;h++){for(var f=0;f<k.length;f++){d.E.remove(this[h],k[f],m,l)}}return this},hover:function(g,f,h){this.on("mouseenter",g,h);this.on("mouseleave",f,h);return this},offhover:function(g,f,h){this.off("mouseenter",g,h);this.off("mouseleave",f,h);return this},mousewheel:function(g,f){return this.on(d.B.firefox?"DOMMouseScroll":"mousewheel",g,f)},offmousewheel:function(g,f){return this.off(d.B.firefox?"DOMMouseScroll":"mousewheel",g,f)}};var c=["append","prepend","before","after"];d.each(c,function(f){d.Q.fn[f]=function(h){if(!(h instanceof d.Query)){h=d(h)}if(this.length>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<e.length;g++){d[g]=e[g]}d[e.length]=a.MD5.PAD;for(g=e.length+1;g<64*f;g++){d[g]=0}var c=new Int32Array(16*f);for(g=0;g<16*f;g++){c[g]=this.getInt(d,g*4)}c[16*f-2]=e.length*8;d=null;for(g=0;g<f;g++){this.update(this.slice(c,g*16,(g+1)*16))}var b=new Int8Array(16);this.putInt(b,0,this.abcd[0]);this.putInt(b,4,this.abcd[1]);this.putInt(b,8,this.abcd[2]);this.putInt(b,12,this.abcd[3]);return b},update:function(f){var g=this.abcd[0],e=this.abcd[1],i=this.abcd[2],h=this.abcd[3];g=this.ff(g,e,i,h,f[0],a.MD5.S[0],a.MD5.T[0]);h=this.ff(h,g,e,i,f[1],a.MD5.S[1],a.MD5.T[1]);i=this.ff(i,h,g,e,f[2],a.MD5.S[2],a.MD5.T[2]);e=this.ff(e,i,h,g,f[3],a.MD5.S[3],a.MD5.T[3]);g=this.ff(g,e,i,h,f[4],a.MD5.S[0],a.MD5.T[4]);h=this.ff(h,g,e,i,f[5],a.MD5.S[1],a.MD5.T[5]);i=this.ff(i,h,g,e,f[6],a.MD5.S[2],a.MD5.T[6]);e=this.ff(e,i,h,g,f[7],a.MD5.S[3],a.MD5.T[7]);g=this.ff(g,e,i,h,f[8],a.MD5.S[0],a.MD5.T[8]);h=this.ff(h,g,e,i,f[9],a.MD5.S[1],a.MD5.T[9]);i=this.ff(i,h,g,e,f[10],a.MD5.S[2],a.MD5.T[10]);e=this.ff(e,i,h,g,f[11],a.MD5.S[3],a.MD5.T[11]);g=this.ff(g,e,i,h,f[12],a.MD5.S[0],a.MD5.T[12]);h=this.ff(h,g,e,i,f[13],a.MD5.S[1],a.MD5.T[13]);i=this.ff(i,h,g,e,f[14],a.MD5.S[2],a.MD5.T[14]);e=this.ff(e,i,h,g,f[15],a.MD5.S[3],a.MD5.T[15]);g=this.gg(g,e,i,h,f[1],a.MD5.S[4],a.MD5.T[16]);h=this.gg(h,g,e,i,f[6],a.MD5.S[5],a.MD5.T[17]);i=this.gg(i,h,g,e,f[11],a.MD5.S[6],a.MD5.T[18]);e=this.gg(e,i,h,g,f[0],a.MD5.S[7],a.MD5.T[19]);g=this.gg(g,e,i,h,f[5],a.MD5.S[4],a.MD5.T[20]);h=this.gg(h,g,e,i,f[10],a.MD5.S[5],a.MD5.T[21]);i=this.gg(i,h,g,e,f[15],a.MD5.S[6],a.MD5.T[22]);e=this.gg(e,i,h,g,f[4],a.MD5.S[7],a.MD5.T[23]);g=this.gg(g,e,i,h,f[9],a.MD5.S[4],a.MD5.T[24]);h=this.gg(h,g,e,i,f[14],a.MD5.S[5],a.MD5.T[25]);i=this.gg(i,h,g,e,f[3],a.MD5.S[6],a.MD5.T[26]);e=this.gg(e,i,h,g,f[8],a.MD5.S[7],a.MD5.T[27]);g=this.gg(g,e,i,h,f[13],a.MD5.S[4],a.MD5.T[28]);h=this.gg(h,g,e,i,f[2],a.MD5.S[5],a.MD5.T[29]);i=this.gg(i,h,g,e,f[7],a.MD5.S[6],a.MD5.T[30]);e=this.gg(e,i,h,g,f[12],a.MD5.S[7],a.MD5.T[31]);g=this.hh(g,e,i,h,f[5],a.MD5.S[8],a.MD5.T[32]);h=this.hh(h,g,e,i,f[8],a.MD5.S[9],a.MD5.T[33]);i=this.hh(i,h,g,e,f[11],a.MD5.S[10],a.MD5.T[34]);e=this.hh(e,i,h,g,f[14],a.MD5.S[11],a.MD5.T[35]);g=this.hh(g,e,i,h,f[1],a.MD5.S[8],a.MD5.T[36]);h=this.hh(h,g,e,i,f[4],a.MD5.S[9],a.MD5.T[37]);i=this.hh(i,h,g,e,f[7],a.MD5.S[10],a.MD5.T[38]);e=this.hh(e,i,h,g,f[10],a.MD5.S[11],a.MD5.T[39]);g=this.hh(g,e,i,h,f[13],a.MD5.S[8],a.MD5.T[40]);h=this.hh(h,g,e,i,f[0],a.MD5.S[9],a.MD5.T[41]);i=this.hh(i,h,g,e,f[3],a.MD5.S[10],a.MD5.T[42]);e=this.hh(e,i,h,g,f[6],a.MD5.S[11],a.MD5.T[43]);g=this.hh(g,e,i,h,f[9],a.MD5.S[8],a.MD5.T[44]);h=this.hh(h,g,e,i,f[12],a.MD5.S[9],a.MD5.T[45]);i=this.hh(i,h,g,e,f[15],a.MD5.S[10],a.MD5.T[46]);e=this.hh(e,i,h,g,f[2],a.MD5.S[11],a.MD5.T[47]);g=this.ii(g,e,i,h,f[0],a.MD5.S[12],a.MD5.T[48]);h=this.ii(h,g,e,i,f[7],a.MD5.S[13],a.MD5.T[49]);i=this.ii(i,h,g,e,f[14],a.MD5.S[14],a.MD5.T[50]);e=this.ii(e,i,h,g,f[5],a.MD5.S[15],a.MD5.T[51]);g=this.ii(g,e,i,h,f[12],a.MD5.S[12],a.MD5.T[52]);h=this.ii(h,g,e,i,f[3],a.MD5.S[13],a.MD5.T[53]);i=this.ii(i,h,g,e,f[10],a.MD5.S[14],a.MD5.T[54]);e=this.ii(e,i,h,g,f[1],a.MD5.S[15],a.MD5.T[55]);g=this.ii(g,e,i,h,f[8],a.MD5.S[12],a.MD5.T[56]);h=this.ii(h,g,e,i,f[15],a.MD5.S[13],a.MD5.T[57]);i=this.ii(i,h,g,e,f[6],a.MD5.S[14],a.MD5.T[58]);e=this.ii(e,i,h,g,f[13],a.MD5.S[15],a.MD5.T[59]);g=this.ii(g,e,i,h,f[4],a.MD5.S[12],a.MD5.T[60]);h=this.ii(h,g,e,i,f[11],a.MD5.S[13],a.MD5.T[61]);i=this.ii(i,h,g,e,f[2],a.MD5.S[14],a.MD5.T[62]);e=this.ii(e,i,h,g,f[9],a.MD5.S[15],a.MD5.T[63]);this.abcd[0]=this.add(this.abcd[0],g);this.abcd[1]=this.add(this.abcd[1],e);this.abcd[2]=this.add(this.abcd[2],i);this.abcd[3]=this.add(this.abcd[3],h)},cc:function(j,g,f,l,k,e,i,h){g=this.add(this.add(g,j),this.add(e,h));g=(g<<i)|(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;g<e;g++){b[f++]=d[g]}return b},};a.MD5.encode=function(d){if(a.T.isString(d)){d=a.S.toUTF8(d)}var c=this.encodeToByte(d);return a.S.toHexString(c)};a.MD5.encodeToByte=function(b){if(a.T.isString(b)){b=a.S.toUTF8(b)}return new a.MD5().digest(b)}})(zhiqim);+(function(a){a.ResetTouchEnd=a.Class.newInstance();a.ResetTouchEnd.prototype={defaults:{elem:null,endEvent:null,},init:function(){if(!this.elem||!this.endEvent){return}this.$elem=a.$elem(this.elem,"Z.ResetTouchEnd");this.$elem.on("touchstart",this.onTouchStart,this);this.$elem.on("touchmove",this.onTouchMove,this);this.onTouchend=a.bind(this.onTouchend,this);this.$elem[0].addEventListener("touchend",this.onTouchend,false);this.removeAttributeTouchend()},onTouchStart:function(b){var c=b.touches[0];this.$elem.attr("data-touchMoved",0);this.$elem.attr("data-touchStart-x",c.clientX);this.$elem.attr("data-touchStart-y",c.clientY)},onTouchMove:function(c){var d=c.touches[0];if(this.$elem.attr("data-touchMoved")=="1"){return}var b=parseFloat(this.$elem.attr("data-touchStart-x"));var g=parseFloat(this.$elem.attr("data-touchStart-y"));var f=d.clientX-b,e=d.clientY-g;if(Math.abs(f)>5||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="8.0.4";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='<div class="z-w270 zi-absolute-center-middle z-flexBox z-justify-center z-flex-center zi-bg-none" id="Zm_Dialog_'+this.id+'" style="z-index:9999;"></div>';var e='<h4 class="z-w100p z-pd-l30 z-pd-t15 z-pd-r30 z-mg0 z-rem18 z-text-ellipsis-line" style="background:'+(this.titleBgColor||"none")+'">'+this.title+"</h4>";var d='<div class="z-rem14 z-overflow-x-hidden z-text-center z-overflow-y-hidden" style="max-height:4rem;max-height:80vw;">'+(this.hasTitle?e:"")+"</div>";var g='<div class="z-absolute z-t0 z-r0 z-b0 z-l0 z-w100p z-h100p" style="z-index:9998;background:'+(this.shadowColor||"none")+'"></div>';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='<div class="z-flexBox z-justify-center z-bg-white z-pd20 z-rem16">'+f+"</div>";d+='<div class="z-flexBox"><div class="z-button-flex">确定</div></div>';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='<div class="z-flexBox z-justify-center z-bg-white z-pd20 z-rem16">'+e+"</div>";c+='<div class="z-button-row"><div class="z-button-flex z-blue-bd">确定</div><div class="z-button-flex z-red-bd">取消</div></div>';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='<div class="z-container"><div class="z-prompt">';if(d){e+='<textarea class="z-textarea" spellcheck="false">'+j+"</textarea>"}else{e+='<input class="z-input z-large" type="text" value="'+j+'" spellcheck="false">';a(document).keydown(i)}e+='</div></div><div class="z-console"><div class="z-button z-blue z-ok">确定</div><div class="z-button z-cancel">取消</div></div>';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='<div class="z-w35 z-h35" style="-webkit-animation:rotate360 1s steps(12, end) infinite;animation:rotate360 1s steps(12, end) infinite;">';e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';e+='<path d="M781.0103717 900.0688549c10.86520093 18.36326115 4.74450261 42.84722176-14.23117881 53.17568398-18.66947129 10.86520093-42.31048192 4.43829248-52.86947385-14.23117881-11.40077682-18.36326115-4.74333753-42.31164701 13.61992363-53.17568398C746.81036914 875.05048349 770.14633472 881.70675769 781.0103717 900.0688549L781.0103717 900.0688549 781.0103717 900.0688549zM551.32173653 983.08542123L551.32173653 983.08542123c0 21.19366315-17.52147627 38.94450517-39.55576035 38.94450517-21.19482709 0-38.94450517-17.29211051-38.94450517-38.94450517l0-27.31436146c0-21.72923904 17.82652131-39.02134841 38.94450517-39.02134841 21.72807395 0 39.55576035 17.29094542 39.55576035 39.02134841L551.32173653 983.08542123 551.32173653 983.08542123 551.32173653 983.08542123zM310.76790045 939.09020445L310.76790045 939.09020445c-11.09456782 19.2038821-35.04178859 25.32574549-53.48189298 14.46054456-18.8976731-10.63583517-25.63195563-34.50621269-14.45938062-53.48189298l28.99676842-50.72717141c11.17141106-18.66947129 35.11979577-25.09637973 54.01863282-14.46054457 18.36326115 10.86403698 25.09521579 35.11979577 13.92496868 53.48189298L310.76790045 939.09020445 310.76790045 939.09020445 310.76790045 939.09020445zM124.15468885 781.47609031L124.15468885 781.47609031c-18.8976731 10.55899193-43.15110286 4.20776277-53.48072903-14.46054457-11.09456782-18.36326115-4.74450261-42.61669205 13.92496868-53.48072903l77.96585358-45.14204786c18.66947129-10.32962617 42.84722176-4.51397177 53.48189298 14.45938062 10.55782798 18.36326115 4.1309184 42.617856-14.46054457 53.48189298L124.15468885 781.47609031 124.15468885 781.47609031 124.15468885 781.47609031zM41.21613085 551.17387093L41.21613085 551.17387093c-21.72923904 0-38.94450517-17.52147627-38.94450518-38.94450517 0-21.72807395 17.21526613-39.24955022 38.94450518-39.24955022l121.42433052 0c21.72923904 0 38.94450517 17.52147627 38.94450517 38.94450517 0 21.72807395-17.21526613 39.24955022-38.94450517 39.24955022L41.21613085 551.17387093 41.21613085 551.17387093 41.21613085 551.17387093zM84.67460893 310.31498979L84.67460893 310.31498979c-18.97451634-10.55899193-25.09521579-34.50854059-13.92496868-53.17568398 10.32962617-18.89883705 34.50621269-25.32691058 53.48189298-14.46170851l131.90531527 76.5884928c18.66947129 10.63583517 24.79017074 34.50621269 14.46054457 52.94631708-11.09456782 18.89883705-35.04178859 25.02070045-53.40504974 14.46054457L84.67460893 310.31498979 84.67460893 310.31498979 84.67460893 310.31498979zM242.8254629 123.77745749L242.8254629 123.77745749l91.89082225 159.52821476c11.17024711 18.66947129 35.11979577 25.32458155 53.71125988 14.23117881 18.66947129-10.55782798 24.79017074-34.81358677 13.92613262-53.48189298l-92.19703239-159.22084181c-10.55899193-18.43894045-34.50854059-25.09521579-52.87063779-14.23117881C238.31149113 81.46581163 232.19079168 105.41419634 242.8254629 123.77745749L242.8254629 123.77745749 242.8254629 123.77745749zM472.82147101 41.37447538L472.82147101 41.37447538c0-21.19482709 17.82652131-39.25187925 38.94450517-39.25187925 21.72807395 0 39.55576035 17.5983195 39.55576035 39.25187925l0 183.78164565c0 21.72923904-17.52147627 39.25187925-39.55576035 39.55576036-21.19482709 0-38.94450517-17.21526613-38.94450517-39.55576036L472.82147101 41.37447538 472.82147101 41.37447538 472.82147101 41.37447538zM713.37530823 84.83295232L713.37530823 84.83295232c11.17024711-18.8976731 34.81358677-25.09521579 53.48072903-14.46054457 18.89883705 10.55899193 25.63195563 34.50854059 14.46054457 53.48189298l-92.1213531 159.52821476c-10.40530432 18.59262805-34.88926606 25.24890226-53.48072903 14.46054456-18.66947129-10.86403698-24.79017074-35.11979577-14.23234276-53.78810311L713.37530823 84.83295232 713.37530823 84.83295232 713.37530823 84.83295232zM900.52409458 242.6775973L900.52409458 242.6775973l-159.83442489 92.1213531c-18.66947129 10.55782798-25.09637973 34.50621269-14.46054457 53.48072903 11.09456782 18.36326115 35.04295253 24.48396061 53.48189298 14.23234276l159.83442489-92.1213531c18.36326115-10.55899193 25.09521579-34.50621269 13.92496867-53.17568399C942.8345765 238.23930482 918.8105125 231.50735019 900.52409458 242.6775973L900.52409458 242.6775973 900.52409458 242.6775973zM982.61970261 472.97865159L982.61970261 472.97865159c21.95976875 0 39.25187925 17.52147627 38.94450518 39.24955022 0 21.42302891-16.98473643 38.94450517-38.94450518 38.94450518L798.6086912 551.17270699c-21.19366315 0-39.02134841-17.52147627-39.02134841-39.24955022 0-21.42302891 17.8276864-38.94450517 39.02134841-38.94450518L982.61970261 472.97865159 982.61970261 472.97865159 982.61970261 472.97865159z" ';e+='fill="#ffffff"/></svg>';e+="</div>";var d='<div class="z-flexBox z-direction-column z-flex-center z-pd-t10 z-pd-r20 z-pd-l20 zi-bg-none">'+e+'<div class="z-flex-none z-mg-t3 z-color-white">'+f+"</div></div>";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='<div class="z-w18 z-h18 z-mg-r5 z-mg-l5">';switch(f){case"finish":e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';e+='<path d="M512 1024a512 512 0 1 1 512-512 512 512 0 0 1-512 512z m248.604444-721.351111l-316.302222 316.871111-181.475555-180.906667-44.942223 45.511111 226.417778 225.848889 361.813334-361.813333z" ';e+='fill="#ffffff"/></svg>';break;case"failure":e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';e+='<path d="M1024 512c0-282.763636-229.236364-512-512-512C229.236364 0 0 229.236364 0 512c0 282.763636 229.236364 512 512 512C794.763636 1024 1024 794.763636 1024 512zM281.6 709.492364 479.092364 512 281.6 314.507636 314.507636 281.6 512 479.092364l197.492364-197.492364 32.907636 32.907636L544.907636 512l197.492364 197.492364-32.907636 32.907636L512 544.907636 314.507636 742.4 281.6 709.492364z" ';e+='fill="#ffffff"/></svg>';break;case"alert":e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';e+='<path d="M512 2.27555555C230.74133333 2.27555555 2.27555555 230.74133333 2.27555555 512s228.46577778 509.72444445 509.72444445 509.72444445 509.72444445-228.46577778 509.72444445-509.72444445S793.25866667 2.27555555 512 2.27555555z m36.4088889 800.99555556l-72.81777778 0 0-72.81777778 72.81777778 0 0 72.81777778z m-72.81777778-145.63555556L475.59111112 220.72888889l72.81777778 0-1e-8 436.90666667-72.81777777-1e-8z" ';e+='fill="#ffffff"/></svg>';break;case"confirm":e+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';e+='<path d="M512.026875 0C229.23903 0 0 229.23903 0 512.026875 0 794.77597 229.23903 1024 512.026875 1024c282.779095 0 512.003125-229.22403 512.003125-511.973125C1024.03 229.23903 794.80597 0 512.026875 0zM504.204365 753.135919c-13.002516 0-23.583779-10.576263-23.583779-23.577529 0-13.003766 10.581263-23.580029 23.583779-23.580029 13.003766 0 23.580029 10.576263 23.580029 23.580029C527.784394 742.559656 517.208131 753.135919 504.204365 753.135919zM588.466968 530.593148c-37.261295 18.812523-69.438835 35.062543-69.438835 73.90009l0 59.946323c0 8.19001-6.655008 14.843768-14.838768 14.843768-8.17876 0-14.830018-6.653758-14.830018-14.843768l0-59.946323c0-57.11007 45.567556-80.101348 85.767605-100.386373 41.24505-20.825025 80.181348-40.487549 80.181348-93.510114 0-31.715039-14.805018-60.161323-41.685051-80.102598-26.411282-19.600024-62.162576-29.956287-103.392626-29.956287-72.232588 0-120.465147 43.617553-136.231416 86.850106-4.897506 13.447516-6.655008 30.293787-4.272505 40.96755 1.777502 7.99251-3.251254 15.946269-11.211264 17.723772-1.058751 0.235-2.137503 0.3525-3.217504 0.3525-6.918758 0-13.032516-4.873756-14.531268-11.582514-4.101255-18.388772-0.26375-42.192552 5.356257-57.62757 23.203778-63.612578 89.151359-106.35763 164.1077-106.35763 102.890126 0 174.750213 57.46132 174.745213 139.732671C684.975836 481.919338 633.702024 507.77937 588.466968 530.593148z" ';e+='fill="#ffffff"/><path d="M512.026875 999.03872" fill="#ffffff"/></svg>';break}e+="</div>";var h='<div class="z-flexBox z-justify-center z-pd-lr5 z-pd-tb8" style="background-color:'+b+';">'+e+'<div class="z-flex-none">'+k+"</div></div>";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="8.0.4";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||this.paramData){c="";if(this.paramMap.size()>0){a.eachof(this,this.paramMap.keySet(),function(e){c+=e+"="+a.encode(this.paramMap.get(e))+"&"});c=c.slice(0,-1)}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"+a.encode(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,d){var c=new a.Ajax();c.setClassName(b);c.setMethodName(d);return c};a.ajaxq=function(b,e,d){var c=a.ajax(b,e);c.addParam("page",d||1);c.setParamForm(document.ajaxqForm);c.setFailureAlert();c.setSuccess("ajaxqResult");c.setLoading("ajaxqResult");c.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<c)?c:e;f.val(e)};a.CallFrame={};a.CallFrame.load=function(){a("form[data-role=z-call-frame]").each(function(f){var e=a('iframe[name="zCallFrame"]');if(e.length==0){e=a('<iframe name="zCallFrame" style="display:none;"></iframe>').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<document.forms.length;d++){if(f==document.forms[d]){g=d;break}}f.zFormIndex.value=g;if(!f.zCallFrame){var b=document.createElement("input");b.name="zCallFrame";b.type="hidden";f.insertBefore(b,f.firstNode)}f.zCallFrame.value="true"})};a.onload(a.CallFrame.load);a.placeholder=function(g){var c=a.$elem(g);var h=c.attr("placeholder");if(a.V.isEmptyBlank(h)){return}c.removeAttr("placeholder");var f=c.offsetWidth();var b=c.offsetHeight();var e=a.$cover(c);var d=a('<div class="z-placeholder">'+h+"</div>");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='<div class="z-popup z-overlay-part z-bottom"><div class="z-popup-bg"></div><div class="z-popup-main"><div class="z-popup-content"></div></div></div></div>';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.NumInput.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='<div class="z-w100p z-pd15 z-text-center zi-bg-none" style="display:block;"><div class="z-show-ib z-w35 z-h35" style="-webkit-animation:rotate360 1s steps(12, end) infinite;animation:rotate360 1s steps(12, end) infinite;">';b+='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1025 1024" version="1.1" width="100%" height="100%">';b+='<path d="M781.0103717 900.0688549c10.86520093 18.36326115 4.74450261 42.84722176-14.23117881 53.17568398-18.66947129 10.86520093-42.31048192 4.43829248-52.86947385-14.23117881-11.40077682-18.36326115-4.74333753-42.31164701 13.61992363-53.17568398C746.81036914 875.05048349 770.14633472 881.70675769 781.0103717 900.0688549L781.0103717 900.0688549 781.0103717 900.0688549zM551.32173653 983.08542123L551.32173653 983.08542123c0 21.19366315-17.52147627 38.94450517-39.55576035 38.94450517-21.19482709 0-38.94450517-17.29211051-38.94450517-38.94450517l0-27.31436146c0-21.72923904 17.82652131-39.02134841 38.94450517-39.02134841 21.72807395 0 39.55576035 17.29094542 39.55576035 39.02134841L551.32173653 983.08542123 551.32173653 983.08542123 551.32173653 983.08542123zM310.76790045 939.09020445L310.76790045 939.09020445c-11.09456782 19.2038821-35.04178859 25.32574549-53.48189298 14.46054456-18.8976731-10.63583517-25.63195563-34.50621269-14.45938062-53.48189298l28.99676842-50.72717141c11.17141106-18.66947129 35.11979577-25.09637973 54.01863282-14.46054457 18.36326115 10.86403698 25.09521579 35.11979577 13.92496868 53.48189298L310.76790045 939.09020445 310.76790045 939.09020445 310.76790045 939.09020445zM124.15468885 781.47609031L124.15468885 781.47609031c-18.8976731 10.55899193-43.15110286 4.20776277-53.48072903-14.46054457-11.09456782-18.36326115-4.74450261-42.61669205 13.92496868-53.48072903l77.96585358-45.14204786c18.66947129-10.32962617 42.84722176-4.51397177 53.48189298 14.45938062 10.55782798 18.36326115 4.1309184 42.617856-14.46054457 53.48189298L124.15468885 781.47609031 124.15468885 781.47609031 124.15468885 781.47609031zM41.21613085 551.17387093L41.21613085 551.17387093c-21.72923904 0-38.94450517-17.52147627-38.94450518-38.94450517 0-21.72807395 17.21526613-39.24955022 38.94450518-39.24955022l121.42433052 0c21.72923904 0 38.94450517 17.52147627 38.94450517 38.94450517 0 21.72807395-17.21526613 39.24955022-38.94450517 39.24955022L41.21613085 551.17387093 41.21613085 551.17387093 41.21613085 551.17387093zM84.67460893 310.31498979L84.67460893 310.31498979c-18.97451634-10.55899193-25.09521579-34.50854059-13.92496868-53.17568398 10.32962617-18.89883705 34.50621269-25.32691058 53.48189298-14.46170851l131.90531527 76.5884928c18.66947129 10.63583517 24.79017074 34.50621269 14.46054457 52.94631708-11.09456782 18.89883705-35.04178859 25.02070045-53.40504974 14.46054457L84.67460893 310.31498979 84.67460893 310.31498979 84.67460893 310.31498979zM242.8254629 123.77745749L242.8254629 123.77745749l91.89082225 159.52821476c11.17024711 18.66947129 35.11979577 25.32458155 53.71125988 14.23117881 18.66947129-10.55782798 24.79017074-34.81358677 13.92613262-53.48189298l-92.19703239-159.22084181c-10.55899193-18.43894045-34.50854059-25.09521579-52.87063779-14.23117881C238.31149113 81.46581163 232.19079168 105.41419634 242.8254629 123.77745749L242.8254629 123.77745749 242.8254629 123.77745749zM472.82147101 41.37447538L472.82147101 41.37447538c0-21.19482709 17.82652131-39.25187925 38.94450517-39.25187925 21.72807395 0 39.55576035 17.5983195 39.55576035 39.25187925l0 183.78164565c0 21.72923904-17.52147627 39.25187925-39.55576035 39.55576036-21.19482709 0-38.94450517-17.21526613-38.94450517-39.55576036L472.82147101 41.37447538 472.82147101 41.37447538 472.82147101 41.37447538zM713.37530823 84.83295232L713.37530823 84.83295232c11.17024711-18.8976731 34.81358677-25.09521579 53.48072903-14.46054457 18.89883705 10.55899193 25.63195563 34.50854059 14.46054457 53.48189298l-92.1213531 159.52821476c-10.40530432 18.59262805-34.88926606 25.24890226-53.48072903 14.46054456-18.66947129-10.86403698-24.79017074-35.11979577-14.23234276-53.78810311L713.37530823 84.83295232 713.37530823 84.83295232 713.37530823 84.83295232zM900.52409458 242.6775973L900.52409458 242.6775973l-159.83442489 92.1213531c-18.66947129 10.55782798-25.09637973 34.50621269-14.46054457 53.48072903 11.09456782 18.36326115 35.04295253 24.48396061 53.48189298 14.23234276l159.83442489-92.1213531c18.36326115-10.55899193 25.09521579-34.50621269 13.92496867-53.17568399C942.8345765 238.23930482 918.8105125 231.50735019 900.52409458 242.6775973L900.52409458 242.6775973 900.52409458 242.6775973zM982.61970261 472.97865159L982.61970261 472.97865159c21.95976875 0 39.25187925 17.52147627 38.94450518 39.24955022 0 21.42302891-16.98473643 38.94450517-38.94450518 38.94450518L798.6086912 551.17270699c-21.19366315 0-39.02134841-17.52147627-39.02134841-39.24955022 0-21.42302891 17.8276864-38.94450517 39.02134841-38.94450518L982.61970261 472.97865159 982.61970261 472.97865159 982.61970261 472.97865159z" ';b+='fill="#999999"/></svg>';b+="</div></div>";this.$loading=a(b).insertAfter(this.$elem);this.$scroller.on("scroll",this.scroll,this)},scroll:function(){if(this.loading==true){return}var c=this.$scroller[0].scrollTop;var b=this.$scroller[0].scrollHeight;if(c+this.sOffsetHeight<b-this.distance){return}this.loading=true;this.doAjax()},doAjax:function(){this.ajax=new a.Ajax();this.ajax.setClassName(this.ajaxClass);this.ajax.setMethodName(this.ajaxMethod);this.ajax.addParam(this.paramPage,this.loadPage);this.addParams();var b=this;this.ajax.setSuccess(function(){b.success.call(b,this.responseText)});this.ajax.setFailure(function(){b.failure.call(b,this.responseText)});this.ajax.execute()},addParams:function(){if(!this.ajaxParams){return}for(var c in this.ajaxParams){var b=this.ajaxParams[c];if(typeof b=="function"){this.ajax.addParam(c,b());continue}this.ajax.addParam(c,b)}},success:function(d){if(a.V.isEmptyBlank(d)){return this.$loading.hide()}this.loadPage++;var b=this.ajaxSuccess;if(typeof this.ajaxSuccess=="function"){b=this.ajaxSuccess(d)}this.$elem[0].insertAdjacentHTML("beforeend",b);a.ResetTouchEnd.load(this.$elem);var c=this;setTimeout(function(){c.loading=false},500)},failure:function(b){if(typeof this.ajaxSuccess=="function"){this.ajaxFailue(b)}},}})(zhiqim);+(function(a){a.Upload=a.Class.newInstance();a.Upload.prototype={defaults:{elem:null,contextPath:null,onPreview:null,onCompleted:null,fileFormatExt:"*.*",},execute:function(){this.$elem=a.$elem(this.elem,"Z.Upload");this.random=a.random(10);this.text=this.$elem.text();this.$file=a("<input id='Z_Upload_"+this.random+"' type='file' accept='"+this.fileFormatExt+"' class='z-hide' single>");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",a.encode(this.fileDir))}this.request.setRequestHeader("X-Upload-File-Name",a.encode(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("<input id='Z_Uploadmult_"+this.random+"' type='file' accept='"+this.fileFormatExt+"' class='z-hide' multiple>");this.$file.appendTo("body").change(this.onFileOpenWindow,this);this.$elem.click(function(){this.clear();this.$file[0].click()},this)},onFileOpenWindow:function(){this.files=this.$file[0].files;this.fileResults=[];if(!a.T.isFunction(this.onPreview)){this.upload()}else{this.results=[];this.onFileLoad()}},onFileLoad:function(){var c=this.files[this.results.length];var b=new FileReader();b.onload=a.bind(function(d){this.results.push({name:c.name,type:c.type,size:c.size,lastModified:c.lastModified,lastModifiedDate:c.lastModifiedDate,src:d.target.result});if(this.results.length==this.files.length){this.onPreview(this.results)}else{this.onFileLoad()}},this);b.readAsDataURL(c)},onFileRemove:function(g){var d=a(a.E.current(g));var c=d.attr("name");for(var f=0;f<this.results.length;f++){var b=this.results[f];if(b.name==c){this.results.splice(f,1);break}}this.onPreview(this.results)},isUploadFile:function(c){for(var d=0;d<this.results.length;d++){var b=this.results[d];if(b.name==c){return true}}return false},upload:function(){this.$elem.text("正在上传");this.fileResults=[];this.fileNo=0;this.uploadNext()},uploadNext:function(){var b=this.files[this.fileNo];if(!this.isUploadFile(b.name)){this.complete();return}this.request=new XMLHttpRequest();this.request.open("POST",a.rootPath(this.contextPath,"/service/upload"),true);this.request.setRequestHeader("Content-Type",b.type);this.request.setRequestHeader("Content-Length",b.size);if(this.fileDir){this.request.setRequestHeader("X-Upload-File-Dir",a.encode(this.fileDir))}this.request.setRequestHeader("X-Upload-File-Name",a.encode(b.name));this.request.onreadystatechange=a.bind(this.onUploadSuccess,this);this.request.onerror=a.bind(this.onUploadError,this);this.request.send(b)},complete:function(){if(this.fileNo<this.files.length-1){this.fileNo++;this.uploadNext()}else{this.$elem.text(this.text);if(a.T.isFunction(this.onCompleted)){this.onCompleted(this.fileResults)}this.clear()}},onUploadError:function(){this.fileResults.push({success:null,error:"文件上传连接服务器失败:"+this.request.responseText});this.complete()},onUploadSuccess:function(){if(this.request.readyState!=4){return}switch(this.request.status){case 404:this.fileResults.push({success:null,error:"文件上传时服务器不支持"});break;case 403:this.fileResults.push({success:null,error:"文件上传时被服务器拒绝"});break;case 412:this.fileResults.push({success:null,error:"文件上传时服务器诊断参数格式错误"});break;case 400:this.fileResults.push({success:null,error:"文件上传时服务器诊断参数传值错误"});break;case 200:var b=this.request.getResponseHeader("X-Upload-File-Url");if(!b){this.fileResults.push({success:null,error:"文件上传时服务器异常"});break}this.fileResults.push({success:b,error:null});break;default:this.fileResults.push({success:null,error:"文件上传时服务器未知错误:"+this.request.status});break}this.complete()},buildPreviewHtml:function(f){var e=a("#"+f).html("");for(var c=0;c<this.results.length;c++){var d=a("<div class='z-relative-left z-bg-gray' style='margin:5px;width:130px;height:130px;'></div>");d.append("<div class='z-absolute z-w100p z-h20 z-lh20 z-color-white z-text-center z-text-ellipsis' style='bottom:0;left:0;background-color:#333;' title='"+this.results[c].name+"&nbsp;("+(Math.floor(this.results[c].size/1024))+"K)'>"+this.results[c].name+"&nbsp;("+(Math.floor(this.results[c].size/1024))+"K)</div>");d.append("<img src='"+this.results[c].src+"' style='max-width:100%;max-height:100%;'>");var b=a("<div>").appendTo(d);b.css({position:"absolute",top:2,right:2,cursor:"pointer"}).attr("name",this.results[c].name).html("<span class='z-px16 z-lh16 z-color-red'>×</span>").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);