From 4b64809397330948588af24c0999fe61f3e80d2d Mon Sep 17 00:00:00 2001 From: wangyifeng <812766448@qq.com> Date: Fri, 23 May 2025 16:17:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B41920=E5=88=B0375=E4=B8=AD?= =?UTF-8?q?=E9=97=B4=E7=9A=84=E5=88=86=E8=BE=A8=E7=8E=87=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A81920/375=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customDefaultPage/index.vue | 16 +++---- src/components/customFooter/index.vue | 14 +++--- .../customFooter/size1920/index.vue | 44 +++++++++---------- src/components/customHeader/index.vue | 14 +++--- .../customHeader/size1920/index.vue | 5 ++- src/views/events-calendar/index.vue | 8 +++- src/views/index/index.vue | 8 +++- src/views/press-releases/index.vue | 8 +++- 8 files changed, 68 insertions(+), 49 deletions(-) diff --git a/src/components/customDefaultPage/index.vue b/src/components/customDefaultPage/index.vue index 7c695b7..3c08fc5 100644 --- a/src/components/customDefaultPage/index.vue +++ b/src/components/customDefaultPage/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customDefaultPage/size375/index.vue' +import size768 from '@/components/customDefaultPage/size1920/index.vue' +import size1440 from '@/components/customDefaultPage/size1920/index.vue' import size1920 from '@/components/customDefaultPage/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 1100) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) @@ -30,7 +30,7 @@ const viewComponent = computed(() => { diff --git a/src/components/customFooter/index.vue b/src/components/customFooter/index.vue index ed6fd6a..5b40e6e 100644 --- a/src/components/customFooter/index.vue +++ b/src/components/customFooter/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customFooter/size375/index.vue' +import size768 from '@/components/customFooter/size1920/index.vue' +import size1440 from '@/components/customFooter/size1920/index.vue' import size1920 from '@/components/customFooter/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 1100) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) diff --git a/src/components/customFooter/size1920/index.vue b/src/components/customFooter/size1920/index.vue index 08cd066..8ec1f90 100644 --- a/src/components/customFooter/size1920/index.vue +++ b/src/components/customFooter/size1920/index.vue @@ -1,23 +1,23 @@ - - - - - \ No newline at end of file + + + + + + + diff --git a/src/components/customHeader/index.vue b/src/components/customHeader/index.vue index 5886eab..0715df1 100644 --- a/src/components/customHeader/index.vue +++ b/src/components/customHeader/index.vue @@ -3,6 +3,8 @@ import { computed } from 'vue' import { useWindowSize } from '@vueuse/core' import size375 from '@/components/customHeader/size375/index.vue' +import size768 from '@/components/customHeader/size375/index.vue' +import size1440 from '@/components/customHeader/size1920/index.vue' import size1920 from '@/components/customHeader/size1920/index.vue' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -15,13 +17,11 @@ const viewComponent = computed(() => { const viewWidth = width.value if (viewWidth <= 450) { return size375 - } - // else if (viewWidth <= 1100) { - // return size768; - // } else if (viewWidth <= 1500) { - // return size1440; - // } - else if (viewWidth <= 1920 || viewWidth > 1920) { + } else if (viewWidth <= 768) { + return size768 + } else if (viewWidth <= 1500) { + return size1440 + } else if (viewWidth <= 1920 || viewWidth > 1920) { return size1920 } }) diff --git a/src/components/customHeader/size1920/index.vue b/src/components/customHeader/size1920/index.vue index 27490d4..63060db 100644 --- a/src/components/customHeader/size1920/index.vue +++ b/src/components/customHeader/size1920/index.vue @@ -81,7 +81,7 @@ const handleToHome = () => {