RegisterSuccess.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <div class="register-success">
  3. <div class="register-success-content">
  4. <div class="register-success-content__icon">
  5. <div class="icon-circle">
  6. <img src="/register/success.png" />
  7. </div>
  8. </div>
  9. <div class="register-success-content__tip">
  10. <div class="tip-title">{{ L["register"]["注册成功"] }}</div>
  11. <div class="tip-content">
  12. {{ L["register"]["您已注册成功, 5s内跳转到登录页"] }}
  13. </div>
  14. <div class="line"></div>
  15. <div class="login-button">
  16. <el-button size="large" @click="goLogin">{{
  17. L["register"]["立即登录"]
  18. }}</el-button>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script setup>
  25. import { getCurLanguage } from "@/composables/common.js";
  26. import { useRouter } from "vue-router";
  27. const L = getCurLanguage();
  28. const router = useRouter();
  29. const goLogin = () => {
  30. router.replace({
  31. path: "/login",
  32. });
  33. };
  34. setTimeout(() => {
  35. goLogin()
  36. }, 5000)
  37. </script>
  38. <style lang="scss" scoped>
  39. .register-success {
  40. display: flex;
  41. flex-direction: column;
  42. justify-content: center;
  43. align-items: center;
  44. height: 386px;
  45. padding: 0 20px;
  46. &-content {
  47. width: 240px;
  48. height: 150px;
  49. display: flex;
  50. &__icon {
  51. margin-right: 15px;
  52. .icon-circle {
  53. display: flex;
  54. justify-content: center;
  55. align-items: center;
  56. width: 40px;
  57. height: 40px;
  58. border-radius: 100%;
  59. background-color: $colorMain;
  60. img {
  61. width: 20px;
  62. }
  63. }
  64. }
  65. &__tip {
  66. display: flex;
  67. flex-direction: column;
  68. .tip-title {
  69. font-size: 25px;
  70. }
  71. .tip-content {
  72. font-size: 12px;
  73. color: #85899e;
  74. margin-top: 10px;
  75. }
  76. .line {
  77. width: 200px;
  78. height: 0px;
  79. border: 0.5px solid #dcdfe6;
  80. margin: 30px 0;
  81. }
  82. .login-button {
  83. // margin-top: 10px;
  84. .el-button {
  85. background-color: $colorMain;
  86. color: #fff;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. </style>