401.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div class="errPage-container">
  3. <el-button
  4. @click="back"
  5. icon='arrow-left'
  6. class="pan-back-btn">返回</el-button>
  7. <el-row>
  8. <el-col :span="12">
  9. <h1 class="text-jumbo text-ginormous">Oops!</h1>
  10. gif来源<a
  11. href='https://zh.airbnb.com/'
  12. target='_blank'>airbnb</a> 页面
  13. <h2>你没有权限去该页面</h2>
  14. <h6>如有不满请联系你领导</h6>
  15. <ul class="list-unstyled">
  16. <li>或者你可以去:</li>
  17. <li class="link-type">
  18. <router-link to="/dashboard">回首页</router-link>
  19. </li>
  20. <li class="link-type"><a href="https://www.taobao.com/">随便看看</a></li>
  21. <li><a
  22. @click.prevent="dialogVisible=true"
  23. href="#">点我看图</a></li>
  24. </ul>
  25. </el-col>
  26. <el-col :span="12">
  27. <img
  28. :src="errGif"
  29. width="313"
  30. height="428"
  31. alt="Girl has dropped her ice cream.">
  32. </el-col>
  33. </el-row>
  34. <el-dialog
  35. title="随便看"
  36. :visible.sync="dialogVisible">
  37. <img
  38. class="pan-img"
  39. :src="ewizardClap">
  40. </el-dialog>
  41. </div>
  42. </template>
  43. <script>
  44. import errGif from '@/assets/401_images/401.gif'
  45. export default {
  46. name: 'Page401',
  47. data () {
  48. return {
  49. errGif: errGif + '?' + +new Date(),
  50. ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
  51. dialogVisible: false
  52. }
  53. },
  54. methods: {
  55. back () {
  56. if (this.$route.query.noGoBack) {
  57. this.$router.push({ path: '/dashboard' })
  58. } else {
  59. this.$router.go(-1)
  60. }
  61. }
  62. }
  63. }
  64. </script>
  65. <style rel="stylesheet/scss" lang="scss" scoped>
  66. .errPage-container {
  67. width: 800px;
  68. margin: 100px auto;
  69. .pan-back-btn {
  70. background: #008489;
  71. color: #fff;
  72. }
  73. .pan-gif {
  74. margin: 0 auto;
  75. display: block;
  76. }
  77. .pan-img {
  78. display: block;
  79. margin: 0 auto;
  80. width: 100%;
  81. }
  82. .text-jumbo {
  83. font-size: 60px;
  84. font-weight: 700;
  85. color: #484848;
  86. }
  87. .list-unstyled {
  88. font-size: 14px;
  89. li {
  90. padding-bottom: 5px;
  91. }
  92. a {
  93. color: #008489;
  94. text-decoration: none;
  95. &:hover {
  96. text-decoration: underline;
  97. }
  98. }
  99. }
  100. }
  101. </style>