25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

118 lines
2.5 KiB

  1. <template>
  2. <div class="error500">
  3. <div class="error500-body-con">
  4. <el-card class="box-card">
  5. <div class="error500-body-con-title">
  6. 5
  7. <span class="error500-0-span">
  8. <i class="icon-debug"/>
  9. </span>
  10. <span class="error500-0-span">
  11. <i class="icon-debug"/>
  12. </span>
  13. </div>
  14. <p class="error500-body-con-message">Oops! the server is wrong</p>
  15. <div class="error500-btn-con">
  16. <el-button size="large" style="width: 200px;" type="text" @click="goHome">返回首页</el-button>
  17. <el-button size="large" style="width: 200px;margin-left: 40px;" type="primary" @click="backPage">返回上一页</el-button>
  18. </div>
  19. </el-card>
  20. </div>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'Error500',
  26. methods: {
  27. backPage() {
  28. this.$router.go(-1)
  29. },
  30. goHome() {
  31. this.$router.push({
  32. path: '/'
  33. })
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. #app{
  40. background: #ffffff;
  41. }
  42. @keyframes error500animation {
  43. 0% {
  44. transform: rotateZ(0deg);
  45. }
  46. 20% {
  47. transform: rotateZ(-10deg);
  48. }
  49. 40% {
  50. transform: rotateZ(5deg);
  51. }
  52. 60% {
  53. transform: rotateZ(-5deg);
  54. }
  55. 80% {
  56. transform: rotateZ(10deg);
  57. }
  58. 100% {
  59. transform: rotateZ(0deg);
  60. }
  61. }
  62. .error500 {
  63. height: 100vh;
  64. background: #ffffff;
  65. &-body-con {
  66. width: 700px;
  67. height: 500px;
  68. position: absolute;
  69. left: 50%;
  70. top: 50%;
  71. transform: translate(-50%, -50%);
  72. &-title {
  73. text-align: center;
  74. font-size: 240px;
  75. font-weight: 700;
  76. color: #2d8cf0;
  77. height: 260px;
  78. line-height: 260px;
  79. margin-top: 40px;
  80. .error500-0-span {
  81. display: inline-block;
  82. position: relative;
  83. width: 170px;
  84. height: 170px;
  85. border-radius: 50%;
  86. border: 20px solid #ed3f14;
  87. color: #ed3f14;
  88. margin-right: 10px;
  89. i {
  90. display: inline-block;
  91. font-size: 120px !important;
  92. position: absolute;
  93. bottom: -43px;
  94. left: 20px;
  95. transform-origin: center bottom;
  96. animation: error500animation 3s ease 0s infinite alternate;
  97. }
  98. }
  99. }
  100. &-message {
  101. display: block;
  102. text-align: center;
  103. font-size: 30px;
  104. font-weight: 500;
  105. letter-spacing: 4px;
  106. color: #dddde2;
  107. }
  108. }
  109. &-btn-con {
  110. text-align: center;
  111. padding: 20px 0;
  112. margin-bottom: 40px;
  113. }
  114. }
  115. </style>