diff --git a/Mobile12306New/css/css.css b/Mobile12306New/css/css.css index 038212d..2a7251e 100644 --- a/Mobile12306New/css/css.css +++ b/Mobile12306New/css/css.css @@ -18,7 +18,6 @@ body { background:#f4f4f4; color:#787878; position:relative;} body.nologin{padding-bottom:60px;} a{color:#fa8c13;} - input[type=checkbox], .icon_change, .icon_edit, @@ -106,8 +105,6 @@ input[type=radio]:checked:after{content:''; display:block; width:12px; height:12 .box_insert{background:#FFF; border-bottom:#ddd solid 1px;padding:0 15px;} - - #loginForm .text_warning{display: inline-block;height: 20px;padding: 5px 10px;margin-right: -10px} #loginForm .form_btns{margin: 10px 0} .form_btns{ margin:15px 0;} @@ -231,7 +228,7 @@ input[type=radio]:checked:after{content:''; display:block; width:12px; height:12 .query_bigcheck_checked span{background:#fa8c13; color:#FFF;} /**/ -.bottom_tip{position:fixed; width:100%; left:0; bottom:0; display:none;} +.bottom_tip{position:fixed; width:100%; height:57px; left:0; bottom:0; display:none; overflow:hidden;} .bottom_tip a{display:block; background:rgba(0,0,0,.8); padding:1.3em 1em; font-size:0.9375rem; color:#FFF; position:relative;} #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;} diff --git a/Mobile12306New/js/js.min.js b/Mobile12306New/js/js.min.js index 6293915..cd2b3f7 100644 --- a/Mobile12306New/js/js.min.js +++ b/Mobile12306New/js/js.min.js @@ -83,8 +83,8 @@ var Public={init:function(){window.onbeforeunload=function(){Client.refreshEnd() 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();alert($("#login_tip").attr("style"));"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?'': +$("#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;e