portal html css js resource

cmp-settled-regOk.js 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //企业注册激活成功
  2. $(function() {
  3. var sc = GetQueryString("sc");
  4. activationFun();
  5. function activationFun() {
  6. $.ajax("/ajax/regOrgMail/" + sc, {
  7. type: "GET",
  8. dataType: 'json',
  9. async: false,
  10. success: function($data) {
  11. console.log($data)
  12. if($data.success) {
  13. $(".tit-hh4").find("span").text("注册成功");
  14. $(".importTip").text("您的企业账户已注册成功!");
  15. $("#successImg").removeClass("failImg").addClass("successImg");
  16. $("#butGo").text("登录企业账户");
  17. $("#butGo").on("click", function() {
  18. location.href = "cmp-settled-log.html";
  19. })
  20. } else {
  21. $(".tit-hh4").find("span").text("注册失败");
  22. $("#successImg").removeClass("successImg").addClass("failImg");
  23. if($data.code == -1) {
  24. $(".importTip").text("很抱歉,当前的链接已失效");
  25. $("#smalltip").text("小提醒:邮件内的链接有效时长为10分钟。");
  26. $("#butGo").text("重新注册");
  27. $("#butGo").on("click", function() {
  28. location.href = "cmp-settled-reg.html";
  29. })
  30. } else if($data.code == -3) {
  31. $(".importTip").text("当前邮箱已注册企业账户");
  32. $("#smalltip").text("请更换一个邮箱重新注册");
  33. $("#butGo").text("重新注册");
  34. $("#butGo").on("click", function() {
  35. location.href = "cmp-settled-reg.html";
  36. })
  37. } else if($data.code == 2) {
  38. $(".importTip").text("您输入的企业已注册企业账户");
  39. $("#smalltip").text("您可以点击下方按钮找回企业账户,或直接联系客服 010-62343359");
  40. $("#butGo").text("找回企业账户");
  41. $("#butGo").on("click", function() {
  42. location.href = "cmp-settled-reback.html";
  43. })
  44. }
  45. }
  46. },
  47. error: function() {
  48. $.MsgBox.Alert('提示', '服务器请求失败')
  49. },
  50. });
  51. }
  52. })