123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div class="content">
- <v-logo></v-logo>
- <div class="warn">
- <img src="@/static/svg/icon-warn.svg" alt="" />
- <p v-if="error.statusCode == 301">{{ error.message || 'error' }}</p>
- </div>
- </div>
- </template>
- <script>
- import Report from '@/log-center/log';
- import VLogo from '@/components/logo.vue';
- import { getMid, appVersionCode } from '@/utils/help';
- export default {
- name: 'error',
- props: ['error'],
- components: {
- VLogo,
- },
- data() {
- return {
- mid: getMid(),
- };
- },
- mounted() {
- // 埋点
- Report.reportLog({
- baseInfo: {
- appVersionCode: appVersionCode,
- mid: this.mid,
- pageSource: Report.pageSource.error_landing_page,
- machineCode: this.mid,
- },
- params: {
- url: window.location.href,
- },
- });
- },
- };
- </script>
- <style lang="scss" scoped>
- html,
- body,
- #__nuxt,
- #__layout {
- width: 100%;
- height: 100%;
- padding: 0;
- margin: 0;
- }
- .content {
- width: 100%;
- height: 100%;
- background: linear-gradient(180deg, #d8efff 0%, #ffffff 44.3%);
- display: flex;
- justify-content: center;
- align-items: center;
- .warn {
- text-align: center;
- color: #aab4b9;
- img {
- width: 100px;
- height: 100px;
- }
- p {
- margin-top: 20px;
- font-weight: 700;
- font-size: 30px;
- }
- }
- }
- </style>
|