<template> <div class="errPage-container"> <div class="inner-container"> <a-row> <a-col :span="12" :offset="0"> <a-button icon="arrow-left" class="pan-back-btn" type="primary" @click="back">返回</a-button> </a-col> </a-row> <a-row type="flex" justify="center"> <a-col :span="12"> <div> <h1 class="text-jumbo">Oops!</h1> <h2>很抱歉页面走丢了...</h2> <h4>错误代码:404</h4> </div> </a-col> <a-col :span="12"> <img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream."> </a-col> </a-row> </div> </div> </template> <script> import errGif from '@/assets/img/404_images/404.gif' export default { name: 'Page404', data() { return { errGif: errGif + '?' + +new Date(), ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646', dialogVisible: false } }, methods: { back() { if (this.$route.query.noGoBack) { this.$router.push({ path: '/dashboard' }) } else { this.$router.go(-1) } }, goHome() { this.$router.push({ path: '/dashboard' }) } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .errPage-container { width: 100%; height: 100%; background-color: white; .inner-container{ width: 800px; position: absolute; top:50%; left:50%; transform: translate(-50%, -50%); } .pan-gif { margin: 0 auto; display: block; } .pan-img { display: block; margin: 0 auto; width: 100%; } .text-jumbo { font-size: 1rem; line-height: 1.5; font-weight: 700; color: #484848; } .list-unstyled { font-size: 0.3rem; li { padding-bottom: 0.1rem; } a { color: #008489; text-decoration: none; &:hover { text-decoration: underline; } } } } </style>