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);