errorPage.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="exception">
  3. <div class="img">
  4. <img src="https://gw.alipayobjects.com/zos/rmsportal/RVRUAYdCGeYNBWoKiIwB.svg"/>
  5. </div>
  6. <div class="content">
  7. <h1>{{ }}</h1>
  8. <div class="desc">{{ }}</div>
  9. <div class="action">
  10. <a-button type="primary" @click="handleToHome">返回登录</a-button>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: "Exception",
  18. // props: {
  19. // type: {
  20. // type: String,
  21. // default: '404'
  22. // }
  23. // },
  24. data() {
  25. return {
  26. errorInfo:''
  27. }
  28. },
  29. methods: {
  30. handleToHome() {
  31. this.$router.push({name: 'login'})
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .exception {
  38. min-height: 500px;
  39. height: 80%;
  40. align-items: center;
  41. text-align: center;
  42. margin-top: 150px;
  43. .img {
  44. display: inline-block;
  45. padding-right: 52px;
  46. zoom: 1;
  47. img {
  48. height: 360px;
  49. max-width: 430px;
  50. }
  51. }
  52. .content {
  53. display: inline-block;
  54. flex: auto;
  55. h1 {
  56. color: #434e59;
  57. font-size: 72px;
  58. font-weight: 600;
  59. line-height: 72px;
  60. margin-bottom: 24px;
  61. }
  62. .desc {
  63. color: rgba(0, 0, 0, .45);
  64. font-size: 20px;
  65. line-height: 28px;
  66. margin-bottom: 16px;
  67. }
  68. }
  69. }
  70. .mobile {
  71. .exception {
  72. margin-top: 30px;
  73. .img {
  74. padding-right: unset;
  75. img {
  76. height: 40%;
  77. max-width: 80%;
  78. }
  79. }
  80. }
  81. }
  82. </style>