12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
-
- /****************************************** 自定义函数 ********************************************************************************/
- var winHandle;
- var value;
- var te;
- var ff=false;
- function callBackFunc(json) {
- if (json != null && json.success != null) {
- if(json.success=="0"){
- winHandle = openSecondMessageWindow("修改成功!重新登录后生效!",prjContextPath,"");
- ff=true;
- }else{
- winHandle = openSecondMessageWindow("旧密码不正确!",prjContextPath,"");
- }
- } else {
- winHandle = openSecondMessageWindow("修改失败!",prjContextPath,"");
- }
- }
- //系统提示消息窗口关闭方法
- function closeSysMes(){
- if(winHandle!=null){
- winHandle.reset();
- }
- if(ff){
- ff=false;
- parent.close_handle();
- }
- }
- //确定
- function save() {
- var loginname=document.getElementById("loginname").value;
- var loginpwd=document.getElementById("loginpwd").value;
- var newloginpwd=document.getElementById("newloginpwd").value;
- var qrloginpwd=document.getElementById("qrloginpwd").value;
- if(trim(loginpwd) == ''){
- winHandle = openSecondMessageWindow("请填写密码",prjContextPath,"");
- return;
- }
- if((fucCheckLength(loginpwd)!= 6)){
- winHandle = openSecondMessageWindow("请输入6位字符的密码",prjContextPath,"");
- return false;
- }
- if(trim(newloginpwd) == ''){
- winHandle = openSecondMessageWindow("请填写新密码!",prjContextPath,"");
- return;
- }
- if((fucCheckLength(newloginpwd)!= 6)){
- winHandle = openSecondMessageWindow("请输入6位字符的新密码",prjContextPath,"");
- return false;
- }
- if(trim(qrloginpwd) == ''){
- winHandle = openSecondMessageWindow("请填写确认密码!",prjContextPath,"");
- return;
- }
- if((fucCheckLength(qrloginpwd)!= 6)){
- winHandle = openSecondMessageWindow("请输入6位字符的确认密码",prjContextPath,"");
- return false;
- }
- if(newloginpwd!=qrloginpwd){
- winHandle = openSecondMessageWindow("新密码与确认密码不一致!",prjContextPath,"");
- return false;
- }
-
- $.post(prjContextPath+"/permissionsAction!updatepwd.action", {loginname:loginname,
- loginpwd:loginpwd,
- newloginpwd:newloginpwd
- }, callBackFunc);
- }
- function closeWindow(){
- parent.passwordSetwindowClose();
- }
-
|