From 51d9b1d5d2324548e7ccdf5e5369f6f33d0877d0 Mon Sep 17 00:00:00 2001 From: scout <1134087124@qq.com> Date: Thu, 27 Feb 2025 13:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=85=AC=E5=8F=B8=E7=AE=80?= =?UTF-8?q?=E4=BB=8B=E8=AF=A6=E6=83=85=E9=A1=B5=E8=B7=AF=E7=94=B1=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E6=96=B9=E5=BC=8F=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E7=BC=96=E5=8F=B7=E6=9B=BF=E4=BB=A3=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/companyprofil/size1440/index.vue | 7 +++- src/views/companyprofil/size1920/index.vue | 7 +++- .../companyprofildetail/size1440/index.vue | 40 +++++++++---------- .../companyprofildetail/size1920/index.vue | 40 +++++++++---------- 4 files changed, 52 insertions(+), 42 deletions(-) diff --git a/src/views/companyprofil/size1440/index.vue b/src/views/companyprofil/size1440/index.vue index c0c9e84..d707630 100644 --- a/src/views/companyprofil/size1440/index.vue +++ b/src/views/companyprofil/size1440/index.vue @@ -137,26 +137,31 @@ const state = reactive({ title: t("companyprofil.news.carousel.item1.title"), subTitle: t("companyprofil.news.carousel.item1.desc"), imgUrl: carouselShow1, + titleNo: 1, }, { title: t("companyprofil.news.carousel.item2.title"), subTitle: t("companyprofil.news.carousel.item2.desc"), imgUrl: carouselShow2, + titleNo: 2, }, { title: t("companyprofil.news.carousel.item3.title"), subTitle: t("companyprofil.news.carousel.item3.desc"), imgUrl: carouselShow3, + titleNo: 3, }, { title: t("companyprofil.news.carousel.item4.title"), subTitle: t("companyprofil.news.carousel.item4.desc"), imgUrl: carouselShow4, + titleNo: 4, }, { title: t("companyprofil.news.carousel.item5.title"), subTitle: t("companyprofil.news.carousel.item5.desc"), imgUrl: carouselShow5, + titleNo: 5, }, ], }); @@ -197,7 +202,7 @@ const handleCarouselClick = (item, event) => { router.push({ path: "/companyprofildetail", query: { - title: item.title, + titleNo: item.titleNo , }, }); } diff --git a/src/views/companyprofil/size1920/index.vue b/src/views/companyprofil/size1920/index.vue index c0c9e84..d707630 100644 --- a/src/views/companyprofil/size1920/index.vue +++ b/src/views/companyprofil/size1920/index.vue @@ -137,26 +137,31 @@ const state = reactive({ title: t("companyprofil.news.carousel.item1.title"), subTitle: t("companyprofil.news.carousel.item1.desc"), imgUrl: carouselShow1, + titleNo: 1, }, { title: t("companyprofil.news.carousel.item2.title"), subTitle: t("companyprofil.news.carousel.item2.desc"), imgUrl: carouselShow2, + titleNo: 2, }, { title: t("companyprofil.news.carousel.item3.title"), subTitle: t("companyprofil.news.carousel.item3.desc"), imgUrl: carouselShow3, + titleNo: 3, }, { title: t("companyprofil.news.carousel.item4.title"), subTitle: t("companyprofil.news.carousel.item4.desc"), imgUrl: carouselShow4, + titleNo: 4, }, { title: t("companyprofil.news.carousel.item5.title"), subTitle: t("companyprofil.news.carousel.item5.desc"), imgUrl: carouselShow5, + titleNo: 5, }, ], }); @@ -197,7 +202,7 @@ const handleCarouselClick = (item, event) => { router.push({ path: "/companyprofildetail", query: { - title: item.title, + titleNo: item.titleNo , }, }); } diff --git a/src/views/companyprofildetail/size1440/index.vue b/src/views/companyprofildetail/size1440/index.vue index 1063b1a..d7e07b4 100644 --- a/src/views/companyprofildetail/size1440/index.vue +++ b/src/views/companyprofildetail/size1440/index.vue @@ -11,13 +11,13 @@
{{ t("home.nav.home") }}
@@ -48,7 +48,7 @@
@@ -72,7 +72,7 @@
-
+

{{ t('companyprofildetail.article1.content[0]') }}

{{ t('companyprofildetail.article1.content[1]') }}

{{ t('companyprofildetail.article1.content[2]') }}

@@ -90,7 +90,7 @@
@@ -113,7 +113,7 @@
-
+

{{ t('companyprofildetail.article2.content[0]') }}

{{ t('companyprofildetail.article2.content[1]') }}

{{ t('companyprofildetail.article2.content[2]') }}

@@ -129,7 +129,7 @@
@@ -152,7 +152,7 @@
-
+

{{ t('companyprofildetail.article3.content[0]') }}

{{ t('companyprofildetail.article3.content[1]') }}

{{ t('companyprofildetail.article3.content[2]') }}

@@ -169,7 +169,7 @@
@@ -192,7 +192,7 @@
-
+

{{ t('companyprofildetail.article4.content[0]') }}

{{ t('companyprofildetail.article4.content[1]') }}

{{ t('companyprofildetail.article4.content[2]') }}

@@ -209,7 +209,7 @@
@@ -232,7 +232,7 @@
-
+

{{ t('companyprofildetail.article5.content[0]') }}

{{ t('companyprofildetail.article5.content[1]') }}

{{ t('companyprofildetail.article5.content[2]') }}

@@ -290,20 +290,20 @@ const { const router = useRouter(); const state = reactive({ - pageTitle: "", + titleNo: "", }); const currentArticleContent = computed(() => { const messages = t('companyprofildetail', {}, { resolveComponent: false }); - if (state.pageTitle === messages.article1.title) { + if (state.pageTitle == messages.article1.title) { return messages.article1.content; - } else if (state.pageTitle === messages.article2.title) { + } else if (state.pageTitle == messages.article2.title) { return messages.article2.content; - } else if (state.pageTitle === messages.article3.title) { + } else if (state.pageTitle == messages.article3.title) { return messages.article3.content; - } else if (state.pageTitle === messages.article4.title) { + } else if (state.pageTitle == messages.article4.title) { return messages.article4.content; - } else if (state.pageTitle === messages.article5.title) { + } else if (state.pageTitle == messages.article5.title) { return messages.article5.content; } return []; @@ -316,7 +316,7 @@ const handleTabClick = (tab) => { const { currentTab } = useHome(); const route = useRoute(); onBeforeMount(() => { - state.pageTitle = route.query.title; + state.titleNo = route.query.titleNo; }); onMounted(() => { window.scrollTo(0, 0); diff --git a/src/views/companyprofildetail/size1920/index.vue b/src/views/companyprofildetail/size1920/index.vue index 1063b1a..d7e07b4 100644 --- a/src/views/companyprofildetail/size1920/index.vue +++ b/src/views/companyprofildetail/size1920/index.vue @@ -11,13 +11,13 @@
{{ t("home.nav.home") }}
@@ -48,7 +48,7 @@
@@ -72,7 +72,7 @@
-
+

{{ t('companyprofildetail.article1.content[0]') }}

{{ t('companyprofildetail.article1.content[1]') }}

{{ t('companyprofildetail.article1.content[2]') }}

@@ -90,7 +90,7 @@
@@ -113,7 +113,7 @@
-
+

{{ t('companyprofildetail.article2.content[0]') }}

{{ t('companyprofildetail.article2.content[1]') }}

{{ t('companyprofildetail.article2.content[2]') }}

@@ -129,7 +129,7 @@
@@ -152,7 +152,7 @@
-
+

{{ t('companyprofildetail.article3.content[0]') }}

{{ t('companyprofildetail.article3.content[1]') }}

{{ t('companyprofildetail.article3.content[2]') }}

@@ -169,7 +169,7 @@
@@ -192,7 +192,7 @@
-
+

{{ t('companyprofildetail.article4.content[0]') }}

{{ t('companyprofildetail.article4.content[1]') }}

{{ t('companyprofildetail.article4.content[2]') }}

@@ -209,7 +209,7 @@
@@ -232,7 +232,7 @@
-
+

{{ t('companyprofildetail.article5.content[0]') }}

{{ t('companyprofildetail.article5.content[1]') }}

{{ t('companyprofildetail.article5.content[2]') }}

@@ -290,20 +290,20 @@ const { const router = useRouter(); const state = reactive({ - pageTitle: "", + titleNo: "", }); const currentArticleContent = computed(() => { const messages = t('companyprofildetail', {}, { resolveComponent: false }); - if (state.pageTitle === messages.article1.title) { + if (state.pageTitle == messages.article1.title) { return messages.article1.content; - } else if (state.pageTitle === messages.article2.title) { + } else if (state.pageTitle == messages.article2.title) { return messages.article2.content; - } else if (state.pageTitle === messages.article3.title) { + } else if (state.pageTitle == messages.article3.title) { return messages.article3.content; - } else if (state.pageTitle === messages.article4.title) { + } else if (state.pageTitle == messages.article4.title) { return messages.article4.content; - } else if (state.pageTitle === messages.article5.title) { + } else if (state.pageTitle == messages.article5.title) { return messages.article5.content; } return []; @@ -316,7 +316,7 @@ const handleTabClick = (tab) => { const { currentTab } = useHome(); const route = useRoute(); onBeforeMount(() => { - state.pageTitle = route.query.title; + state.titleNo = route.query.titleNo; }); onMounted(() => { window.scrollTo(0, 0);