portal html css js resource

bind-mail.js 821B

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