index.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <div class="wscn-http404-container">
  3. <div class="wscn-http404">
  4. <div class="pic-404">
  5. <img
  6. class="pic-404__parent"
  7. src="@/assets/img/error404/404.png"
  8. alt="404"
  9. />
  10. <img
  11. class="pic-404__child left"
  12. src="@/assets/img/error404/404_cloud.png"
  13. alt="404"
  14. />
  15. <img
  16. class="pic-404__child mid"
  17. src="@/assets/img/error404/404_cloud.png"
  18. alt="404"
  19. />
  20. <img
  21. class="pic-404__child right"
  22. src="@/assets/img/error404/404_cloud.png"
  23. alt="404"
  24. />
  25. </div>
  26. <div class="bullshit">
  27. <div class="bullshit__oops">404错误!</div>
  28. <div class="bullshit__headline">
  29. {{ message }}
  30. </div>
  31. <div class="bullshit__info">
  32. 对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
  33. </div>
  34. <div>
  35. <div>
  36. <router-link to="/home/sysconfig" class="bullshit__return-home">
  37. 返回系统首页
  38. </router-link>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. export default {
  47. name: "Page404",
  48. computed: {
  49. message() {
  50. return "找不到网页!";
  51. },
  52. },
  53. };
  54. </script>
  55. <style lang="scss" scoped>
  56. .wscn-http404-container {
  57. transform: translate(-50%, -50%);
  58. position: absolute;
  59. top: 40%;
  60. left: 50%;
  61. text-align: left;
  62. }
  63. .wscn-http404 {
  64. position: relative;
  65. width: 1200px;
  66. padding: 0 50px;
  67. overflow: hidden;
  68. .pic-404 {
  69. position: relative;
  70. float: left;
  71. width: 600px;
  72. overflow: hidden;
  73. &__parent {
  74. width: 100%;
  75. }
  76. &__child {
  77. position: absolute;
  78. &.left {
  79. width: 80px;
  80. top: 17px;
  81. left: 220px;
  82. opacity: 0;
  83. animation-name: cloudLeft;
  84. animation-duration: 2s;
  85. animation-timing-function: linear;
  86. animation-fill-mode: forwards;
  87. animation-delay: 1s;
  88. }
  89. &.mid {
  90. width: 46px;
  91. top: 10px;
  92. left: 420px;
  93. opacity: 0;
  94. animation-name: cloudMid;
  95. animation-duration: 2s;
  96. animation-timing-function: linear;
  97. animation-fill-mode: forwards;
  98. animation-delay: 1.2s;
  99. }
  100. &.right {
  101. width: 62px;
  102. top: 100px;
  103. left: 500px;
  104. opacity: 0;
  105. animation-name: cloudRight;
  106. animation-duration: 2s;
  107. animation-timing-function: linear;
  108. animation-fill-mode: forwards;
  109. animation-delay: 1s;
  110. }
  111. @keyframes cloudLeft {
  112. 0% {
  113. top: 17px;
  114. left: 220px;
  115. opacity: 0;
  116. }
  117. 20% {
  118. top: 33px;
  119. left: 188px;
  120. opacity: 1;
  121. }
  122. 80% {
  123. top: 81px;
  124. left: 92px;
  125. opacity: 1;
  126. }
  127. 100% {
  128. top: 97px;
  129. left: 60px;
  130. opacity: 0;
  131. }
  132. }
  133. @keyframes cloudMid {
  134. 0% {
  135. top: 10px;
  136. left: 420px;
  137. opacity: 0;
  138. }
  139. 20% {
  140. top: 40px;
  141. left: 360px;
  142. opacity: 1;
  143. }
  144. 70% {
  145. top: 130px;
  146. left: 180px;
  147. opacity: 1;
  148. }
  149. 100% {
  150. top: 160px;
  151. left: 120px;
  152. opacity: 0;
  153. }
  154. }
  155. @keyframes cloudRight {
  156. 0% {
  157. top: 100px;
  158. left: 500px;
  159. opacity: 0;
  160. }
  161. 20% {
  162. top: 120px;
  163. left: 460px;
  164. opacity: 1;
  165. }
  166. 80% {
  167. top: 180px;
  168. left: 340px;
  169. opacity: 1;
  170. }
  171. 100% {
  172. top: 200px;
  173. left: 300px;
  174. opacity: 0;
  175. }
  176. }
  177. }
  178. }
  179. .bullshit {
  180. position: relative;
  181. float: left;
  182. width: 300px;
  183. padding: 30px 0;
  184. overflow: hidden;
  185. &__oops {
  186. font-size: 32px;
  187. font-weight: bold;
  188. line-height: 40px;
  189. color: #1482f0;
  190. opacity: 0;
  191. margin-bottom: 20px;
  192. animation-name: slideUp;
  193. animation-duration: 0.5s;
  194. animation-fill-mode: forwards;
  195. }
  196. &__headline {
  197. font-size: 20px;
  198. line-height: 24px;
  199. color: #222;
  200. font-weight: bold;
  201. opacity: 0;
  202. margin-bottom: 10px;
  203. animation-name: slideUp;
  204. animation-duration: 0.5s;
  205. animation-delay: 0.1s;
  206. animation-fill-mode: forwards;
  207. }
  208. &__info {
  209. font-size: 13px;
  210. line-height: 21px;
  211. color: grey;
  212. opacity: 0;
  213. margin-bottom: 30px;
  214. animation-name: slideUp;
  215. animation-duration: 0.5s;
  216. animation-delay: 0.2s;
  217. animation-fill-mode: forwards;
  218. }
  219. &__return-home {
  220. display: block;
  221. float: left;
  222. width: 110px;
  223. height: 36px;
  224. background: #1482f0;
  225. border-radius: 100px;
  226. text-align: center;
  227. color: #ffffff;
  228. opacity: 0;
  229. font-size: 14px;
  230. line-height: 36px;
  231. cursor: pointer;
  232. animation-name: slideUp;
  233. animation-duration: 0.5s;
  234. animation-delay: 0.3s;
  235. animation-fill-mode: forwards;
  236. }
  237. @keyframes slideUp {
  238. 0% {
  239. transform: translateY(60px);
  240. opacity: 0;
  241. }
  242. 100% {
  243. transform: translateY(0);
  244. opacity: 1;
  245. }
  246. }
  247. }
  248. }
  249. </style>