500.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <template>
  2. <div class="error-container">
  3. <div class="error-content">
  4. <el-row :gutter="20">
  5. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  6. <div class="pic-error">
  7. <img
  8. alt="401"
  9. class="pic-error-parent"
  10. src="@/assets/error_images/500.png"
  11. />
  12. <img
  13. alt="401"
  14. class="pic-error-child left"
  15. src="@/assets/error_images/cloud.png"
  16. />
  17. <img
  18. alt="401"
  19. class="pic-error-child"
  20. src="@/assets/error_images/cloud.png"
  21. />
  22. <img
  23. alt="401"
  24. class="pic-error-child"
  25. src="@/assets/error_images/cloud.png"
  26. />
  27. </div>
  28. </el-col>
  29. <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
  30. <div class="bullshit">
  31. <div class="bullshit-oops">{{ oops }}</div>
  32. <div class="bullshit-headline">{{ headline }}</div>
  33. <div class="bullshit-info">{{ info }}</div>
  34. <a class="bullshit-return-home" :href="homePath">
  35. {{ btn }}
  36. </a>
  37. </div>
  38. </el-col>
  39. </el-row>
  40. </div>
  41. </div>
  42. </template>
  43. <script>
  44. export default {
  45. name: 'Page500',
  46. data() {
  47. return {
  48. oops: '抱歉!',
  49. headline: '系统出现了一些问题...',
  50. info: '您可以联系管理员,或点击下面的按钮返回首页。',
  51. btn: '返回首页',
  52. homePath: window.context.homePath || '/index',
  53. }
  54. },
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .error-container {
  59. position: absolute;
  60. top: 40%;
  61. left: 50%;
  62. transform: translate(-50%, -50%);
  63. .error-content {
  64. .pic-error {
  65. position: relative;
  66. float: left;
  67. width: 120%;
  68. overflow: hidden;
  69. &-parent {
  70. width: 100%;
  71. }
  72. &-child {
  73. position: absolute;
  74. &.left {
  75. top: 17px;
  76. left: 220px;
  77. width: 80px;
  78. opacity: 0;
  79. animation-name: cloudLeft;
  80. animation-duration: 2s;
  81. animation-timing-function: linear;
  82. animation-delay: 1s;
  83. animation-fill-mode: forwards;
  84. }
  85. &.mid {
  86. top: 10px;
  87. left: 420px;
  88. width: 46px;
  89. opacity: 0;
  90. animation-name: cloudMid;
  91. animation-duration: 2s;
  92. animation-timing-function: linear;
  93. animation-delay: 1.2s;
  94. animation-fill-mode: forwards;
  95. }
  96. &.right {
  97. top: 100px;
  98. left: 500px;
  99. width: 62px;
  100. opacity: 0;
  101. animation-name: cloudRight;
  102. animation-duration: 2s;
  103. animation-timing-function: linear;
  104. animation-delay: 1s;
  105. animation-fill-mode: forwards;
  106. }
  107. @keyframes cloudLeft {
  108. 0% {
  109. top: 17px;
  110. left: 220px;
  111. opacity: 0;
  112. }
  113. 20% {
  114. top: 33px;
  115. left: 188px;
  116. opacity: 1;
  117. }
  118. 80% {
  119. top: 81px;
  120. left: 92px;
  121. opacity: 1;
  122. }
  123. 100% {
  124. top: 97px;
  125. left: 60px;
  126. opacity: 0;
  127. }
  128. }
  129. @keyframes cloudMid {
  130. 0% {
  131. top: 10px;
  132. left: 420px;
  133. opacity: 0;
  134. }
  135. 20% {
  136. top: 40px;
  137. left: 360px;
  138. opacity: 1;
  139. }
  140. 70% {
  141. top: 130px;
  142. left: 180px;
  143. opacity: 1;
  144. }
  145. 100% {
  146. top: 160px;
  147. left: 120px;
  148. opacity: 0;
  149. }
  150. }
  151. @keyframes cloudRight {
  152. 0% {
  153. top: 100px;
  154. left: 500px;
  155. opacity: 0;
  156. }
  157. 20% {
  158. top: 120px;
  159. left: 460px;
  160. opacity: 1;
  161. }
  162. 80% {
  163. top: 180px;
  164. left: 340px;
  165. opacity: 1;
  166. }
  167. 100% {
  168. top: 200px;
  169. left: 300px;
  170. opacity: 0;
  171. }
  172. }
  173. }
  174. }
  175. .bullshit {
  176. position: relative;
  177. float: left;
  178. width: 300px;
  179. padding: 30px 0;
  180. overflow: hidden;
  181. &-oops {
  182. margin-bottom: 20px;
  183. font-size: 32px;
  184. font-weight: bold;
  185. line-height: 40px;
  186. color: $base-color-blue;
  187. opacity: 0;
  188. animation-name: slideUp;
  189. animation-duration: 0.5s;
  190. animation-fill-mode: forwards;
  191. }
  192. &-headline {
  193. margin-bottom: 10px;
  194. font-size: 20px;
  195. font-weight: bold;
  196. line-height: 24px;
  197. color: #222;
  198. opacity: 0;
  199. animation-name: slideUp;
  200. animation-duration: 0.5s;
  201. animation-delay: 0.1s;
  202. animation-fill-mode: forwards;
  203. }
  204. &-info {
  205. margin-bottom: 30px;
  206. font-size: 13px;
  207. line-height: 21px;
  208. color: $base-color-gray;
  209. opacity: 0;
  210. animation-name: slideUp;
  211. animation-duration: 0.5s;
  212. animation-delay: 0.2s;
  213. animation-fill-mode: forwards;
  214. }
  215. &-return-home {
  216. display: block;
  217. float: left;
  218. width: 110px;
  219. height: 36px;
  220. font-size: 14px;
  221. line-height: 36px;
  222. color: #fff;
  223. text-align: center;
  224. cursor: pointer;
  225. background: $base-color-blue;
  226. border-radius: 100px;
  227. opacity: 0;
  228. animation-name: slideUp;
  229. animation-duration: 0.5s;
  230. animation-delay: 0.3s;
  231. animation-fill-mode: forwards;
  232. }
  233. @keyframes slideUp {
  234. 0% {
  235. opacity: 0;
  236. transform: translateY(60px);
  237. }
  238. 100% {
  239. opacity: 1;
  240. transform: translateY(0);
  241. }
  242. }
  243. }
  244. }
  245. }
  246. </style>