403.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. 403错误!
  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.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 scoped>
  48. .errPage-container {
  49. width: 800px;
  50. max-width: 100%;
  51. margin: 100px auto;
  52. }
  53. .pan-back-btn {
  54. background: #008489;
  55. color: #fff;
  56. border: none !important;
  57. }
  58. .pan-gif {
  59. margin: 0 auto;
  60. display: block;
  61. }
  62. .pan-img {
  63. display: block;
  64. margin: 0 auto;
  65. width: 100%;
  66. }
  67. .text-jumbo {
  68. font-size: 60px;
  69. font-weight: 700;
  70. color: #484848;
  71. }
  72. .list-unstyled {
  73. font-size: 14px;
  74. }
  75. .list-unstyled li {
  76. padding-bottom: 5px;
  77. }
  78. .list-unstyled a {
  79. color: #008489;
  80. text-decoration: none;
  81. }
  82. .list-unstyled a:hover {
  83. text-decoration: underline;
  84. }
  85. </style>