401.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="errPage-container">
  3. <el-button icon="arrow-left" class="pan-back-btn" @click="back">
  4. 返回
  5. </el-button>
  6. <el-row>
  7. <el-col :span="12">
  8. <h1 class="text-jumbo text-ginormous">
  9. 401错误!
  10. </h1>
  11. <h2>您没有访问权限!</h2>
  12. <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6>
  13. <ul class="list-unstyled">
  14. <li class="link-type">
  15. <router-link to="/">
  16. 回首页
  17. </router-link>
  18. </li>
  19. </ul>
  20. </el-col>
  21. <el-col :span="12">
  22. <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
  23. </el-col>
  24. </el-row>
  25. </div>
  26. </template>
  27. <script>
  28. import errGif from '@/assets/401_images/401.gif'
  29. export default {
  30. name: 'Page401',
  31. data() {
  32. return {
  33. errGif: errGif + '?' + +new Date()
  34. }
  35. },
  36. methods: {
  37. back() {
  38. if (this.$route.query.noGoBack) {
  39. this.$router.push({ path: '/' })
  40. } else {
  41. this.$router.go(-1)
  42. }
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .errPage-container {
  49. width: 800px;
  50. max-width: 100%;
  51. margin: 100px auto;
  52. .pan-back-btn {
  53. background: #008489;
  54. color: #fff;
  55. border: none!important;
  56. }
  57. .pan-gif {
  58. margin: 0 auto;
  59. display: block;
  60. }
  61. .pan-img {
  62. display: block;
  63. margin: 0 auto;
  64. width: 100%;
  65. }
  66. .text-jumbo {
  67. font-size: 60px;
  68. font-weight: 700;
  69. color: #484848;
  70. }
  71. .list-unstyled {
  72. font-size: 14px;
  73. li {
  74. padding-bottom: 5px;
  75. }
  76. a {
  77. color: #008489;
  78. text-decoration: none;
  79. &:hover {
  80. text-decoration: underline;
  81. }
  82. }
  83. }
  84. }
  85. </style>