|
|
@@ -241,16 +241,16 @@
|
|
|
$("#btn_register").attr("disabled",false);
|
|
|
$.post("<%=basePath%>/open/account/register.action",$("#registerFrom").serialize(),function (datas) {
|
|
|
if (datas.ms=='参数不能为空'){
|
|
|
- alert("参数不能为空") ;
|
|
|
+ swal("参数不能为空") ;
|
|
|
}else if (datas.msg=='密码不一致'){
|
|
|
$("#mima").show() ;
|
|
|
}else if (datas.msg=='用户名已存在'){
|
|
|
$("#name").show() ;
|
|
|
} else if(datas.stateCode==200){
|
|
|
- alert("注册成功") ;
|
|
|
+ swal("注册成功") ;
|
|
|
window.location.href='<%=basePath%>/open/account/login.htm' ;
|
|
|
}else {
|
|
|
- alert(datas.msg) ;
|
|
|
+ swal(datas.msg) ;
|
|
|
}
|
|
|
},"json") ;
|
|
|
}else {
|
|
|
@@ -262,16 +262,16 @@
|
|
|
}else {
|
|
|
$.post("<%=basePath%>/open/account/register.action",$("#registerFrom").serialize(),function (datas) {
|
|
|
if (datas.ms=='参数不能为空'){
|
|
|
- alert("参数不能为空") ;
|
|
|
+ swal("参数不能为空") ;
|
|
|
}else if (datas.msg=='密码不一致'){
|
|
|
$("#mima").show() ;
|
|
|
}else if (datas.msg=='用户名已存在'){
|
|
|
$("#name").show() ;
|
|
|
} else if(datas.stateCode==200){
|
|
|
- alert("注册成功") ;
|
|
|
+ swal("注册成功") ;
|
|
|
window.location.href='<%=basePath%>/open/account/login.htm' ;
|
|
|
}else {
|
|
|
- alert(datas.msg) ;
|
|
|
+ swal(datas.msg) ;
|
|
|
}
|
|
|
},"json") ;
|
|
|
}
|