portal html css js resource

login-email-find02.js 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. loginStatus();//判断个人是否登录
  2. /**
  3. * 邮箱找密码第二步
  4. */
  5. $(function (){
  6. //var _widht = document.documentElement.clientWidth; //屏幕宽
  7. var _height = document.documentElement.clientHeight; //屏幕高
  8. //var boxWidth = $(".email-find2").width();
  9. var boxHeight = $(".email-find2").height();
  10. $(".email-find2").css({ top: (_height - boxHeight) / 2 +"px"});
  11. $("#email").text(GetQueryString("email"));
  12. $("#emailGo").on("click", function(){
  13. var url = GetQueryString("email").split('@')[1];
  14. for (var j in hash){
  15. if(hash[url]==undefined){
  16. location.href="http://mail." + url;
  17. }else{
  18. $(this).attr("href", hash[url]);
  19. location.href=hash[url];
  20. }
  21. }
  22. });
  23. //邮箱发验证码链接,校验是否正确
  24. function sendPassword(){
  25. $.ajax("/ajax/validMailState",{
  26. type:"GET",
  27. async: false,
  28. success:function(data){
  29. $.cookie('mailVal',mailVal);
  30. $.cookie('userId',data.data);
  31. location.href="bind-mail.html";
  32. },
  33. error:function(){
  34. $.MsgBox.Alert('消息','邮箱发送失败')
  35. },
  36. data:{"mail":mailVal,"password":passwordVal},
  37. dataType: 'json'}
  38. );
  39. }
  40. });