From 9c1e73bc1c6f85cd52ebd5dc79dd93f74654c743 Mon Sep 17 00:00:00 2001 From: luolei Date: Thu, 4 Sep 2014 18:33:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?25519=20=E2=80=9C=E9=A2=84=E5=94=AE?= =?UTF-8?q?=E6=8F=90=E9=86=92=E2=80=9D=E9=A1=B5=E9=9D=A2=E4=B8=AD=E2=80=9C?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=B1=BB=E5=9E=8B=E2=80=9D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8B=89=E5=8F=96=E4=B8=8D=E5=8F=8A=E6=97=B6=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=A4=9A=E6=95=B0=E6=97=B6=E5=80=99=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E6=9D=A5:=E6=9F=A5=E8=AF=A2=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=A2=9E=E5=8A=A0loading=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mobile12306New/js/remind.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Mobile12306New/js/remind.js b/Mobile12306New/js/remind.js index 47930fc..43ff850 100644 --- a/Mobile12306New/js/remind.js +++ b/Mobile12306New/js/remind.js @@ -5,7 +5,7 @@ var Remind = { if ($('#remind_page').length == 0) { return false; } - + Remind.deviceInfo = JSON.parse(bootStrap.device_info); // Remind.deviceInfo = { @@ -41,18 +41,18 @@ var Remind = { var sch = Public.getQueryData(window.location.search); - + if(!!sch['date'] && !isNaN((new Date(sch['date'].replace(/\-/gi,'/'))).getTime())){ Remind.dateChangeCallback(new Date(sch['date'].replace(/\-/gi,'/'))); } - + if(!!sch['from'] && CheckStaion.CodeObj[sch['from']]){ Remind.startCallback(CheckStaion.CodeObj[sch['from']][1],CheckStaion.CodeObj[sch['from']][2]); } if(!!sch['to'] && CheckStaion.CodeObj[sch['to']]){ Remind.endCallback(CheckStaion.CodeObj[sch['to']][1],CheckStaion.CodeObj[sch['to']][2]); } - + }, checkLoginCallback: function() { @@ -167,13 +167,15 @@ var Remind = { Remind.checkType(Remind.trainsHis[key]); return; } - + Public.showLoading('正在查询数据'); cn12306.queryTicket(data,function(json) { if (json["status"] == true && json["httpstatus"] == 200) { if (json['data'].length > 0) { Remind.trainsHis[key] = json['data']; Remind.checkType(json['data']); + Public.hideLoading(); }else{ + Public.hideLoading(); Public.alert('没有找到从'+$('#startStationName').val()+''+$('#endStationName').val()+'的列车'); } } @@ -230,11 +232,11 @@ var Remind = { types.each(function(idx, el) { var val = $(el).val(), time = Remind.sellTime[data['fromCode']]; - + if (val == 'all') { return; } - + if (!time) { time = Remind.sellTime[data['fromName']]; } @@ -288,7 +290,7 @@ var Remind = { "type": 3 }); }; - + break; } }); From 268777d3244d9914dc849315cec189dfff751e57 Mon Sep 17 00:00:00 2001 From: luolei Date: Thu, 4 Sep 2014 18:41:23 +0800 Subject: [PATCH 2/3] =?UTF-8?q?25519=20=E2=80=9C=E9=A2=84=E5=94=AE?= =?UTF-8?q?=E6=8F=90=E9=86=92=E2=80=9D=E9=A1=B5=E9=9D=A2=E4=B8=AD=E2=80=9C?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=B1=BB=E5=9E=8B=E2=80=9D=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=8B=89=E5=8F=96=E4=B8=8D=E5=8F=8A=E6=97=B6=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=A4=9A=E6=95=B0=E6=97=B6=E5=80=99=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=87=BA=E6=9D=A5:=E5=A2=9E=E5=8A=A0=E8=8F=8A?= =?UTF-8?q?=E8=8A=B1=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mobile12306New/js/remind.js | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/Mobile12306New/js/remind.js b/Mobile12306New/js/remind.js index 3b66ae8..27eabc7 100644 --- a/Mobile12306New/js/remind.js +++ b/Mobile12306New/js/remind.js @@ -5,12 +5,7 @@ var Remind = { if ($('#remind_page').length == 0) { return false; } -<<<<<<< HEAD - -======= - ->>>>>>> 407a9bc0ba6ec59567400d518917d997f74a046f Remind.deviceInfo = JSON.parse(bootStrap.device_info); /* Remind.deviceInfo = { 'did':'020000000000|FFFFFFFF8C61465AA89F4FA78D8767DC0B7F531C', @@ -22,7 +17,7 @@ var Remind = { }); return ; } - + $('#menu_btn').on('click', function() { $('#user_menu').toggle(); $('#user_menu').height(document.documentElement.clientHeight-45); @@ -31,7 +26,7 @@ var Remind = { if ($(e.target).attr('id') == 'user_menu') { $('#user_menu').hide(); } - }); + }); Public.checkLogin(Remind.hasLogin, Remind.noLogin, Remind.noLogin); @@ -66,10 +61,7 @@ var Remind = { if(!!sch['to'] && CheckStaion.CodeObj[sch['to']]){ Remind.endCallback(CheckStaion.CodeObj[sch['to']][1],CheckStaion.CodeObj[sch['to']][2]); } -<<<<<<< HEAD -======= - $('#login').on('click', function() { if ($(this).attr('data-fn') == 'loginout') { cn12306.loginOut(function() { @@ -81,9 +73,8 @@ var Remind = { Public.toast('退出失败,请重试。'); }); } - }); - ->>>>>>> 407a9bc0ba6ec59567400d518917d997f74a046f + }); + }, hasLogin: function() { $('#login').attr('href', 'javascript:;').attr('data-fn', 'loginout').html('退出'); @@ -208,7 +199,7 @@ var Remind = { Remind.checkType(Remind.trainsHis[key]); return; } - Public.showLoading('正在查询数据'); + Public.showLoading('正在查询数据') cn12306.queryTicket(data,function(json) { if (json["status"] == true && json["httpstatus"] == 200) { if (json['data'].length > 0) { @@ -216,11 +207,8 @@ var Remind = { Remind.checkType(json['data']); Public.hideLoading(); }else{ -<<<<<<< HEAD - Public.hideLoading(); -======= Remind.checkType([]); ->>>>>>> 407a9bc0ba6ec59567400d518917d997f74a046f + Public.hideLoading(); Public.alert('没有找到从'+$('#startStationName').val()+''+$('#endStationName').val()+'的列车'); } } From f43baeb9676a9edb47ec00ae3d55b7273896d3eb Mon Sep 17 00:00:00 2001 From: jiangchunyuan Date: Thu, 4 Sep 2014 20:27:55 +0800 Subject: [PATCH 3/3] modify by jcy --- Mobile12306New/css/css.css | 4 +-- Mobile12306New/js/init.js | 4 +-- Mobile12306New/js/js.min.js | 50 ++++++++++++++++++------------------- Mobile12306New/js/login.js | 2 -- Mobile12306New/js/public.js | 10 ++++++++ Mobile12306New/js/remind.js | 2 +- Mobile12306New/login.html | 2 +- Mobile12306New/remind.html | 2 +- 8 files changed, 42 insertions(+), 34 deletions(-) diff --git a/Mobile12306New/css/css.css b/Mobile12306New/css/css.css index d051baf..f6afbb9 100644 --- a/Mobile12306New/css/css.css +++ b/Mobile12306New/css/css.css @@ -237,7 +237,7 @@ input[type=radio]:checked:after{content:''; display:block; width:12px; height:12 #login_tip a:after{content:"登录"; position: absolute; right:1em; background:#fa8c13; padding:0 1.5em; height:2em; line-height:2em; top:50%; -webkit-transform:translate3d(0,-50%,0); border-radius:3px;} /**/ -.top_menu{top:45px; bottom:0; width:100%; position: absolute; background:rgba(0,0,0,.5); display:none; z-index:999;} +.top_menu{top:45px; bottom:0; width:100%; position: absolute; background:rgba(0,0,0,.5); display:none; z-index:998;} .link_list{padding:0 15px; background:#f4f4f4;border-bottom:#cacaca solid 1px; position:relative;} .link_list:before{content:''; border:solid; border-color:transparent transparent #f4f4f4 transparent; border-width:0 8px 8px 8px; position:absolute; top:-8px; right:19px;} .link_list li{border-bottom:#cacaca solid 1px;} @@ -311,7 +311,7 @@ input[type=radio]:checked:after{content:''; display:block; width:12px; height:12 .link_label{display:inline-block; width:55px; overflow:hidden; vertical-align:middle;} -.loadingBox{ position: fixed; top:0; bottom:0; width:100%; overflow:hidden; left:0; right:0; background:rgba(255,255,255,.2);} +.loadingBox{ position: fixed; top:0; bottom:0; width:100%; overflow:hidden; left:0; right:0; background:rgba(255,255,255,.2); z-index:999} .loading{max-width:80%; position:absolute; left:50%; top:50%; -webkit-transform:translate3d(-50%,-50%,0); padding:10px; background:rgba(255,255,255,.8); border-radius:5px; box-shadow:0 0 3px rgba(0,0,0,.3)} diff --git a/Mobile12306New/js/init.js b/Mobile12306New/js/init.js index 380cecd..5bc792a 100644 --- a/Mobile12306New/js/init.js +++ b/Mobile12306New/js/init.js @@ -106,7 +106,7 @@ var bootStrap = (function() { Object.defineProperties(def, { 'isAndroid': { get: function() { - return isAndLiebao; + return isAndroid; } }, 'isIos': { @@ -654,7 +654,7 @@ var bootStrap = (function() { }; $(function() { - if (isIos || isExtension || isAndLiebao) { + if (isIos || isExtension || isAndroid) { def.resolve(); } else { var timer = setTimeout(function() { diff --git a/Mobile12306New/js/js.min.js b/Mobile12306New/js/js.min.js index 6b8884d..a47dac9 100644 --- a/Mobile12306New/js/js.min.js +++ b/Mobile12306New/js/js.min.js @@ -81,19 +81,19 @@ a:a.touches[0],p&&clearTimeout(p),p=null,f.x2=q.pageX,f.y2=q.pageY,m+=Math.abs(f b.cancelTouch=c;f.el.trigger(b);f.isDoubleTap?(f.el&&f.el.trigger("doubleTap"),f={}):g=setTimeout(function(){g=null;f.el&&f.el.trigger("singleTap");f={}},250)},0):f={}),m=u=0}).on("touchcancel MSPointerCancel pointercancel",c);a(window).on("scroll",c)});"swipe swipeLeft swipeRight swipeUp swipeDown doubleTap tap singleTap longTap".split(" ").forEach(function(b){a.fn[b]=function(a){return this.on(b,a)}})})(Zepto);var Client={deviceInfo:null,init:function(){Client.getDeviceInfo()},getDeviceInfo:function(){try{Client.deviceInfo=bootStrap.device_info,Client.deviceInfo="string"==typeof Client.deviceInfo?JSON.parse(Client.deviceInfo):Client.deviceInfo}catch(a){alert(a)}},openUrl:function(a){a&&bootStrap.open_url(a)},refreshStart:function(){try{bootStrap.refresh_start()}catch(a){alert(a)}},refreshEnd:function(){try{bootStrap.refresh_end()}catch(a){alert(a)}},successTime:null,refreshSuccess:function(){try{bootStrap.refresh_success()}catch(a){alert(a)}}};var WIN=window,DOC=document,SKIPVC=!0,hostApi="12306.cn/otsweb",baseProxyUrl="/12306/proxy.php",isMobile=!0,isIos="undefined"!=typeof window.__gChrome||"undefined"!=typeof liebaoExtentions&&liebaoExtentions.isWebviewLiebao&&liebaoExtentions.isWebviewLiebao(),isAndLiebao="undefined"!=typeof liebaoExtentions,isWebApp=!1;DOC.addEventListener("mobileSupportInitialized",function(){isWebApp=!0}); var Public={init:function(){window.onbeforeunload=function(){Client.refreshEnd()};window.onunload=function(){Client.refreshEnd()};Public.setHis();cn12306.getLocalTrainNos();$("#randcodeimg").live("click",function(a){cn12306.recode();return!1});$(".query_box .query_bigcheck").live("click",function(){$(".query_bigcheck",$(this).parent(".query_box")).removeClass("query_bigcheck_checked");$("input[type=radio]",this).attr("checked","checked");$(this).addClass("query_bigcheck_checked")});$('[data-fn="back"]').on("click", function(){window.history.back()});$(".query_box [type=checkbox]").on("change",function(a){if(0!=$(this).closest(".query_box").find('[type=checkbox][value="all"]').length){a=$(this).closest(".query_box").find("[type=checkbox]");var b=$(this).closest(".query_box").find('[type=checkbox][value="all"]');if("all"==$(this).val())$(this).prop("checked")?a.prop("checked",!0):a.prop("checked",!1);else{var c=$(this).closest(".query_box").find("[type=checkbox]:checked").length;b.prop("checked")&&c--;c==a.length- -1?b.prop("checked",!0):b.prop("checked",!1)}}});$(".loginout").live("click",function(){var a=$(this).attr("data-url");Public.isLogin?Public.confirm("\u786e\u5b9a\u9000\u51fa\u767b\u5f55\uff1f",function(){cn12306.loginOut(function(){location.href=a})}):location.href=a});$(".checklogin").live("click",function(){var a=$(this).attr("data-url"),b=$(this).attr("data-text")||"\u8bf7\u5148\u767b\u5f55";if(!Public.isLogin)return Public.confirm(b,function(){location.href=a}),!1})},user:"",isLogin:!1,checkNum:0, -checkLogin:function(a,b,c){Public.checkNum++;cn12306.isUserLogined(function(){Public.isLogin=!0;$(".loginout").show();sessionStorage.getItem("user")?Public.user=sessionStorage.getItem("user"):localStorage.getItem("useraccount")&&(Public.user=JSON.parse(localStorage.getItem("useraccount")).username);Public.setHis();$("body").removeClass("nologin");$("#login_tip").hide();"function"==typeof a&&a()},function(){sessionStorage.clear();Public.isLogin=!1;$(".loginout").hide();$("body").addClass("nologin"); -$("#login_tip").show();"function"==typeof b&&b()},function(){Public.isLogin=!1;$(".loginout").hide();$("body").addClass("nologin");$("#login_tip").show();2>Public.checkNum?Public.checkLogin(a,b,c):c()})},his:{querys:[],queryObjs:{}},setHis:function(){Public.his.querys=Public.getHisQuery();for(var a=0,b=Public.his.querys.length;a'+ -a+"");b=b||1500;$("body").append(c);setTimeout(function(){c.addClass("public_toast_show")},10);setTimeout(function(){c.removeClass("public_toast_show");c.on("webkitTransitionEnd",function(){c.remove()})},b)},popHtml:function(a,b){var c="",d=DOC.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).addClass("public_pop_show")},0);$(d).on("touchmove",function(a){a.preventDefault();return!1});return $(d)},alert:function(a,b){var c=Public.popHtml(a,{sure:"\u786e\u5b9a"});$(".public_btns a",c).on("click",function(){c.remove();"function"==typeof b&&b()})},showLoading:function(a){a=$('
'+ -(a?"  "+a:"")+"
");$("body").append(a);return a},hideLoading:function(a){a?a.remove():$(".loadingBox").remove()},confirm:function(a,b,c){var d=Public.popHtml(a,{cancel:"\u53d6\u6d88",sure:c||"\u786e\u5b9a"});$(".public_btns a",d).on("click",function(){var a=$(this).attr("data-val");d.remove();"function"==typeof b&&"sure"==a&&b()})},getQueryData:function(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},objToQueryString:function(a){var b=[],c,d,e;for(c in a)if(d=a[c],d instanceof Array)for(e=d.length;e--;)b.push(c+"[]="+encodeURIComponent(d[e]));else b.push(c+(""===d?"":"="+encodeURIComponent(d)));return b.join("&")},hasArrObjKey:function(a,b,c){for(var d=-1,e=0,f=a.length;ePublic.calendar.maxDate.date.getTime()&&(Public.calendar.curDate=Public.calendar.maxDate,Public.calendar.checkCallback(Public.calendar.curDate)),Public.calendar.setBasic()):2==a&&(Public.calendar.maxDate= -Public.calendar._TODAY.addDays(29),Public.calendar.setBasic())})},dateChangeCallback:function(a){var b=a.date.getTime();if(b>=Public.calendar.minDate.date.getTime()&&b<=Public.calendar.maxDate.date.getTime())$("#date_tip").hide(),Public.hideInnerPage("date_box"),$("#start_date").html(Public.calendar.curDate.format(Public.formatString)+" "+Public.calendar.curDate.day(3)),$("#start_date_val").val(Public.calendar.curDate.format("yyyy-MM-dd"));else{var b=$("a.cur",Public.calendar.wrap).offset(),c="", -c="

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

\u9884\u7ea6\u63d0\u9192');0.75b.left/window.innerWidth?$("#date_tip").attr("class","tip_small tip_left"):$("#date_tip").attr("class","tip_small")}}};var Util={isImageFile:function(a){a=a.substring(a.lastIndexOf("."),a.length).toLowerCase();return".bmp"==a||".png"==a||".jpg"==a||".gif"==a},isEmpty:function(a,b,c){if(!a[b]){with($("#"+b).addError())0=b)&&(null==c||a<=c)},convertNumberToString:function(a,b){a=""+a;for(var c=[],d=0;dPublic.checkNum?Public.checkLogin(a,b,c):c()})},his:{querys:[],queryObjs:{}},setHis:function(){Public.his.querys=Public.getHisQuery();for(var a=0,b=Public.his.querys.length;a'+a+"");b=b||1500;$("body").append(c);setTimeout(function(){c.addClass("public_toast_show")},10);setTimeout(function(){c.removeClass("public_toast_show");c.on("webkitTransitionEnd",function(){c.remove()})},b)},popHtml:function(a,b){var c="",d=DOC.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).addClass("public_pop_show")},0);$(d).on("touchmove",function(a){a.preventDefault();return!1});return $(d)},alert:function(a,b){var c=Public.popHtml(a,{sure:"\u786e\u5b9a"});$(".public_btns a", +c).on("click",function(){c.remove();"function"==typeof b&&b()})},showLoading:function(a){a=$('
'+(a?"  "+a:"")+"
");$("body").append(a);return a},hideLoading:function(a){a?a.remove():$(".loadingBox").remove()},confirm:function(a,b,c){var d=Public.popHtml(a,{cancel:"\u53d6\u6d88",sure:c||"\u786e\u5b9a"});$(".public_btns a",d).on("click",function(){var a=$(this).attr("data-val");d.remove();"function"== +typeof b&&"sure"==a&&b()})},getQueryData:function(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},objToQueryString:function(a){var b=[],c,d,e;for(c in a)if(d=a[c],d instanceof Array)for(e=d.length;e--;)b.push(c+"[]="+encodeURIComponent(d[e]));else b.push(c+(""===d?"":"="+encodeURIComponent(d)));return b.join("&")}, +hasArrObjKey:function(a,b,c){for(var d=-1,e=0,f=a.length;ePublic.calendar.maxDate.date.getTime()&& +(Public.calendar.curDate=Public.calendar.maxDate,Public.calendar.checkCallback(Public.calendar.curDate)),Public.calendar.setBasic()):2==a&&(Public.calendar.maxDate=Public.calendar._TODAY.addDays(29),Public.calendar.setBasic())})},dateChangeCallback:function(a){var b=a.date.getTime();if(b>=Public.calendar.minDate.date.getTime()&&b<=Public.calendar.maxDate.date.getTime())$("#date_tip").hide(),Public.hideInnerPage("date_box"),$("#start_date").html(Public.calendar.curDate.format(Public.formatString)+ +" "+Public.calendar.curDate.day(3)),$("#start_date_val").val(Public.calendar.curDate.format("yyyy-MM-dd"));else{var b=$("a.cur",Public.calendar.wrap).offset(),c="",c="

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

\u9884\u7ea6\u63d0\u9192');0.75b.left/window.innerWidth?$("#date_tip").attr("class","tip_small tip_left"):$("#date_tip").attr("class","tip_small")}}};var Util={isImageFile:function(a){a=a.substring(a.lastIndexOf("."),a.length).toLowerCase();return".bmp"==a||".png"==a||".jpg"==a||".gif"==a},isEmpty:function(a,b,c){if(!a[b]){with($("#"+b).addError())0=b)&&(null==c||a<=c)},convertNumberToString:function(a,b){a=""+a;for(var c=[],d=0;d"+$("#startStationName").val()+"\u5230"+ -$("#endStationName").val()+"\u7684\u5217\u8f66")))}))},checkType:function(a){$('.query_box [type="checkbox"]').attr("disabled","disabled").prop("checked",!1);for(var b=0,c=a.length;bparseInt(b.split(":")[0])?1:-1});f=f.join(",");b="\u60a8\u4f1a\u5728"+e.format("M\u6708d\u65e5")+"\u6536\u5230\u3010"+c.fromName+"-"+c.toName+"\u3011\u706b\u8f66\u7968\u7684\u5f00\u552e\u63d0\u9192\uff01";$.ajax({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/SentRss",data:{data:JSON.stringify(c)},dataType:"json",success:function(a){Public.hideLoading(Remind.loading);0==a.resCode?Public.alert(b):Public.alert(a.message)}, -error:function(){Public.hideLoading(Remind.loading);Public.alert("\u9884\u5b9a\u5931\u8d25")}})}};var MyRemind={init:function(){if(0==$("#myremind_page").length)return!1;MyRemind.deviceInfo=JSON.parse(bootStrap.device_info);MyRemind.deviceInfo?MyRemind.getMyRemind():Public.alert("\u8ba2\u9605\u529f\u80fd\u4ec5\u8bf7\u4f7f\u7528\u624b\u673a\u730e\u8c79\u6d4f\u89c8\u5668",function(){window.history.back()})},deleteRemind:function(a,b){var c=Public.showLoading("\u6b63\u5728\u5220\u9664\u63d0\u9192");$.ajax({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/UpdateRss",data:{device_id:MyRemind.deviceInfo.did, +c=$("#endStationCode").val(),d=b+c+a+"ADULT",a={"leftTicketDTO.train_date":a,"leftTicketDTO.from_station":b,"leftTicketDTO.to_station":c,purpose_codes:"ADULT"};Remind.checkType([]);b!=c&&(Remind.trainsHis[d]?Remind.checkType(Remind.trainsHis[d]):(Public.showLoading("\u6b63\u5728\u67e5\u8be2\u6570\u636e"),cn12306.queryTicket(a,function(a){!0==a.status&&200==a.httpstatus&&(0"+$("#startStationName").val()+"\u5230"+$("#endStationName").val()+"\u7684\u5217\u8f66")))})))},checkType:function(a){$('.query_box [type="checkbox"]').attr("disabled","disabled").prop("checked",!1);for(var b=0,c=a.length;bparseInt(b.split(":")[0])?1:-1});f=f.join(",");b="\u60a8\u4f1a\u5728"+e.format("M\u6708d\u65e5")+"\u6536\u5230\u3010"+c.fromName+"-"+c.toName+"\u3011\u706b\u8f66\u7968\u7684\u5f00\u552e\u63d0\u9192\uff01";$.ajax({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/SentRss",data:{data:JSON.stringify(c)},dataType:"json",success:function(a){Public.hideLoading(Remind.loading); +0==a.resCode?Public.alert(b):Public.alert(a.message)},error:function(){Public.hideLoading(Remind.loading);Public.alert("\u9884\u5b9a\u5931\u8d25")}})}};var MyRemind={init:function(){if(0==$("#myremind_page").length)return!1;MyRemind.deviceInfo=JSON.parse(bootStrap.device_info);MyRemind.deviceInfo?MyRemind.getMyRemind():Public.alert("\u8ba2\u9605\u529f\u80fd\u4ec5\u8bf7\u4f7f\u7528\u624b\u673a\u730e\u8c79\u6d4f\u89c8\u5668",function(){window.history.back()})},deleteRemind:function(a,b){var c=Public.showLoading("\u6b63\u5728\u5220\u9664\u63d0\u9192");$.ajax({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/UpdateRss",data:{device_id:MyRemind.deviceInfo.did, id_list:a},success:function(){$(".loading",c).html("\u5220\u9664\u63d0\u9192\u6210\u529f");b.remove();setTimeout(function(){Public.hideLoading(c)},1E3)},error:function(){Public.hideLoading(c);Public.alert("\u5220\u9664\u63d0\u9192\u5931\u8d25")}})},getMyRemind:function(){$.ajax({type:"POST",url:"http://12306.liebao.cn/index.php?r=Api/GetRss",data:{device_id:MyRemind.deviceInfo.did},dataType:"json",success:function(a){0==a.resCode?0\u62a2\u7968\u95f9\u949f'):Public.alert(a.message)},error:function(){$(".list_tip").html("\u83b7\u53d6\u4fe1\u606f\u5931\u8d25");Public.alert("\u83b7\u53d6\u4fe1\u606f\u5931\u8d25")}})},remindObj:{},remindList:[],formatJson:function(a){for(var b="",c=0;c\u53d6\u6d88\u8ba2\u5355');"Y"==b[d].pay_flag&&(a+='\u7acb\u5373\u652f\u4ed8');"Y"!=b[d].pay_flag&& "Y"!=b[d].cancel_flag&&(a+='');a+=""+b[d].ticket_total_price_page+"\u5143";a+=""}$(".order_list").html(a);NoComplete.getToken()}}};var base64=base64||function(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),b=!function(){var b={};$.each(a,function(a,e){b[e]=a});return b}();return{encode:function(b){for(var d=[],e=b.length,f,g=0;g>18],a[f>>12&63],a[f>>6&63],a[f&63]),g+=3;1==e%3?(d.pop(),d.pop(),d.push("=","=")):(d.pop(),d.push("="));return d.join("")},decode:function(a){var d=[];a=a.split("");var e=a.length,f,g=0;if(e%4)return null;for(;g>16,f>>8&255,f&255),g+=4;for(;"="==a[--e];)d.pop();return d},encodeArrayBuffer:function(a){a=new DataView(a);for(var b=a.byteLength,e=[],f=0;f
diff --git a/Mobile12306New/remind.html b/Mobile12306New/remind.html index 9b9f040..b9bea85 100644 --- a/Mobile12306New/remind.html +++ b/Mobile12306New/remind.html @@ -50,7 +50,7 @@

开启提醒后,会在开售前进行分段式提醒,为了确保你不会错过抢票时机,请保证手机维持未静音状态。

+

动车票为上午11:00、高铁车票为下午2:00。查看详情