close.vue 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <div class="error-wrap">
  3. <img src="@/assets/images/index/closed.png" />
  4. <!-- <i class="iconfont icon404"></i> -->
  5. <h2>{{ '网站已关闭' }}</h2>
  6. </div>
  7. </template>
  8. <script>
  9. import { getSiteStatus } from '@/api/website';
  10. export default {
  11. name: "close",
  12. created() {
  13. this.getSiteStatus();
  14. },
  15. layout: 'empty',
  16. methods:{
  17. getSiteStatus(){
  18. getSiteStatus().then((res) => {
  19. if (res.code == 0) {
  20. this.$router.push('/');
  21. }
  22. })
  23. }
  24. }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .error-wrap {
  29. text-align: center;
  30. padding: 40px;
  31. position: absolute;
  32. top: 50%;
  33. left: 50%;
  34. transform: translate(-50%, -50%);
  35. i {
  36. font-size: 60px;
  37. }
  38. h2 {
  39. margin: 0 0 30px;
  40. }
  41. }
  42. </style>