Index: ssts-web/src/main/webapp/logon.jsp =================================================================== diff -u -r39011 -r39027 --- ssts-web/src/main/webapp/logon.jsp (.../logon.jsp) (revision 39011) +++ ssts-web/src/main/webapp/logon.jsp (.../logon.jsp) (revision 39027) @@ -298,7 +298,7 @@
@@ -431,23 +431,25 @@ var show_num = []; //GZSZYY-83:二次验证 function alertBox3(){ - ab3 = new AlertBox("idBox3",{ - fixed:true, - onShow: function(){ - var clientWidth = document.body.clientWidth; - var clientHeight = document.body.clientHeight; - - var left = (clientWidth > 410)?(clientWidth - 410)/2:0; - var top = (clientHeight > 310)?(clientHeight - 310)/2:0; + if(!ab3){ + ab3 = new AlertBox("idBox3",{ + fixed:true, + onShow: function(){ + var clientWidth = document.body.clientWidth; + var clientHeight = document.body.clientHeight; + + var left = (clientWidth > 410)?(clientWidth - 410)/2:0; + var top = (clientHeight > 310)?(clientHeight - 310)/2:0; - document.getElementById('idBox3').style.left = left + 'px'; - document.getElementById('idBox3').style.top = top + 'px'; + document.getElementById('idBox3').style.left = left + 'px'; + document.getElementById('idBox3').style.top = top + 'px'; - show_num = []; - drawVerifiyCode(); - } - }); - ab3.show(); + show_num = []; + drawVerifiyCode(); + } + }); + ab3.show(); + } } //GZSZYY-83:随机验证码 @@ -458,7 +460,7 @@ var context = canvas.getContext("2d"); canvas.width = canvas_width; canvas.height = canvas_height; - var sCode = "A,B,C,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0,q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m"; + var sCode = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,p,q,r,s,t,u,v,w,x,y,z"; var aCode = sCode.split(","); var aLength = aCode.length;//获取到数组的长度 @@ -508,7 +510,6 @@ } if(code.toLowerCase() !== verCode.toLowerCase()){ alert('验证码输入错误,请重新输入。'); - drawVerifiyCode(); return }