网页中已经有这个代码了
看懂下面代码,就行了function loginSSO(type){
if(type == 1){
document.location.href = 'http://www.hwabaotrust.com/SSOIntegration/jsp/findPassword.jsp?timestamp='+new Date().getTime();
return;
}
//return;
var usernameVal = $.trim(document.getElementById("username").value);
if(usernameVal == "" || usernameVal == "身份证/护照/台胞证等"){
document.getElementById("username").value = '';
alert("请输入证件号!");
return;
}
if(usernameVal == "111111111" || usernameVal == "111111111"){
alert("证件号不能为【"+usernameVal+"】");
return;
}
if(usernameVal =="021002020000002" || usernameVal == "A0000202001"){
alert("证件号为【"+usernameVal+"】,不允许登录");
return;
}
if(document.getElementById("password").value==""){
alert("请输入密码!");
return;
}
if(document.getElementById("ssofjm").value==""){
alert("请输入验证码!");
return;
}
if(($.trim(usernameVal) != '350100100105723') && checkIdcard(usernameVal)){
document.getElementById("username").value = $.trim(usernameVal);
document.getElementById("isIDCard").value='1';
}else{
document.getElementById("isIDCard").value='0';
}
document.loginForm.action = '/cas/login';
document.loginForm.elements['operatorStr'].value = type;
document.loginForm.submit();
}
|