📄 login.js
字号:
function Login(obj)
{
this.OBJ = obj;
this.GetLogin=function()
{
var returnValue;
var username=getValueById('txtUsername');
var password=getValueById('txtPassword');
var vCode=getValueById('txtVCode');
if(!username||!password)
{
alert('请输入用户名与密码!');
return;
}
if(!vCode)
{
alert('请输入验证码!');
return;
}
try
{
returnValue=this.OBJ.Login(username,password,vCode).value;
}catch(e)
{
alert('登录出错,请稍后再试或与管理员联系');
}
switch(returnValue)
{
case -3:
alert('验证码超时,请重新登录!');
window.document.location.reload();
break;
case -2:
alert('验证码不正确,请重新登录!');
window.document.location.reload();
break;
case 1:
alert('对不起,您输入的用户名或密码不正确!');
break;
case 2:
alert('对不起,您的帐户未被审核,请与管理员联系!');
break;
case 3:
alert('对不起,您的帐户被锁住,请与管理员联系!');
break;
case 4:
alert('管理员身份登录成功!');
window.document.location.href('ClubManage/');
break;
case -1:
alert('登录成功 但您的高级会员服务未启动或过期,请与管理员联系!');
window.document.location.href('ClubManage/');
break;
case 0:
alert('登录成功!');
window.document.location.href('ClubManage/');
break;
case null:
default:
alert('登录失败,请稍后再试或与管理员联系'+returnValue);
break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -