From 14152310b5ed34413a8df81fe727fe534f23bd6d Mon Sep 17 00:00:00 2001
From: R2m1liA <15258427350@163.com>
Date: Wed, 20 Aug 2025 11:24:59 +0800
Subject: [PATCH] =?UTF-8?q?Feature:=20=E8=81=94=E7=B3=BB=E6=88=91=E4=BB=AC?=
=?UTF-8?q?=E7=95=8C=E9=9D=A2=20&=20=E4=BA=A7=E5=93=81=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E5=A2=9E=E6=B7=BBCMS=E7=AD=9B=E9=80=89=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/pages/about/contact-us.vue | 61 +++++++++++++++++++++++++++++++--
app/pages/productions/index.vue | 21 ++++++------
app/types/strapi/production.ts | 1 +
app/types/strapi/singleTypes.ts | 4 +++
4 files changed, 75 insertions(+), 12 deletions(-)
diff --git a/app/pages/about/contact-us.vue b/app/pages/about/contact-us.vue
index 6f89abe..06f70a2 100644
--- a/app/pages/about/contact-us.vue
+++ b/app/pages/about/contact-us.vue
@@ -1,3 +1,60 @@
- 还没做
-
\ No newline at end of file
+
+
+
+ {{ $t('navigation.home') }}
+
+
+ {{ $t('contact-info') }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/pages/productions/index.vue b/app/pages/productions/index.vue
index 453cbdf..9ac65df 100644
--- a/app/pages/productions/index.vue
+++ b/app/pages/productions/index.vue
@@ -1,14 +1,9 @@
+v-for="production in productions" :id="production.id" :key="production.id"
+ :slug="production.documentId" :image-url="useStrapiMedia(production?.production_image?.url || '')"
+ :name="production.title" :description="production.summary || ''" />
@@ -26,7 +21,12 @@ onMounted(async () => {
try {
const response = await find('productions', {
populate: '*',
- locale: strapiLocale, // 使用简体中文
+ filters: {
+ show_in_production_list: {
+ $eq: true, // 只获取在产品列表中显示的产品
+ },
+ },
+ locale: strapiLocale,
})
productions.value = response.data.map((item: Production) => ({
title: item.title,
@@ -35,7 +35,8 @@ onMounted(async () => {
production_image: item.production_image,
production_details: item.production_details,
production_specs: item.production_specs,
- documentId: item.documentId
+ documentId: item.documentId,
+ show_in_production_list: item.show_in_production_list,
}))
} catch (error) {
console.error('Failed to fetch productions:', error)
diff --git a/app/types/strapi/production.ts b/app/types/strapi/production.ts
index b5dcc0e..7addc89 100644
--- a/app/types/strapi/production.ts
+++ b/app/types/strapi/production.ts
@@ -12,4 +12,5 @@ export interface Production extends StrapiEntity {
production_details?: string;
production_specs?: string | object;
documents?: StrapiMedia[];
+ show_in_production_list?: boolean;
}
\ No newline at end of file
diff --git a/app/types/strapi/singleTypes.ts b/app/types/strapi/singleTypes.ts
index 77c5d3f..d4da025 100644
--- a/app/types/strapi/singleTypes.ts
+++ b/app/types/strapi/singleTypes.ts
@@ -1,3 +1,7 @@
export interface StrapiCompanyProfile extends StrapiEntity {
content: string;
+}
+
+export interface StrapiContactInfo extends StrapiEntity {
+ content: string;
}
\ No newline at end of file