401.vue 2.2 KB

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