62,074
社区成员
发帖
与我相关
我的任务
分享
$("#btnlogin").click(function() {
b(i) && ($(".btn span").text("登录中..."), $.ajax({
type: "POST",
url: "/m/login.html",
dataType: "json",
data: $("form").serialize(),
success: function(a) {
a && a.Success ? window.location.href = a.ReturnValue.ReturnUrl : null != a.ReturnValue && null != a.ReturnValue.ErrorCount && a.ReturnValue.ErrorCount > 2 ? (i = !0, c(), $.dialog({
style: "tip",
width: 200,
closeTime: 2e3,
content: '<p style="text-align: center">' + a.Message + "</p>"
}).open(), $(".btn span").text("登 录")) : ($.dialog({
style: "tip",
width: 200,
closeTime: 2e3,
content: '<p style="text-align: center">' + a.Message + "</p>"
}).open(), $(".btn span").text("登 录"))
},
error: function() {},
timeout: function() {
$(".btn span").text("登 录"), $.dialog({
buttons: {
"确定": function() {
this.close()
}
},
content: "<p style='text-align: center'>请求超时,请稍后再试</p>"
}).open()
}
}))
})
});