- 注册时间
- 2014-5-24
- 最后登录
- 2015-2-5
- 阅读权限
- 10
- 积分
- 310
- 精华
- 0
- 帖子
- 90
 
|
dforce 发表于 2014-9-1 11:07 
var messageBox=mini.loading(".........")
$.ajax({
success:function(){
这个当登录错误后,隐藏不了这个messageBox,我是2014年4月份down 下来的jquery miniui包,跟版本有关系吗?
- loadButton.disable();
- loginWindow.hide();
- var messageBox=mini.loading("正在验证用户帐号密码信息...", "提醒");
- $.ajax({
- url: "",
- data: {data:json},
- type:"post",
- cache: false,
- success: function (text) {
- setTimeout(function() {
- if(text == 0){
- alert("数据错误,请联系系统管理员!");
- loadButton.enable();
- loginWindow.show();
- }else if(text == 1){
- login.submit();
- }else if(text == 2){
- alert("您输入的密码有误,请重新输入!");
- loadButton.enable();
- loginWindow.show();
- }else if(text == 3){
- alert("您输入的用户名或密码有误,请重新输入");
- loadButton.enable();
- loginWindow.show();
- }
- mini.hideMessageBox("messageBox");
- return;
- }, 1500);
- },
- error: function (jqXHR, textStatus, errorThrown) {
- alert("系统繁忙,请稍候重试!");
- loadButton.enable();
- loginWindow.show();
-
- }
- });
复制代码
|
|