88 lines
1.8 KiB
Vue
Raw Permalink Normal View History

2025-04-01 17:45:42 +08:00
<template>
2025-04-08 18:04:28 +08:00
<n-config-provider :locale="zhCN" :date-locale="dateZhCN">
<AppHeader />
<NuxtPage />
<AppFooter />
</n-config-provider>
2025-04-01 17:45:42 +08:00
</template>
<script lang="ts" setup>
2025-04-08 18:04:28 +08:00
import { defineComponent } from 'vue'
import { NConfigProvider } from 'naive-ui'
import { zhCN, dateZhCN } from 'naive-ui'
2025-04-01 17:45:42 +08:00
import $api from '@/service/webRequest'
import { useStore } from '~/store'
import { useI18n } from 'vue-i18n'
const { locale } = useI18n()
const router = useRouter()
2025-04-01 17:45:42 +08:00
useSeoMeta({
title: '信阳市第五人民医院',
ogTitle: '信阳市第五人民医院',
description: '信阳市第五人民医院',
ogDescription: '信阳市第五人民医院',
2025-04-01 17:45:42 +08:00
ogImage: 'https://example.com/image.png',
twitterCard: 'summary_large_image',
})
//判断是PC还是手机端跳转不同的页面
const isMobile = ref(false)
onMounted(() => {
//checkIfMobile();
})
// 检查是否为移动设备的函数
const checkIfMobile = () => {
// 判断是否是手机端
const coMobile = /Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (coMobile) {
isMobile.value = true;
router.push('/phone_index')
} else {
isMobile.value = false;
router.push('/')
}
};
2025-04-01 17:45:42 +08:00
</script>
<style>
2025-04-08 18:04:28 +08:00
#__nuxt {
height: 100%;
width: 100%;
2025-04-01 17:45:42 +08:00
}
2025-04-08 18:04:28 +08:00
html,
body {
position: relative;
height: 100%;
}
2025-04-01 17:45:42 +08:00
2025-04-08 18:04:28 +08:00
body {
background: #eee;
font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
font-size: 14px;
color: #000;
margin: 0;
padding: 0;
}
::-webkit-scrollbar {
width: 5px;
height: 5px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: rgba(11, 175, 160, 1);
border-radius: 6px;
box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.25),
inset -2px -2px 2px rgba(0, 0, 0, 0.25);
}
::-webkit-scrollbar-thumb:hover {
background: rgba(11, 175, 160, 1);
}
2025-04-01 17:45:42 +08:00
</style>