diff --git a/Web12306/css/ui/widget-message-popup.css b/Web12306/css/ui/widget-message-popup.css index 221e2be..88670c0 100644 --- a/Web12306/css/ui/widget-message-popup.css +++ b/Web12306/css/ui/widget-message-popup.css @@ -30,7 +30,7 @@ .message-popup-error .message-popup-inner { border-color: rgb(175, 94, 94); background: #FFF7F7; - color: rgb(175, 94, 94); + color: rgb(134, 77, 77); } .message-popup-ok { border-color: #DCF1DE; diff --git a/Web12306/js/ui/index.js b/Web12306/js/ui/index.js index 61d2a76..926e17f 100644 --- a/Web12306/js/ui/index.js +++ b/Web12306/js/ui/index.js @@ -43,6 +43,10 @@ sessMgr.on("userForcedOut", function() { mp.showMessagePopup("error", "您的登录出现了问题,请重新登录"); }); + $(".search-more-option").click(function() { + var div = $("div.options-param"); + div.is(":visible") ? (div.hide(), $(this).html("显示更多选项")) : (div.show(), $(this).html("隐藏更多选项")); + }); })(); diff --git a/Web12306/js/ui/widget_message_popup.js b/Web12306/js/ui/widget_message_popup.js index c957701..07581e3 100644 --- a/Web12306/js/ui/widget_message_popup.js +++ b/Web12306/js/ui/widget_message_popup.js @@ -107,5 +107,7 @@ document.addEventListener("requestSupportError", function () { exports.showMessagePopup("error", "无法执行网络请求,似乎没有安装12306订票助手哦。", { closeAfter: null }); }); - + document.addEventListener("verifyCodeLoadFailed", function() { + exports.showMessagePopup("error", "验证码加载失败,请点击验证码图片刷新哦。"); + }); }); diff --git a/Web12306/js/ui/widget_verifycode.js b/Web12306/js/ui/widget_verifycode.js index 934313f..900ded8 100644 --- a/Web12306/js/ui/widget_verifycode.js +++ b/Web12306/js/ui/widget_verifycode.js @@ -28,6 +28,7 @@ imageEle.css({ "background-image": "url(" + this.url + ")", "background-size": "100% 100%" }); }, function () { imageEle.css({ "background-image": "url(../../images/loading.gif", "background-size": "auto" }); + document.dispatchEvent(new CustomEvent("verifyCodeLoadFailed")); }); }; exports.refresh = function (target) {