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