portal html css js resource

bind-mail.js 983B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * 邮箱注册二三步
  3. */
  4. loginStatus();//判断个人是否登录
  5. //获取邮箱传值
  6. var mailVal = $.cookie('mailVal');
  7. var mailCode = GetQueryString('sc');
  8. //初始化
  9. emailSuccess();
  10. //获取邮箱验证码传值注册
  11. if(mailCode != '') {
  12. $.ajax("/ajax/regmail/" + mailCode, {
  13. type: "GET",
  14. async: true,
  15. success: function(data) {
  16. if(data.success) {
  17. location.href = "bind-mail-ok.html";
  18. } else {
  19. location.href = "bind-mail-no.html";
  20. }
  21. },
  22. error: function() {
  23. //$.MsgBox.Alert('消息提醒','邮箱注册失败')
  24. location.href = "bind-mail-no.html";
  25. },
  26. dataType: 'json'
  27. });
  28. }
  29. function emailSuccess() {
  30. $('#receiveMail').text(mailVal);
  31. $(".maillink").each(function() {
  32. var url = mailVal.split('@')[1];
  33. for(var j in hash) {
  34. if(hash[url]==undefined){
  35. $(this).attr("href", "http://mail." + url);
  36. }else{
  37. $(this).attr("href", hash[url]);
  38. }
  39. }
  40. });
  41. }