同步提交

This commit is contained in:
iFish 2014-06-13 19:52:22 +08:00
parent 34484db465
commit 3941afa58a
4 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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("隐藏更多选项"));
});
})();

View File

@ -107,5 +107,7 @@
document.addEventListener("requestSupportError", function () {
exports.showMessagePopup("error", "无法执行网络请求似乎没有安装12306订票助手哦。", { closeAfter: null });
});
document.addEventListener("verifyCodeLoadFailed", function() {
exports.showMessagePopup("error", "验证码加载失败,请点击验证码图片刷新哦。");
});
});

View File

@ -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) {