<template>
		<AppHeader />
		<NuxtPage />
    <AppFooter/>
</template>

<script lang="ts" setup>
import $api from '@/service/webRequest'
import { useStore } from '~/store'
import { useI18n } from 'vue-i18n'
const { locale } = useI18n()
const router = useRouter()
useSeoMeta({
  title: '信阳第五人民医院',
  ogTitle: '信阳第五人民医院',
  description: '信阳第五人民医院',
  ogDescription: '信阳第五人民医院',
  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) {
    console.log('访问自手机端或平板');
    isMobile.value = true;
    //sessionStorage.setItem('isMobile', '1');
    router.push('/phone_index')
  } else {
    console.log('访问自PC端');
    isMobile.value = false;
    //sessionStorage.setItem('isMobile', '0');
    router.push('/')
  }
};
</script>

<style>
#__nuxt{
	height: 100%;
	width: 100%;
}
  html,
    body {
        position: relative;
        height: 100%;
    }

    body {
        background: #eee;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color: #000;
        margin: 0;
        padding: 0;
    }

</style>
