var k; function r(a){var b,c=this;this.za=!1;this.eb=0;this.ja=null;this.nc=this.Ec=this.Dc=0;this.ee=10;if(!a||!a.nodeType)throw new TypeError("Layer must be a document node");this.Db=function(){return r.prototype.Db.apply(c,arguments)};this.Ga=function(){return r.prototype.Ga.apply(c,arguments)};this.Gb=function(){return r.prototype.Gb.apply(c,arguments)};this.Fb=function(){return r.prototype.Fb.apply(c,arguments)};this.Eb=function(){return r.prototype.Eb.apply(c,arguments)};aa()||(this.mb&&(a.addEventListener("mouseover",this.Ga, !0),a.addEventListener("mousedown",this.Ga,!0),a.addEventListener("mouseup",this.Ga,!0)),a.addEventListener("click",this.Db,!0),a.addEventListener("touchstart",this.Gb,!1),a.addEventListener("touchend",this.Fb,!1),a.addEventListener("touchcancel",this.Eb,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,f){var h=Node.prototype.removeEventListener;"click"===b?h.call(a,b,c.hc||c,f):h.call(a,b,c,f)},a.addEventListener=function(b,c,f){var h=Node.prototype.addEventListener; "click"===b?h.call(a,b,c.hc||(c.hc=function(a){a.Rd||c(a)}),f):h.call(a,b,c,f)}),"function"===typeof a.onclick&&(b=a.onclick,a.addEventListener("click",function(a){b(a)},!1),a.onclick=null))}k=r.prototype;k.mb=0e.offsetHeight){d=e;b.dc=e;break}e=e.parentElement}while(e)}d&&(d.ld=d.scrollTop)}}this.za=!0;this.eb=a.timeStamp;this.ja=b;this.Dc=c.pageX; this.Ec=c.pageY;200>a.timeStamp-this.mc&&a.preventDefault();return!0}; k.Fb=function(a){var b,c,d;d=this.ja;b=a.changedTouches[0];c=this.ee;if(Math.abs(b.pageX-this.Dc)>c||Math.abs(b.pageY-this.Ec)>c||300a.timeStamp-this.mc)return this.$c=!0;this.mc=a.timeStamp;b=this.eb;this.za=!1;this.eb=0;this.gd&&(d=a.changedTouches[0],d=document.elementFromPoint(d.pageX-window.pageXOffset,d.pageY-window.pageYOffset));c=d.tagName.toLowerCase();if("label"===c){if(b=void 0!==d.control?d.control:d.htmlFor?document.getElementById(d.htmlFor): d.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")){this.focus(d);if(this.mb)return!1;d=b}}else if(ca(d)){if(100]*>/,Yb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Zb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,db=/^(?:body|html)$/i,$b=/([A-Z])/g,ac="val css html text data width height offset".split(" "),Ca=J.createElement("table"),eb=J.createElement("tr"),fb={tr:J.createElement("tbody"),tbody:Ca,thead:Ca,tfoot:Ca,td:eb,th:eb,"*":J.createElement("div")},bc=/complete|loaded|interactive/,cc=/^[\w-]*$/,Ba= {},Xb=Ba.toString,E={},ta,ua,gb=J.createElement("div"),dc={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},fa=Array.isArray||function(a){return a instanceof Array};E.matches=function(a,b){if(!b||!a||1!==a.nodeType)return!1;var c=a.webkitMatchesSelector||a.mozMatchesSelector||a.Bf||a.matchesSelector; if(c)return c.call(a,b);var d;d=a.parentNode;(c=!d)&&(d=gb).appendChild(a);d=~E.oa(d,b).indexOf(a);c&&gb.removeChild(a);return d};ta=function(a){return a.replace(/-+(.)?/g,function(a,b){return b?b.toUpperCase():""})};ua=function(a){return B.call(a,function(b,c){return a.indexOf(b)==c})};E.ub=function(a,b,c){var d,e,B;Yb.test(a)&&(d=g(J.createElement(RegExp.$1)));d||(a.replace&&(a=a.replace(Zb,"<$1>")),b===C&&(b=ha.test(a)&&RegExp.$1),b in fb||(b="*"),B=fb[b],B.innerHTML=""+a,d=g.B(m.call(B.childNodes), function(){B.removeChild(this)}));f(c)&&(e=g(d),g.B(c,function(a,b){if(-1d.indexOf(a)&& c.push(a)})}return g(c)},wb:function(a){return this.filter(function(){return e(a)?g.contains(this,a):g(this).find(a).size()})},sb:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){var a=this[0];return a&&!e(a)?a:g(a)},Ca:function(){var a=this[this.length-1];return a&&!e(a)?a:g(a)},find:function(a){var b=this;return a?"object"==typeof a?g(a).filter(function(){var a=this;return F.some.call(b,function(b){return g.contains(b,a)})}):1==this.length?g(E.oa(this[0],a)):this.map(function(){return E.oa(this, a)}):[]},X:function(a,b){var c=this[0],e=!1;for("object"==typeof a&&(e=g(a));c&&!(e?0<=e.indexOf(c):E.matches(c,a));)c=c!==b&&!d(c)&&c.parentNode;return g(c)},Ff:function(a){for(var b=[],c=this;0b.indexOf(a))return b.push(a),a});return w(b,a)},parent:function(a){return w(ua(this.$a("parentNode")),a)},children:function(a){return w(this.map(function(){return p(this)}),a)},bd:function(){return this.map(function(){return m.call(this.childNodes)})}, Uf:function(a){return w(this.map(function(a,b){return B.call(p(b.parentNode),function(a){return a!==b})}),a)},empty:function(){return this.B(function(){this.innerHTML=""})},$a:function(a){return g.map(this,function(b){return b[a]})},show:function(){return this.B(function(){"none"==this.style.display&&(this.style.display="");if("none"==getComputedStyle(this,"").getPropertyValue("display")){var a=this.style,b=this.nodeName,c,d;ga[b]||(c=J.createElement(b),J.body.appendChild(c),d=getComputedStyle(c, "").getPropertyValue("display"),c.parentNode.removeChild(c),"none"==d&&(d="block"),ga[b]=d);a.display=ga[b]}})},Vd:function(a){return this.Wc(a).remove()},qa:function(a){var c=b(a);if(this[0]&&!c)var d=g(a).get(0),e=d.parentNode||1arguments.length){var d=this[0],e=getComputedStyle(d,"");if(!d)return;if("string"==typeof b)return d.style[ta(b)]||e.getPropertyValue(b);if(fa(b)){var f={};g.B(b,function(a,b){f[b]=d.style[ta(b)]||e.getPropertyValue(b)});return f}}var B="";if("string"==a(b))c||0===c?B=q(b)+":"+v(b,c):this.B(function(){this.style.removeProperty(q(b))});else for(s in b)b[s]|| 0===b[s]?B+=q(s)+":"+v(s,b[s])+";":this.B(function(){this.style.removeProperty(q(s))});return this.B(function(){this.style.cssText+=";"+B})},index:function(a){return a?this.indexOf(g(a)[0]):this.parent().children().indexOf(this[0])},Ba:function(a){return a?F.some.call(this,function(a){return this.test(u(a))},n(a)):!1},W:function(a){return a?this.B(function(b){if("className"in this){L=[];var c=u(this);y(this,a,b,c).split(/\s+/g).forEach(function(a){g(this).Ba(a)||L.push(a)},this);L.length&&u(this, c+(c?" ":"")+L.join(" "))}}):this},$:function(a){return this.B(function(b){if("className"in this){if(a===C)return u(this,"");L=u(this);y(this,a,b,L).split(/\s+/g).forEach(function(a){L=L.replace(n(a)," ")});u(this,L.trim())}})},bg:function(a,b){return a?this.B(function(c){var d=g(this);y(this,a,c,u(this)).split(/\s+/g).forEach(function(a){(b===C?!d.Ba(a):b)?d.W(a):d.$(a)})}):this},scrollTop:function(a){if(this.length){var b="scrollTop"in this[0];return a===C?b?this[0].scrollTop:this[0].pageYOffset: this.B(b?function(){this.scrollTop=a}:function(){this.scrollTo(this.scrollX,a)})}},scrollLeft:function(a){if(this.length){var b="scrollLeft"in this[0];return a===C?b?this[0].scrollLeft:this[0].pageXOffset:this.B(b?function(){this.scrollLeft=a}:function(){this.scrollTo(a,this.scrollY)})}},position:function(){if(this.length){var a=this[0],b=this.offsetParent(),c=this.offset(),d=db.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(g(a).P("margin-top"))||0;c.left-=parseFloat(g(a).P("margin-left"))|| 0;d.top+=parseFloat(g(b[0]).P("border-top-width"))||0;d.left+=parseFloat(g(b[0]).P("border-left-width"))||0;return{top:c.top-d.top,left:c.left-d.left}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||J.body;a&&!db.test(a.nodeName)&&"static"==g(a).P("position");)a=a.offsetParent;return a})}};g.F.detach=g.F.remove;["width","height"].forEach(function(a){var b=a.replace(/./,function(a){return a[0].toUpperCase()});g.F[a]=function(e){var f,B=this[0];return e===C?c(B)?B["inner"+ b]:d(B)?B.documentElement["scroll"+b]:(f=this.offset())&&f[a]:this.B(function(b){B=g(this);B.P(a,y(this,e,b,B[a]()))})}});["after","prepend","before","append"].forEach(function(b,c){var d=c%2;g.F[b]=function(){var b,e=g.map(arguments,function(c){b=a(c);return"object"==b||"array"==b||null==c?c:E.ub(c)}),f,B=1e.length?this:this.B(function(a,b){f=d?b:b.parentNode;b=0==c?b.nextSibling:1==c?b.firstChild:2==c?b:null;var l=g.contains(J.documentElement,f);e.forEach(function(a){if(B)a= a.cloneNode(!0);else if(!f)return g(a).remove();f.insertBefore(a,b);l&&I(a,function(a){null==a.nodeName||"SCRIPT"!==a.nodeName.toUpperCase()||a.type&&"text/javascript"!==a.type||a.src||window.eval.call(window,a.innerHTML)})})})};g.F[d?b+"To":"insert"+(c?"Before":"After")]=function(a){g(a)[b](this);return this}});E.Ka.prototype=g.F;E.je=ua;E.fd=x;g.Ob=E;return g}();window.qe=z;void 0===window.Lc&&(window.Lc=z); (function(a){function b(b,c,d,e){if(b.global)return b=c||y,d=a.Ja(d),a(b).ba(d,e),!d.zb()}function c(c){c.global&&0===a.Sb++&&b(c,null,"ajaxStart")}function d(a,c){var d=c.ta;if(!1===c.Xc.call(d,a,c)||!1===b(c,d,"ajaxBeforeSend",[a,c]))return!1;b(c,d,"ajaxSend",[a,c])}function e(a,c,d,e){var f=d.ta;d.ia.call(f,a,"success",c);e&&e.Ac(f,[a,"success",c]);b(d,f,"ajaxSuccess",[c,d,a]);h("success",c,d)}function f(a,c,d,e,f){var l=e.ta;e.error.call(l,d,c,a);f&&f.Mf(l,[d,c,a]);b(e,l,"ajaxError",[d,e,a||c]); h(c,d,e)}function h(c,d,e){var f=e.ta;e.complete.call(f,d,c);b(e,f,"ajaxComplete",[d,e]);e.global&&!--a.Sb&&b(e,null,"ajaxStop")}function l(){}function q(a){a&&(a=a.split(";",2)[0]);return a&&(a==L?"html":a==g?"json":C.test(a)?"script":s.test(a)&&"xml")||"text"}function n(a,b){return""==b?a:(a+"&"+b).replace(/[&?]{1,2}/,"?")}function v(b){b.Pd&&b.data&&"string"!=a.type(b.data)&&(b.data=a.rc(b.data,b.dg));!b.data||b.type&&"GET"!=b.type.toUpperCase()||(b.url=n(b.url,b.data),b.data=void 0)}function p(b, c,d,e){a.ea(c)&&(e=d,d=c,c=void 0);a.ea(d)||(e=d,d=void 0);return{url:b,data:c,ia:d,dataType:e}}function H(b,c,d,e){var f,l=a.isArray(c),n=a.Xa(c);a.B(c,function(c,g){f=a.type(g);e&&(c=d?e:e+"["+(n||"object"==f||"array"==f?c:"")+"]");!e&&l?b.add(g.name,g.value):"array"==f||!d&&"object"==f?H(b,g,d,c):b.add(c,g)})}var w=0,y=window.document,u,x,I=/)<[^<]*)*<\/script>/gi,C=/^(?:text|application)\/javascript/i,s=/^(?:text|application)\/xml/i,g="application/json",L="text/html", F=/^\s*$/;a.Sb=0;a.Pc=function(b,c){function l(b){a(m).Fc("error",b||"abort")}if(!("type"in b))return a.U(b);var g=b.jf,n=(a.ea(g)?g():g)||"jsonp"+ ++w,m=y.createElement("script"),h=window[n],u,v={abort:l},q;c&&c.ca(v);a(m).H("load error",function(d,l){clearTimeout(q);a(m).Fa().remove();"error"!=d.type&&u?e(u[0],v,b,c):f(null,l||"error",v,b,c);window[n]=h;u&&a.ea(h)&&h(u[0]);h=u=void 0});if(!1===d(v,b))return l("abort"),v;window[n]=function(){u=arguments};m.src=b.url.replace(/\?(.+)=\?/,"?$1="+n); y.head.appendChild(m);0p.status|| 304==p.status||0==p.status&&"file:"==I){w=w||q(m.Gd||p.getResponseHeader("content-type"));b=p.responseText;try{"script"==w?(0,eval)(b):"xml"==w?b=p.responseXML:"json"==w&&(b=F.test(b)?null:a.sc(b))}catch(d){c=d}c?f(c,"parsererror",p,m,h):e(b,p,m,h)}else f(p.statusText||null,p.status?"error":"abort",p,m,h)}};if(!1===d(p,m))return p.abort(),f(null,"abort",p,m,h),p;if(m.Jc)for(x in m.Jc)p[x]=m.Jc[x];p.open(m.type,m.url,"async"in m?m.async:!0,m.Hc,m.Od);for(x in s)y.apply(p,s[x]);0").C(b.replace(I,"")).find(m):b);l&&l.apply(e, arguments)};a.U(b);return this};var m=encodeURIComponent;a.rc=function(a,b){var c=[];c.add=function(a,b){this.push(m(a)+"="+m(b))};H(c,a,b);return c.join("&").replace(/%20/g,"+")}})(z);(function(a){var b=[],c;a.F.remove=function(){return this.B(function(){this.parentNode&&("IMG"===this.tagName&&(b.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",c&&clearTimeout(c),c=setTimeout(function(){b=[]},6E4)),this.parentNode.removeChild(this))})}})(z); (function(a){a.gb=function(b){function c(a){d=b.memory&&a;e=!0;q=h||0;h=0;l=n.length;for(f=!0;n&&q=d&&setTimeout(function(){ga.B(function(){W.call(this)})},0);return this};f=null})(z); (function(a,b){function c(c,d,e,f,h){"function"!=typeof d||h||(h=d,d=b);e={opacity:e};f&&(e.scale=f,c.P(a.va.cd+"transform-origin","0 0"));return c.Sc(e,d,h)}function d(b,d,e,h){return c(b,d,0,e,function(){f.call(a(this));h&&h.call(this)})}var e=a.F.show,f=a.F.J,h=a.F.toggle;a.F.show=function(a,d){e.call(this);a===b?a=0:this.P("opacity",0);return c(this,a,1,"1,1",d)};a.F.J=function(a,c){return a===b?f.call(this):d(this,a,"0,0",c)};a.F.toggle=function(c,d){return c===b||"boolean"==typeof c?h.call(this, c):this.B(function(){var b=a(this);b["none"==b.P("display")?"show":"hide"](c,d)})};a.F.kd=function(a,b,d){return c(this,a,b,null,d)};a.F.Se=function(a,b){var c=this.P("opacity");0>>0,e=0,f;if("function"!=typeof b)throw new TypeError;if(0==d&&1==arguments.length)throw new TypeError;if(2<=arguments.length)f=arguments[1];else{do{if(e in c){f=c[e++];break}if(++e>=d)throw new TypeError;}while(1)}for(;e/,n="Zepto"+ +new Date;d.oa=function(b,f){return c(f,function(c,l,h){try{var u;!c&&l?c="*":q.test(c)&&(u=a(b).W(n),c="."+n+" "+c);var x=e(b,c)}catch(I){throw console.error("error performing selector: %o", f),I;}finally{u&&u.$(n)}return l?d.je(a.map(x,function(a,b){return l.call(a,b,x,h)})):x})};d.matches=function(a,b){return c(b,function(b,c,d){return(!b||f(a,b))&&(!c||c.call(a,null,d)===a)})}})(z);(function(a){a.F.end=function(){return this.uc||a()};a.F.ze=function(){return this.add(this.uc||a())};"filter add not eq first last find closest parents parent children siblings".split(" ").forEach(function(b){var c=a.F[b];a.F[b]=function(){var a=c.apply(this,arguments);a.uc=this;return a}})})(z); (function(a){function b(){n=null;f.Ca&&(f.ha.ba("longTap"),f={})}function c(){h&&clearTimeout(h);l&&clearTimeout(l);q&&clearTimeout(q);n&&clearTimeout(n);h=l=q=n=null;f={}}function d(a){return("touch"==a.pointerType||a.pointerType==a.MSPOINTER_TYPE_TOUCH)&&a.isPrimary}function e(a,b){return a.type=="pointer"+b||a.type.toLowerCase()=="mspointer"+b}var f={},h,l,q,n,v;a(document).ready(function(){var p,H,w=0,y=0,u,x;"MSGesture"in window&&(v=new MSGesture,v.target=document.body);a(document).bind("MSGestureEnd", function(a){if(a=1a.velocityX?"Left":1a.velocityY?"Up":null)f.ha.ba("swipe"),f.ha.ba("swipe"+a)}).H("touchstart MSPointerDown pointerdown",function(c){if(!(x=e(c,"down"))||d(c))u=x?c:c.touches[0],c.touches&&1===c.touches.length&&f.Ia&&(f.Ia=void 0,f.Sa=void 0),p=Date.now(),H=p-(f.Ca||p),f.ha=a("tagName"in u.target?u.target:u.target.parentNode),h&&clearTimeout(h),f.Mb=u.pageX,f.Nb=u.pageY,0=H&&(f.zd=!0),f.Ca=p,n=setTimeout(b,750),v&&x&&v.addPointer(c.pointerId)}).H("touchmove MSPointerMove pointermove", function(a){if(!(x=e(a,"move"))||d(a))u=x?a:a.touches[0],n&&clearTimeout(n),n=null,f.Ia=u.pageX,f.Sa=u.pageY,w+=Math.abs(f.Mb-f.Ia),y+=Math.abs(f.Nb-f.Sa)}).H("touchend MSPointerUp pointerup",function(b){if(!(x=e(b,"up"))||d(b))n&&clearTimeout(n),n=null,f.Ia&&30=Math.abs(c-d)?0w&& 30>y?l=setTimeout(function(){var b=a.Ja("tap");b.He=c;f.ha.ba(b);f.zd?(f.ha&&f.ha.ba("doubleTap"),f={}):h=setTimeout(function(){h=null;f.ha&&f.ha.ba("singleTap");f={}},250)},0):f={}),w=y=0}).H("touchcancel MSPointerCancel pointercancel",c);a(window).H("scroll",c)});"swipe swipeLeft swipeRight swipeUp swipeDown doubleTap tap singleTap longTap".split(" ").forEach(function(b){a.F[b]=function(a){return this.H(b,a)}})})(z); var ja=null,ka=window,la=document,ma="undefined"!=typeof window.Ua||"undefined"!=typeof liebaoExtentions&&liebaoExtentions.Cd&&liebaoExtentions.Cd(),na="undefined"!=typeof liebaoExtentions;la.addEventListener("mobileSupportInitialized",function(){}); function oa(){pa();A.od();$("#randcodeimg").L("click",function(){A.ab();return!1});$(".query_box .query_bigcheck").L("click",function(){$(".query_bigcheck",$(this).parent(".query_box")).$("query_bigcheck_checked");$("input[type=radio]",this).D("checked","checked");$(this).W("query_bigcheck_checked")});$('[data-fn="back"]').H("click",function(){window.history.back()});$(".query_box [type=checkbox]").L("change",function(){if(0!=$(this).X(".query_box").find('[type=checkbox][value="all"]').length){var a= $(this).X(".query_box").find("[type=checkbox]"),b=$(this).X(".query_box").find('[type=checkbox][value="all"]');if("all"==$(this).A())$(this).O("checked")?a.O("checked",!0):a.O("checked",!1);else{var c=$(this).X(".query_box").find("[type=checkbox]:checked").length;b.O("checked")&&c--;c==a.length-1?b.O("checked",!0):b.O("checked",!1)}}})}var D="",qa=!1,ra=0; function sa(a,b,c){ra++;A.Ab(function(){qa=!0;sessionStorage.getItem("user")?D=sessionStorage.getItem("user"):localStorage.getItem("useraccount")&&(D=JSON.parse(localStorage.getItem("useraccount")).username);pa();$("body").$("nologin");$("#login_tip").J();"function"==typeof a&&a()},function(){sessionStorage.clear();qa=!1;$("body").W("nologin");$("#login_tip").show();"function"==typeof b&&b()},function(){qa=!1;$("body").W("nologin");$("#login_tip").show();2>ra?sa(a,b,c):c()})}var va=[],wa={}; function pa(){va=xa();for(var a=0,b=va.length;a'+a+"");b=b||1500;$("body").append(c);setTimeout(function(){c.W("public_toast_show")},10);setTimeout(function(){c.$("public_toast_show");c.H("webkitTransitionEnd",function(){c.remove()})},b)}} function za(a,b){var c="",d=la.createElement("div"),e="";if("object"==typeof b)for(var f in b)e+=''+b[f]+"";d.className="public_layer";c+='

'+a+"

"+(""==e?'':'
'+e+"
")+"
";d.innerHTML=c;document.getElementsByTagName("body")[0].appendChild(d);setTimeout(function(){$(".public_pop",d).W("public_pop_show")},0); $(d).H("touchmove",function(a){a.preventDefault();return!1});return $(d)}function K(a,b){var c=za(a,{sure:"\u786e\u5b9a"});$(".public_btns a",c).H("click",function(){c.remove();"function"==typeof b&&b()})}function Aa(a){a=$('
'+(a?"  "+a:"")+"
");$("body").append(a);return a}function M(a){a?a.remove():$(".loadingBox").remove()} function Da(a,b,c){var d=za(a,{cancel:"\u53d6\u6d88",sure:c||"\u786e\u5b9a"});$(".public_btns a",d).H("click",function(){var a=$(this).D("data-val");d.remove();"function"==typeof b&&"sure"==a&&b()})}function ya(a){a=a.replace(/^\?+/,"").replace(/&/,"&");a=a.split("&");for(var b=a.length,c={};b--;)if(item=a[b].split("="),item[0]){var d=item[1]||"";try{d=decodeURIComponent(d)}catch(e){d=unescape(d)}c[decodeURIComponent(item[0])]=d}return c} function xa(){var a=localStorage.getItem(D+"hisQuery");return a?JSON.parse(a):[]}function Ea(a,b){var c=xa(),d;d=-1;for(var e=0,f=c.length;e a.fa.G.getTime()||(a.I=c,a.V=new Date(a.I.getFullYear(),a.I.getMonth(),1,0,0,0),a.Z=a.V.getMonth(),Ja(a)),a=a.I;a&&($("#start_date").C(a.format(Fa)+" "+a.aa(3)),$("#start_date_val").A(a.format("yyyy-MM-dd")))}),$("#start_date").H("click",function(){N("date_box")}),$("[name=type]").H("change",function(){var a=$("[name=type]:checked").A();1==a?(P.fa=Q(P.ra,19),P.I.G.getTime()>P.fa.G.getTime()&&(P.I=P.fa,P.La(P.I)),Ja(P)):2==a&&(P.fa=Q(P.ra,29),Ja(P))}))} function Ia(a){var b=a.G.getTime();b>=P.Ea.G.getTime()&&b<=P.fa.G.getTime()?($("#date_tip").J(),O(),$("#start_date").C(P.I.format(Fa)+" "+P.I.aa(3)),$("#start_date_val").A(P.I.format("yyyy-MM-dd"))):(b=$("a.cur",P.qa).offset(),$("#date_tip").P({left:b.left,top:b.top,display:"block"}).C("

"+a.format("M\u6708d\u65e5")+'\u4e0d\u5728\u9884\u552e\u671f

\u9884\u7ea6\u63d0\u9192'),0.75b.left/window.innerWidth?$("#date_tip").D("class","tip_small tip_left"):$("#date_tip").D("class","tip_small"))}var P; function Ka(a){switch(a){case 9:case "9":return"\u5546\u52a1\u5ea7";case "P":return"\u7279\u7b49\u5ea7";case "M":return"\u4e00\u7b49\u5ea7";case "O":return"\u4e8c\u7b49\u5ea7";case 6:case "6":return"\u9ad8\u7ea7\u8f6f\u5ea7";case 4:case "4":return"\u8f6f\u5367";case 3:case "3":return"\u786c\u5367";case 2:case "2":return"\u8f6f\u5ea7";case 1:case "1":return"\u786c\u5ea7";case 0:case "0":return"\u65e0\u5ea7";default:return""}}var La="OM934612P0".split(""); function Ma(a){for(var b=[],c=0,d=La.length;c>18],c[e>>12&63],c[e>>6&63],c[e&63]),f+=3;return 1==d%3?(b.pop(),b.pop(),b.push("=","=")):(b.pop(),b.push("=")),b.join("")},dd:function(a){var b=[];a=a.split("");var c=R.Uc,d=a.length,e,f=0;if(d%4)return null;for(;f>16,e>>8&255,e&255),f+=4;for(;"="==a[--d];)b.pop();return b},rb:function(a){a=new DataView(a);for(var b=a.byteLength,c=[],d=0;d=b)return a;for(var d=[];d.length+a.length=b)return a;for(var d=[];d.length+a.lengtha&&0>=1)e+=d[a-1900]&c?1:0;e+=b(a);f-=e}0>f&&(f+=e,a--);this.Kc=a;c=d[a-1900]& 15;this.xa=!1;for(a=1;13>a&&0>a?30:29,!0==this.xa&&a==c+1&&(this.xa=!1),f-=e;0==f&&0f&&(f+=e,--a);this.Cb=a;this.aa=f+1}var d=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951, 51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368, 23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448],e="\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341".split(""),f=["\u521d","\u5341","\u5eff","\u5345","\u3000"],h=new Date(1900,0,31);c.prototype.qd=function(){var a="",a=10$day$$lunar$',I:(new Date).G,$d:(new Date).G,Ea:(new Date).G,fa:Q((new Date).G,19),ib:[]};$.extend(this,b);"object"==typeof a&&$.extend(this,a);this.tb=this.I.format("yyyy\u5e74 MM\u6708");this.V=new Date(this.I.getFullYear(),this.I.getMonth(),1,0,0,0);this.Z=this.I.getMonth();Ta(this);Va(this)} function Ta(a){var b=a.Z,c=a.V,d=c.getDay(),e=c.G.getTime(),f=[],h=a.Ea.G.getTime(),l=a.fa.G.getTime();do f.push({year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),format:c.format("yyyy/MM/dd"),time:c.G.getTime(),"class":c.jc?" today"+(a.I.G.getTime()==c.G.getTime()?" cur":""):a.I.G.getTime()==c.G.getTime()?" cur":"",isCheckClass:el?" remind":"",lunar:(new LunarCalendar(c)).vb()}),c=new Date(c.getTime()+864E5),e=c.G.getTime();while(b==c.getMonth());for(b=c.getDay();7>b&&0!= b;b++)f.push({year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),format:c.format("yyyy/MM/dd"),time:c.G.getTime(),"class":c.jc?" today"+(a.I.G.getTime()==c.G.getTime()?" cur":""):a.I.G.getTime()==c.G.getTime()?" cur":"",isCheckClass:el?" remind":"",lunar:(new LunarCalendar(c)).vb()}),c=new Date(c.getTime()+864E5),e=c.G.getTime();b=d;c=new Date((new Date(a.V.getFullYear(),a.V.getMonth(),1,0,0,0)).getTime()-864E5);for(e=c.G.getTime();0l?" remind":"",lunar:(new LunarCalendar(c)).vb()}),c=new Date(c.getTime()-864E5),e=c.G.getTime();a.ib=f} function Va(a){for(var b='
'+a.tb+'
',c=0,d=a.ib.length;c"),b+=Sa(a.de,a.ib[c]);a.qa.C(b+"
\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d
");Wa(a)} function Wa(a){$("table a",a.qa).H("click",function(){var b=new Date(parseInt($(this).D("data-time")));if(!$(this).Ba("cur")){if(b.getTime()b?(b=11,c=new Date(a.V.getFullYear()- 1,b,1,0,0,0)):c=new Date(a.V.getFullYear(),b,1,0,0,0);c.getTime()<(new Date(a.ra.getFullYear(),a.ra.getMonth(),1,0,0,0)).getTime()||(a.Z=b,a.V=c,Ja(a))}else a.Z++,11b.fa.G.getTime()||(b.I=a,b.Z=a.getMonth(),b.V=new Date(a.getFullYear(),b.Z,1,0,0,0),Ja(b))}function Ya(){var a=P;a.Ea=Q(new Date,20);a.fa=Q(a.Ea,29)}var Za=!1,$a={a:[],b:[],c:[],d:[],e:[],f:[],g:[],h:[],i:[],j:[],k:[],l:[],m:[],n:[],o:[],p:[],q:[],r:[],s:[],t:[],u:[],v:[],w:[],x:[],y:[],z:[]},ab={},bb=[],cb=null; function hb(){if(!Za){Za=!0;ib=ka.station_names.substr(1);jb=ib.split("@");for(var a="",b=[],c=0;c
'; if(0\u70ed\u95e8
    '}$("body").append(a);kb()}}function lb(){$("#search_station").W("fixed_box_show")}function mb(){$("#search_station").$("fixed_box_show")} function kb(){$("#station_cancel").H("click",function(){mb();nb&&nb()});$("#station_search").H("input",function(){var a=$(this).A();if($.trim(a)){a=$.trim(a).toLowerCase();if($a[a[0]]){var b=$a[a[0]],c=[],c=[],d=[],e=[];if(0==a.length)a=b;else{for(var f=0,h=b.length;f'+a[c][1]+"";$("#station_suggest ul").C(b);$("#station_suggest").show()}else $("#station_suggest ul").C(""),$("#station_suggest").J()}else $("#station_suggest ul").C(""),$("#station_suggest").J()});$("#search_station [data-code]").L("click",function(){var a=$(this).D("title"),b=$(this).D("data-code");cb&&cb(a,b);$("#station_suggest ul").C("");$("#station_suggest").J(); $("#station_search").A("")})}function ob(a,b){return parseInt(a[5])>parseInt(b[5])?1:-1}var ib,jb,nb; function pb(){if(0!=$("#login_page").length){var a=new Date;$("#interval").C(a.format("M\u6708dd\u65e5")+"-"+Q(a,19).format("M\u6708d\u65e5"));A.ab();$("#randcode").kf(function(){this.value=this.value.replace(/[^0-9a-zA-Z]/g,"")});$("#loginForm").submit(function(a){var c={username:$("[name=username]",this).A(),password:$("[name=password]",this).A(),randcode:$("[name=randcode]",this).A()};if(c.Hc){if(!c.Od)return G("\u8bf7\u8f93\u5165\u767b\u5f55\u5bc6\u7801"),!1;if(!c.Kf)return G("\u8bf7\u8f93\u5165\u9a8c\u8bc1\u7801"), !1}else return G("\u8bf7\u8f93\u5165\u7528\u6237\u540d"),!1;T=c;qb();a.preventDefault();return!1});localStorage.getItem("useraccount")?(T=JSON.parse(localStorage.getItem("useraccount")),$("#loginForm [name=username]").A(T.username),$("#loginForm [name=password]").A(T.password),A.Ab(function(){sessionStorage.setItem("user",T.username);G("\u767b\u5f55\u6210\u529f\uff0c\u6b63\u5728\u8fdb\u5165\u8ba2\u7968\u9875\u9762\uff0c\u8bf7\u7a0d\u7b49 \u2764");setTimeout(function(){location.href="index.html"}, 1E3)})):sessionStorage.clear()}}var T=null; function qb(){S.R("login/loginAysnSuggest",null,{"loginUserDTO.user_name":T.username,"userDTO.password":T.password,randCode:T.randcode},"login/init").M(function(a){a&&a.data&&"Y"===a.data.pf?rb():(a=(a.qf||["\u672a\u77e5\u9519\u8bef"]).join(";"),A.ab(),-1!=a.indexOf("\u767b\u5f55\u540d")?($("#username").focus(),G("\u7528\u6237\u540d\u8f93\u5165\u9519\u8bef\u3002")):-1!=a.indexOf("\u9a8c\u8bc1\u7801")?($("#randcode").focus(),G("\u9a8c\u8bc1\u7801\u4e0d\u6b63\u786e\u3002")):-1!=a.indexOf("\u90ae\u7bb1")? ($("#username").focus(),G("\u90ae\u7bb1\u8f93\u5165\u9519\u8bef\u3002")):-1\u6700\u8fd1\u67e5\u627e";$("#hisQuery").C(b);$("#hisQuery [data-key]").H("click",function(){var a=$(this).D("data-key");a&&wa[a]&&Ab(wa[a])});Ab(wa[$("#hisQuery [data-key]:eq(0)").D("data-key")])}} function Ab(a){var b;$("#query_form [type=checkbox],#query_form [type=radio]").O("checked",!1);for(var c in a)b=$("#query_form [name="+c+"]"),1'+b[1]+''):"passenger"==b[0]&&($('#passenger_form [name="psg"][value="'+b[1]+'"]').O("checked",!0),$("#filter_form #passenger_list").append(''+b[1].split("$")[0]+''));sessionStorage.getItem(D+"_passenger")?(JSON.parse(sessionStorage.getItem(D+"_passenger")),JSON.parse(sessionStorage.getItem(D+ "_passengerobj"))):S.R("confirmPassenger/getPassengerDTOs",null,null,"leftTicket/init").M(function(a){if(a.status&&Array.isArray(a.data.normal_passengers)&&0'+(d[0]&&"00"!=d[0]?parseInt(d[0])+"\u5c0f\u65f6":"")+(d[1]?parseInt(d[1])+"\u5206":"0\u5206")+''+ b.station_train_code+""+b.start_time+" - "+b.arrive_time+"";$("#trainList").C(c)}function Cb(){sessionStorage.getItem(D+"_passenger")?Jb(JSON.parse(sessionStorage.getItem(D+"_passenger"))):S.R("confirmPassenger/getPassengerDTOs",null,null,"leftTicket/init").M(function(a){a.status&&Array.isArray(a.data.normal_passengers)&&0'+a[c].passenger_name+"";$("#passengers").C(b);a=$("#query_form [name=filters]").A().split("&");wb(a)} function zb(){$("#train_filter").L("click",function(){Hb()});$("#trains_ok").L("click",function(){N("filter")});$("#trainList a").L("click",function(){var a=$(this).D("data-traincode");$(this).Ba("cur")?($('#train_labels [value="'+a+'"]').X(".train_label").remove(),$(this).$("cur")):($(this).W("cur"),$("#train_labels").append(''+a+''))});$("#train_labels .train_label").L("click",function(){$(this).remove()});$("#check_passenger").L("click", function(){qa?N("passenger"):Da("\u767b\u9646\u540e\u53ef\u9009\u4e58\u8f66\u4eba",function(){window.location.href="login.html"},"\u767b\u9646")});$('#passengers [name="psg"]').L("change",function(){if(5<$('#passengers [name="psg"]:checked').length)K("\u8054\u7cfb\u4eba\u6700\u591a\u53ea\u80fd\u9009\u62e9\u4e94\u4e2a"),$(this).O("checked",!1);else{var a=$(this).A(),b=$(this).D("data-name");$(this).O("checked")?$("#passenger_list").append(''+b+''):$('#passenger_list [name="passenger"]').X(".train_label").remove()}});$("#passenger_ok").L("click",function(){var a=$('#passenger_list [name="passenger"]');$('#passenger_form [name="psg"]').O("checked",!1);a.B(function(a,c){$('#passenger_form [name="psg"][value="'+$(c).A()+'"]').O("checked",!0)});N("filter")});$("#passenger_list .train_label").L("click",function(){var a=$("input",this).A();$(this).remove();$('#passengers [name="psg"][value="'+a+'"]').O("checked",!1)})} function Kb(){if(0!=$("#runquery_page").length){var a=Q(new Date,19);Fa="M\u6708d\u65e5";Ga(a);P.La=Lb;sa(Mb,Mb,Mb);$("#filter_ok").H("click",function(){O();$("#query_form [name=filters]").A($("#filter_form").Qa());Nb();Ob()});$("#check_left,#check_right").H("click",function(){Ob()});$("#filter_cancel").H("click",function(){O();var a=$("#query_form [name=filters]").A().split("&");wb(a)});$("#filter_btn").H("click",function(){N("filter")});$("#filter_cancel").H("click",function(){O()});$('[data-fn="buy"]').L("click", function(){var a=$(this).D("data-traincode"),c=$(this).D("data-seatcode");"0"==c&&0<$('[data-traincode="'+a+'"][data-seatcode="'+c+'"]').length&&(c="1");sessionStorage.setItem(D+"curBuy",JSON.stringify(U.fb[a]));sessionStorage.setItem(D+"curBuySeat",c);qa?location.href="perfect.html":K("\u8fd8\u672a\u767b\u5f55\uff0c\u8bf7\u767b\u9646\u540e\u8d2d\u7968",function(){location.href="login.html?t=submitorder"})});$("#autoTipBtn").L("click",function(){if(qa){if(!Qb){try{S.yc()}catch(a){alert(a)}Rb=Sb=(new Date).getTime(); Qb=!0;$("#refresh_train").show();$("#autoTip").J();Tb();Ub=1;Vb()}}else window.location.href="login.html"});$("#refresh_end").L("click",function(){Wb()})}} function Mb(){Cb();ec();if(!V)return window.location.href="index.html",!1;wb(V.filters.split("&"));$(".station_title strong").C(V.startname+"\u2192"+V.endname);$("#query_form [name=startname]").A(V.startname);$("#query_form [name=startcode]").A(V.startcode);$("#query_form [name=endname]").A(V.endname);$("#query_form [name=endcode]").A(V.endcode);$("#query_form [name=type]").A(V.type);$("#query_form [name=filters]").A(V.filters);var a=new Date(V.start_date.replace(/\-/g,"/"));$("#start_date").C(a.format("M\u6708d\u65e5")+ " "+a.aa(3));$("#start_date_val").A(a.format("yyyy-MM-dd"));Xa(a);Nb();Tb();zb()}var V=null;function ec(){wa[va[0][0]]&&(V=wa[va[0][0]])} function Tb(){var a=Aa("\u6b63\u5728\u67e5\u7968");A.Oa({"leftTicketDTO.train_date":V.ae,"leftTicketDTO.from_station":V.Wf,"leftTicketDTO.to_station":V.Pe,purpose_codes:"2"==V.type?"0X00":"ADULT"},function(b){M(a);if(!0==b.status&&200==b.httpstatus){if(0";c+='
    ';c+=''+d.code+"";c+=''+ d.from.time+"";c+='';d.from.code==d.start.code&&(c+='\u59cb');c+=d.from.name+"";c+="
    ";c+='
    ';ls=d.elapsedTime.total.split(":");c+=''+(ls[0]?ls[0]+"\u5c0f\u65f6":"")+(ls[1]?ls[1]+"\u5206":"0\u5206")+"";c+='';c+=d.to.time+"";c+='';d.to.code==d.end.code&&(c+='\u7ec8');for(var c=c+(d.to.name+ ""),c=c+"
    ",f=0;f',"\u6709"==d.ticketMapSort[f].count?c+='\u6709':(c+=''+d.ticketMapSort[f].count+"",c+='\u5f20'),c=U.isMaintain?c+'\u7ef4\u62a4':c+('\u62a2\u7968'),c+="",c+=''+d.ticketMapSort[f].name+"",c+=''+d.ticketMapSort[f].price/10+"\u5143",c+="";c+=""}$("#train_list").C(c);$(".station_title span").C("\u5171 "+$("#train_list li").length+" \u8d9f\u5217\u8f66");if(U.isMaintain||0!=Object.keys(U.da).length)if(!U.isMaintain&&Qb){try{S.zc()}catch(h){alert(h)}Wb();$('#train_list li [data-fn="buy"]').sb(0).click()}else $("#autoTip").J(); else gc()}}else!b.status&&b.messages?K(b.messages[0]||"\u672a\u77e5\u9519\u8bef"):K("\u672a\u77e5\u9519\u8bef")},function(b,c){console.log(b,c);M(a)})} function hc(){var a=t.queryLeftNewDTO.yp_info,b=[],a=(-1===a.indexOf("#")?a:/getSelected\(['"](.*?)['"]\)/i.exec(a)[1].split("#")[11]).match(/([A-Z\d])0*?([\*\d]{5})0*?(\d{4})/gi),c;for(c in a){var d=/([A-Z\d])0*?([\*\d]{5})0*?(\d{4})/i.exec(a[c]),e=d[1],f="*"==d[2][0]?null:parseInt(d[2],10),d=parseInt(d[3],10),h={code:e,name:Ka(e),vc:f};3E3>d?(h.count=d,"7"===e?b.push({code:"M",name:Ka("M"),vc:f,count:d}):"8"===e?b.push({code:"O",name:Ka("O"),vc:f,count:d}):b.push(h)):(h.count=d-3E3,h.code="0",h.name= "\u65e0\u5ea7",b.push(h))}return b}var U=null; function fc(a){if(Array.isArray(a.data)||a.data.length){for(var b=a.data,c,d={Lf:a,Td:{},fb:{},Zb:{},Ae:null,yf:null},e=0;e]+>/i, ""):null};c=hc();a.$f=c;a.Ra=Na(c,function(a){return a.code});a.Zf=Ma(a.Ra);if(c=/(0*(\d+)\u67080*(\d+)\u65e5)?(\d+)\s*\u70b9\s*((\d+)\u5206)?\s*\u8d77\u552e/i.exec(t.Fe.replace(/<.*?>/g,"")))a.Be=-1,a.pa=new Date,a.pa.setHours(parseInt(c[4])),a.pa.setMinutes(parseInt(c[6]||"0",10)),a.pa.setSeconds(0),c[1]&&(a.pa.setMonth(parseInt(c[2])-1),a.pa.setDate(parseInt(c[3])),a.pa.getMonth()<(new Date).getMonth()&&a.pa.setFullYear(a.pa.getFullYear()+1));d.Td[a.id]=t;d.Zb[a.code]=t;d.fb[a.id]=a}0=P.Ea.G.getTime()&&b<=P.fa.G.getTime()?($("#date_tip").J(),O(),$("#start_date").C(P.I.format(Fa)+" "+P.I.aa(3)),$("#start_date_val").A(P.I.format("yyyy-MM-dd")),Ob()):(b=$("a.cur",P.qa).offset(),$("#date_tip").P({left:b.left,top:b.top,display:"block"}).C("

    "+a.format("M\u6708d\u65e5")+'\u4e0d\u5728\u9884\u552e\u671f

    \u9884\u7ea6\u63d0\u9192'),0.75< b.left/window.innerWidth?$("#date_tip").D("class","tip_small tip_right"):0.15>b.left/window.innerWidth?$("#date_tip").D("class","tip_small tip_left"):$("#date_tip").D("class","tip_small"))}function Ob(){Ea($("#startStationCode").A()+"-"+$("#endStationCode").A(),$("#query_form").Qa());pa();ec();Tb()} function gc(){Qb||(qa?$("#autoTip p").C("\u6682\u65f6\u65e0\u7968!
    \u6ca1\u6709\u7b26\u5408\u4f60\u8981\u6c42\u7684\u8f66\u6b21\u548c\u5e2d\u522b"):$("#autoTip p").C("\u6682\u65f6\u65e0\u7968!
    \u767b\u5f55\u540e\u53ef\u4ee5\u81ea\u52a8\u5237\u7968"),$("#autoTip").show())}var Ub=0,Sb=null,Rb=null,Qb=!1,mc=null; function Vb(){if(Qb){var a=(new Date).getTime(),b;b=a-Sb;b=parseInt(b/6E4)+"\u5206"+parseInt(b%6E4/1E3)+"\u79d2";var c=((5E3-(a-Rb))/1E3).toFixed(1);0>=c&&(c=0);$("#refresh_train .rf_desc").C("\u5df2\u5237 "+Ub+" \u6b21\uff0c\u7528\u65f6 "+b+"
    \u8ddd\u4e0b\u6b21\u5237\u7968\u8fd8\u6709 "+c+" \u79d2 ...");0==c&&(Rb=a,Ub++,Tb());mc=setTimeout(Vb,100)}}function Wb(){try{S.xc()}catch(a){alert(a)}clearTimeout(mc);Qb=!1;$("#refresh_train").J();0==U.da.length&&gc()} var Y={xb:function(){if(0==$("#ordersubmit_page").length)return!1;Y.Yc();sa(function(){sessionStorage.getItem(D+"curBuy")||sessionStorage.getItem("curBuy")||(window.location.href="index.html");Y.ud();Y.rd()},function(){window.location.href="login.html"},function(){window.location.href="login.html"})},ud:function(){Y.T=JSON.parse(sessionStorage.getItem(D+"curBuy"));Y.T||(Y.T=JSON.parse(sessionStorage.getItem("curBuy")));Y.lb=sessionStorage.getItem(D+"curBuySeat");Y.lb||(Y.lb=sessionStorage.getItem("curBuySeat")); Y.$b=wa[Y.T.from.code+"-"+Y.T.to.code];var a='
    ',b=new Date(Y.T.form_train_date.replace(/\-/g,"/")),a=a+('
    '+Y.T.code+""+b.format("yyyy-M-d")+" "+b.aa(3)+"
    "),a=a+('
    '+Y.T.from.name+""+Y.T.from.time+"
    "),a=a+('
    '+Y.T.to.name+""+Y.T.to.time+"
    "),a=a+"
    ";$("#trainInfo").C(a)},Na:null, nf:function(){if($("#randcodeimg").Ba("loading_code"))return!1;$("#randcodeimg").W("loading_code");A.oc("sjrand",function(a){$("#randcodeimg").D("src",a);$("#randcodeimg").$("loading_code")},"passcodeNew/getPassCodeNew?module=login&rand=sjrand")},rd:function(){sessionStorage.getItem(D+"_passenger")?(Y.Na=JSON.parse(sessionStorage.getItem(D+"_passenger")),Y.ya=JSON.parse(sessionStorage.getItem(D+"_passengerobj")),Y.Cc()):S.R("confirmPassenger/getPassengerDTOs",null,null,"leftTicket/init").M(function(a){a.status&& Array.isArray(a.data.normal_passengers)&&0'+Y.Na[b].passenger_name+"";if(Y.$b)for(var c=Y.$b.filters.split("&"),d=[],b=0;b'+a.passenger_name+''+b[0].name+"
    "+a.passenger_id_no+'
    '+c.name+" "+c.price/10+'\u5143 ';$("#passenger_list").append(b)},Oc:function(a, b){var c=Y.ya[a],d=Y.T.Ra[b.D("data-seat")];html='
  • \t\t\t\t'+c.passenger_name+'\u513f\u7ae5\u7968
    '+c.passenger_id_no+'
    \t\t\t\t\t\t\t\t'+d.name+" "+d.price/10+'\u5143 
  • '; b.ue(html)},md:function(a){for(var b=[],c={},d="",e=0;e'+b.count+' \u5f20'+b.name+''+b.price/10+"\u5143";$("#edit_seat ul").C(a);$("#edit_seat").show();Y.Kb()},Zd:function(){for(var a=Pa(Y.ya[Y.pb]),b="",c=0,d=a.length;c'+a[c].name+"";$("#edit_ticket ul").C(b);$("#edit_ticket").show();Y.Kb()},K:null,submit:function(a,b,c){var d=[],e=[];c=c?"0X00":"ADULT";a.forEach(function(a){d.push(a.Sf+",1,"+a.Hb+","+a.Nd+","+a.Md+","+a.Ld+","+a.rf+","+(b.Of?"Y":"N"));"2"===a.Hb?e.push(" "):e.push(a.Nd+","+a.Md+","+a.Ld+","+a.Hb)});d=d.join("_");e=e.join("_")+"_";Y.K={secretStr:b.secureStr,train_date:b.date,train_date_full:(new Date(b.date)).toString(),train_no:b.id,tour_flag:b.resign? "gc":"dc",purpose_codes:c,query_from_station_name:b.from.name,fromStationTelecode:b.from.code,query_to_station_name:b.to.name,toStationTelecode:b.to.code,stationTrainCode:b.code,seatType:a[0].seat,cancel_flag:2,bed_level_order_num:"000000000000000000000000000000",_json_att:"",passengerTicketStr:d,oldPassengerStr:e};Y.Da=Aa("\u6b63\u5728\u63d0\u4ea4\u8ba2\u5355");A.Oa({"leftTicketDTO.train_date":Y.T.form_train_date,"leftTicketDTO.from_station":Y.T.from.code,"leftTicketDTO.to_station":Y.T.to.code,purpose_codes:Y.K.purpose_codes}, function(a){if(!0==a.status&&200==a.httpstatus&&0[\u672a\u5b8c\u6210\u8ba2\u5355]\u8fdb\u884c\u5904\u7406!',function(){window.location.href="no_complete_order.html"}):K(a)}},nc="",oc="",pc=null,qc=""; function rc(){0!=$("#no_complete_page").length&&(sa(sc),tc(),$("[data-no]").L("click",function(){qc=$(this).D("data-no");N("banks")}),$('[data-fn="close_bank"]').L("click",function(){O()}),$("#banks [data-bank]").L("click",function(){oc=$(this).D("data-bank");pc=Aa("\u6b63\u5728\u52a0\u8f7d");uc()}))} function sc(){S.get("queryOrder/queryMyOrderNoComplete","json",null,"queryOrder/initNoComplete").M(function(a){if(a.status&&a.data&&a.data.orderDBList&&0\u8ba2\u5355\u53f7\uff1a'+a[d].sequence_no+""),b=b+'
    ',c=(new Date(a[d].tickets[0].pay_limit_time.replace(/\-/gi,"/"))).getTime(),f=0;f', b+='
    K2341'+(new Date(a[d].start_train_date_page.replace(/\-/gi,"/"))).format("yyyy-M-d")+" "+(new Date(a[d].start_train_date_page.replace(/\-/gi,"/"))).aa(3)+"
    ",b+='
    ',b+='
    '+a[d].from_station_name_page[0]+""+a[d].start_time_page+"
    ",b+='
    '+a[d].to_station_name_page[0]+""+a[d].arrive_time_page+"
    ",b+="
    ",b+='
    ', b+=''+a[d].tickets[f].passengerDTO.passenger_name+"",b+=''+a[d].tickets[f].passengerDTO.passenger_id_no+"",b+="
    ",b+='
    '+a[d].tickets[f].str_ticket_price_page+"\u5143",b+=a[d].tickets[f].ticket_type_name,b+=" "+a[d].tickets[f].seat_type_name,b+=" "+a[d].tickets[f].coach_name+"\u8f66",b+=a[d].tickets[f].seat_name,b+="
    ",b+="
    ";b+="";b+='
    '; b+='

    \u5e2d\u4f4d\u5df2\u6210\u529f\u9501\u5b9a\uff0c\u8bf7\u60a8\u5728\u5185\u8fdb\u884c\u7f51\u4e0a\u652f\u4ed8\uff0c\u5426\u5219\u5e2d\u4f4d\u5c06\u81ea\u52a8\u91ca\u653e\u7ed9\u5176\u4ed6\u65c5\u5ba2\u3002

    ';b+='
    \u7acb\u5373\u652f\u4ed8'+a[d].ticket_total_price_page+ "\u5143
    ";b+="
    "}$("#orders").C(b);vc()}}).N(function(a,b){console.log(a,b)})}function tc(){S.R("queryOrder/initNoComplete","html",null,"payOrder/init").M(function(a){a.match(/\S+\s+globalRepeatSubmitToken\s+=\s+\S+/);eval(a.match(/\S+\s+globalRepeatSubmitToken\s+=\s+\S+/)[0]);globalRepeatSubmitToken&&(nc=globalRepeatSubmitToken)}).N(function(){K("12306\u4e0d\u7ed9\u529b\u554a\uff0c\u5509\u3002\u51fa\u73b0\u7f51\u7edc\u9519\u8bef\u4e86\uff0c\u8bf7\u91cd\u8bd5..")})} function vc(){$("[data-limittime]").B(function(a,b){var c=$(b),d=c.D("data-orderno"),e=(new Date(parseInt(c.D("data-limittime")))).getTime()-(new Date).getTime();27E5d&&(d="0"+d),10>e&&(e="0"+e),c.C(d+":"+e))});setTimeout(vc,1E3)} function uc(){var a={sequence_no:qc,pay_flag:"pay",_json_att:"",REPEAT_SUBMIT_TOKEN:nc};$("span",pc).C("\u6b63\u5728\u83b7\u53d6\u652f\u4ed8\u4fe1\u606f");S.R("queryOrder/continuePayNoCompleteMyOrder","json",a,"queryOrder/initNoComplete").M(function(a){a.status&&("Y"==a.data.Re?K(a.data.Qe):S.R("payOrder/paycheck","json",{_json_att:""},"payOrder/init").M(function(a){wc(a.data.payForm)}).N(function(){K("12306\u4e0d\u7ed9\u529b\u554a\uff0c\u5509\u3002\u51fa\u73b0\u7f51\u7edc\u9519\u8bef\u4e86\uff0c\u8bf7\u91cd\u8bd5..")}))}).N(function(){K("12306\u4e0d\u7ed9\u529b\u554a\uff0c\u5509\u3002\u51fa\u73b0\u7f51\u7edc\u9519\u8bef\u4e86\uff0c\u8bf7\u91cd\u8bd5..")})} function xc(a){for(var b={},c=//g,d=null;null!=(d=c.exec(a));)"name"==d[1]?b[d[2]]=d[4]:b[d[4]]=d[2];return b} function wc(a){a={_json_att:"",interfaceName:a.interfaceName,interfaceVersion:a.interfaceVersion,tranData:a.tranData,merSignMsg:a.merSignMsg,appId:a.appId,transType:a.transType};$("span",pc).C("\u6b63\u5728\u63d0\u4ea4\u652f\u4ed8\u8bf7\u6c42");S.R("https://epay.12306.cn/pay/payGateway","html",a,"payOrder/init").M(function(a){a=xc(a);a.Ce=oc;S.R("https://epay.12306.cn/pay/webBusiness","html",a,"https://epay.12306.cn/pay/payGateway").M(function(a){xc(a);a=a.replace(/[\n\t\r]/gi,"").replace(/>\s+<").match(//gi);0=P.Ea.G.getTime()&&a<=P.fa.G.getTime()&&($("#date_tip").J(),O(),$("#start_date").C(P.I.format(Fa)+" "+P.I.aa(3)),$("#start_date_val").A(P.I.format("yyyy-MM-dd")))} function Ec(){hb();$("#startStation").H("click",function(){cb=Hc;nb=Ic;lb();$("#wrap").J()});$("#endStation").H("click",function(){cb=Jc;nb=Ic;lb();$("#wrap").J()});$("#exchange").H("click",function(){var a=$("#startStationName").A(),b=$("#startStationCode").A(),c=$("#endStationName").A(),d=$("#endStationCode").A();$("#startStationName").A(c);$("#startStationCode").A(d);$("#endStationName").A(a);$("#endStationCode").A(b);a?$("#endStation").C(a):$("#endStation").C("\u5230\u8fbe\u7ad9");c?$("#startStation").C(c): $("#startStation").C("\u51fa\u53d1\u7ad9");Kc()})}function Hc(a,b){$("#startStation").C(a);$("#startStationName").A(a);$("#startStationCode").A(b);mb();$("#wrap").show();Kc()}function Jc(a,b){$("#endStation").C(a);$("#endStationName").A(a);$("#endStationCode").A(b);mb();$("#wrap").show();Kc()}function Kc(){Fc();0<$('.station [value=""]').length||Nc()}function Ic(){$("#wrap").show()}var Oc={}; function Nc(){var a=Q(new Date($("#start_date_val").A()),-30).format("yyyy-MM-dd"),b=$("#startStationCode").A(),c=$("#endStationCode").A(),d=b+c+a+"ADULT",a={"leftTicketDTO.train_date":a,"leftTicketDTO.from_station":b,"leftTicketDTO.to_station":c,purpose_codes:"ADULT"};b!=c&&(Oc[d]?Pc(Oc[d]):A.Oa(a,function(a){!0==a.status&&200==a.httpstatus&&0parseInt(b.split(":")[0])?1:-1});f=f.join(",");b="\u60a8\u9884\u7ea6\u7684"+e.format("YYYY\u5e74M\u6708d\u65e5")+"\uff0c"+c.fromName+"\u81f3"+c.toName+"\u7684\u706b\u8f66\u7968\uff0c\u5c06\u4e8e"+Q(e,-19).format("YYYY\u5e74M\u6708d\u65e5")+f+"\u5f00\u552e\u3002\u552e\u7968\u5f00\u59cb\u524d\u6211\u4eec\u4f1a\u63d0\u9192\u60a8\u3002\u795d\u60a8\u62a2\u7968\u6210\u529f\uff01";$.U({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/SentRss",data:{data:JSON.stringify(c)}, dataType:"json",ia:function(a){M(zc);0==a.resCode?K(b):K(a.message)},error:function(){M(zc);K("\u9884\u5b9a\u5931\u8d25")}})}var Bc; function Qc(){0!=$("#myremind_page").length&&((Rc=JSON.parse(S.bc))?(Sc(),$("[data-ids]").L("click",function(){var a=$(this),b=$(this).D("data-ids");Da("\u5220\u9664\u63d0\u9192\u540e\uff0c\u4f60\u5c06\u4e0d\u4f1a\u6536\u5230\u653e\u7968\u63d0\u9192\uff0c\u786e\u5b9a\u5220\u9664\u5417\uff1f",function(){Tc(b,a.X("li"))})})):K("\u8ba2\u9605\u529f\u80fd\u4ec5\u8bf7\u4f7f\u7528\u624b\u673a\u730e\u8c79\u6d4f\u89c8\u5668",function(){window.history.back()}))} function Tc(a,b){var c=Aa("\u6b63\u5728\u5220\u9664\u63d0\u9192");$.U({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/UpdateRss",data:{device_id:Rc.did,id_list:a},ia:function(){$(".loading",c).C("\u5220\u9664\u63d0\u9192\u6210\u529f");b.remove();setTimeout(function(){M(c)},1E3)},error:function(){M(c);K("\u5220\u9664\u63d0\u9192\u5931\u8d25")}})} function Sc(){$.U({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/GetRss",data:{device_id:Rc.did},dataType:"json",ia:function(a){if(0==a.resCode&&0",a+='
    '+(new Date(b.date.replace(/\-/gi,"/"))).format("M\u6708d\u65e5")+"
    ",a+='
    '+ b.fromName+'
    '+b.toName+"
    ",a+='
    \u8d77\u552e\u65f6\u95f4\uff1a'+b.format_time_list.join("\u3001")+"
    ",a+="";$("#myremind_list").C(a);$(".list_tip").J();$("#myremind_list").show()}else K(a.message)},error:function(){K("\u83b7\u53d6\u4fe1\u606f\u5931\u8d25")}})}var Z={},Vc=[]; function Uc(a){for(var b="",c=0;cb?1:-1});for(c=0;c(new Date(b.date.replace(/\-/gi,"/"))).getTime()?1:-1})} var Rc,R=R||function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),b=!function(){var b={};$.B(a,function(a,e){b[e]=a});return b}();return{qb:function(b){for(var d=[],e=b.length,f,h=0;h>18],a[f>>12&63],a[f>>6&63],a[f&63]),h+=3;1==e%3?(d.pop(),d.pop(),d.push("=","=")):(d.pop(),d.push("="));return d.join("")},dd:function(a){var d=[];a=a.split("");var e=a.length,f,h=0;if(e%4)return null;for(;h>16,f>>8&255,f&255),h+=4;for(;"="==a[--e];)d.pop();return d},rb:function(a){a=new DataView(a);for(var b=a.byteLength,e=[],f=0;f