Compare commits
6 Commits
d8abb0a50e
...
5ddb2265cf
| Author | SHA1 | Date | |
|---|---|---|---|
| 5ddb2265cf | |||
| eb175889c6 | |||
| 6230c7ff17 | |||
| eec2b0ae9f | |||
| 3be665449c | |||
| ea409d49b0 |
@ -6,7 +6,6 @@
|
|||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<!-- 导航菜单 -->
|
<!-- 导航菜单 -->
|
||||||
<el-menu
|
<el-menu
|
||||||
:default-active="activeName" class="header-menu" mode="horizontal" :ellipsis="false"
|
:default-active="activeName" class="header-menu" mode="horizontal" :ellipsis="false"
|
||||||
|
|||||||
@ -2,11 +2,8 @@
|
|||||||
<div class="question-list">
|
<div class="question-list">
|
||||||
<el-collapse class="question-collapse" accordion>
|
<el-collapse class="question-collapse" accordion>
|
||||||
<el-collapse-item
|
<el-collapse-item
|
||||||
v-for="(question, index) in questions"
|
v-for="(question, index) in questions" :key="index" :title="question.title"
|
||||||
:key="index"
|
:name="String(index)">
|
||||||
:title="question.title"
|
|
||||||
:name="String(index)"
|
|
||||||
>
|
|
||||||
<markdown-renderer :content="question.content || ''" />
|
<markdown-renderer :content="question.content || ''" />
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
</el-collapse>
|
</el-collapse>
|
||||||
@ -31,14 +28,33 @@ defineProps({
|
|||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.question-collapse :deep(.el-collapse-item) {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.question-collapse :deep(.el-collapse-item__header) {
|
.question-collapse :deep(.el-collapse-item__header) {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&.is-active {
|
||||||
|
background-color: #e1e6eb;
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.question-collapse :deep(.el-collapse-item) {
|
.question-collapse :deep(.el-collapse-item__wrap) {
|
||||||
margin-bottom: 1rem;
|
border: none;
|
||||||
border: 1px solid var(--el-border-color-light);
|
|
||||||
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.question-collapse :deep(.el-collapse-item__content) {
|
||||||
|
padding: 1rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@ -1,32 +1,108 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="homepage">
|
<div class="homepage">
|
||||||
<div class="carousel">
|
<div v-if="!pending" class="carousel">
|
||||||
<el-carousel height="auto" :interval="5000" arrow="never" autoplay>
|
<el-carousel class="homepage-carousel" height="auto" :interval="5000" arrow="never" autoplay>
|
||||||
<el-carousel-item v-for="(item, index) in 3" :key="index">
|
<el-carousel-item v-for="(item, index) in carouselImages" :key="index">
|
||||||
<div class="carousel-item">
|
<div class="carousel-item">
|
||||||
<!-- <el-image class="carousel-image" :src="useStrapiMedia('/uploads/201605211508029798_e37af77a48.png')" fit="fill" /> -->
|
<el-image
|
||||||
<p class="image-label">{{ item }}</p>
|
class="carousel-image" :src="useStrapiMedia(item.url || '')"
|
||||||
|
:alt="item.alternativeText || `Carousel Image ${index + 1}`" fit="contain" lazy />
|
||||||
|
<p v-if="item.caption" class="caption">{{ item.caption }}</p>
|
||||||
|
</div>
|
||||||
|
</el-carousel-item>
|
||||||
|
</el-carousel>
|
||||||
|
<div class="recommend-production" style="padding: 2rem;">
|
||||||
|
<div class="section">
|
||||||
|
<h2 style="font-size: 1.5rem; font-weight: bold; margin-bottom: 1rem;">推荐产品</h2>
|
||||||
|
<p>探索我们的精选产品,满足您的各种需求。无论是创新技术还是经典设计,我们都为您提供优质选择。</p>
|
||||||
|
<el-carousel
|
||||||
|
class="production-carousel" height="auto" arrow="never" indicator-position="outside"
|
||||||
|
:autoplay="false">
|
||||||
|
<el-carousel-item
|
||||||
|
v-for="n in Math.floor(recommend_productions.length / 3) + 1" :key="n"
|
||||||
|
class="production-list">
|
||||||
|
<div class="block-group">
|
||||||
|
<el-card
|
||||||
|
v-for="(item, index) in recommend_productions.slice((n - 1) * 3, n * 3)" :key="index"
|
||||||
|
class="block production-card" @click="handleProductionCardClick(item.documentId || '')">
|
||||||
|
<template #header>
|
||||||
|
<el-image
|
||||||
|
:src="useStrapiMedia(item.cover?.url || '')"
|
||||||
|
:alt="item.cover?.alternativeText || item.title" fit="cover"
|
||||||
|
style="width: 100%; height: 200px; border-radius: 8px;" lazy />
|
||||||
|
</template>
|
||||||
|
<div class="card-body">
|
||||||
|
<!-- Name -->
|
||||||
|
<div class="text-center">
|
||||||
|
<span class="production-name">{{ item.title }}</span>
|
||||||
|
</div>
|
||||||
|
<!-- Description -->
|
||||||
|
<div class="card-description text-left opacity-25">{{ item.summary }}</div>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</el-carousel-item>
|
</el-carousel-item>
|
||||||
</el-carousel>
|
</el-carousel>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div v-else class="loading">
|
||||||
|
<el-skeleton :rows="3" animated />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<script setup lang="ts">
|
||||||
.carousel-item {
|
const { findOne } = useStrapi()
|
||||||
width: 100%;
|
const { getStrapiLocale } = useLocalizations()
|
||||||
height: 100%;
|
const strapiLocale = getStrapiLocale()
|
||||||
background-color: #f5f7fa;
|
|
||||||
}
|
|
||||||
|
|
||||||
.carousel-image {
|
const carouselImages = ref<StrapiImage[]>([])
|
||||||
position: relative;
|
const recommend_productions = ref<Production[]>([])
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-carousel__item {
|
const pending = ref(true)
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
try {
|
||||||
|
const response = await findOne<StrapiHomepage>('homepage', undefined, {
|
||||||
|
populate: {
|
||||||
|
carousel: {
|
||||||
|
populate: '*',
|
||||||
|
},
|
||||||
|
recommend_productions: {
|
||||||
|
populate: {
|
||||||
|
cover: {
|
||||||
|
populate: '*',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
locale: strapiLocale,
|
||||||
|
})
|
||||||
|
if (response.data) {
|
||||||
|
carouselImages.value = response.data.carousel || []
|
||||||
|
recommend_productions.value = response.data.recommend_productions || []
|
||||||
|
console.log('推荐产品:', recommend_productions.value)
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching homepage data:', error)
|
||||||
|
} finally {
|
||||||
|
pending.value = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const handleProductionCardClick = (documentId: string) => {
|
||||||
|
// 使用路由导航到产品详情页
|
||||||
|
if (documentId) {
|
||||||
|
const localePath = useLocalePath()
|
||||||
|
const router = useRouter()
|
||||||
|
router.push(localePath(`/productions/${documentId}`))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.homepage-carousel .el-carousel__item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 33vw;
|
height: 33vw;
|
||||||
/* 16:9 Aspect Ratio */
|
/* 16:9 Aspect Ratio */
|
||||||
@ -40,12 +116,90 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-carousel__item:nth-child(2n) {
|
.homepage-carousel .carousel-item {
|
||||||
/* background-color: #99a9bf; */
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: #f5f7fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-carousel__item:nth-child(2n + 1) {
|
.carousel-image {
|
||||||
/* background-color: #d3dce6; */
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.caption {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 10px;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
color: white;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-carousel :deep(.el-carousel__button) {
|
||||||
|
/* 指示器按钮样式 */
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-color: #475669;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-list {
|
||||||
|
display: flex;
|
||||||
|
padding: 1rem;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-group {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.block {
|
||||||
|
width: 30%;
|
||||||
|
height: 100%;
|
||||||
|
border: 2px dashed #a3aac6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-card {
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-card:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-name {
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-description {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-card .el-image {
|
||||||
|
height: 150px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-body {
|
||||||
|
margin: 10px auto;
|
||||||
|
padding: 0px auto;
|
||||||
|
height: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section p {
|
.section p {
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
<question-list :questions="production.questions" />
|
<question-list :questions="production.questions" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="相关文档" name="documents">
|
<el-tab-pane label="相关文档" name="documents">
|
||||||
<document-list :documents="production.documents" />
|
<document-list :documents="production.production_documents.map(item => item.document) || []" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
@ -95,8 +95,8 @@ onMounted(async () => {
|
|||||||
questions: {
|
questions: {
|
||||||
populate: '*',
|
populate: '*',
|
||||||
},
|
},
|
||||||
documents: {
|
production_documents: {
|
||||||
populate: '*',
|
populate: 'document',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
locale: strapiLocale,
|
locale: strapiLocale,
|
||||||
@ -106,6 +106,7 @@ onMounted(async () => {
|
|||||||
production.value = {
|
production.value = {
|
||||||
...item,
|
...item,
|
||||||
}
|
}
|
||||||
|
console.log('Fetched production:', production.value)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to fetch production:', error)
|
console.error('Failed to fetch production:', error)
|
||||||
|
|||||||
@ -19,8 +19,7 @@ v-for="(group, type) in groupedProductions" :key="type" :title="type || '未分
|
|||||||
<div class="group-list">
|
<div class="group-list">
|
||||||
<production-card
|
<production-card
|
||||||
v-for="production in group" :key="production.documentId || production.id"
|
v-for="production in group" :key="production.documentId || production.id"
|
||||||
:slug="production.documentId"
|
:slug="production.documentId" :image-url="useStrapiMedia(production?.cover?.url || '')"
|
||||||
:image-url="useStrapiMedia(production?.cover?.url || '')"
|
|
||||||
:name="production.title" :description="production.summary || ''" />
|
:name="production.title" :description="production.summary || ''" />
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@ -65,12 +64,9 @@ onMounted(async () => {
|
|||||||
cover: {
|
cover: {
|
||||||
populate: '*',
|
populate: '*',
|
||||||
},
|
},
|
||||||
production_images: {
|
|
||||||
populate: '*',
|
|
||||||
},
|
|
||||||
production_type: {
|
production_type: {
|
||||||
populate: '*',
|
populate: '*'
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
show_in_production_list: {
|
show_in_production_list: {
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
|
<div v-if="pending">
|
||||||
|
<el-skeleton :rows="5" animated />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<support-tabs model-value="documents" />
|
<support-tabs model-value="documents" />
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t('navigation.documents') }}</h1>
|
<h1 class="page-title">{{ $t('navigation.documents') }}</h1>
|
||||||
@ -15,11 +19,39 @@
|
|||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="page-content">
|
||||||
|
<document-list :documents="documents" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
const { find } = useStrapi()
|
||||||
|
const { getStrapiLocale } = useLocalizations()
|
||||||
|
const strapiLocale = getStrapiLocale()
|
||||||
|
|
||||||
|
const pending = ref(true)
|
||||||
|
|
||||||
|
const documents = ref<StrapiMedia[]>([])
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
try {
|
||||||
|
const response = await find<ProductionDocument>('production-documents', {
|
||||||
|
locale: strapiLocale,
|
||||||
|
populate: 'document',
|
||||||
|
})
|
||||||
|
if(response.data) {
|
||||||
|
documents.value = response.data.map(item => ({
|
||||||
|
...item.document,
|
||||||
|
})) || []
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching documents:', error)
|
||||||
|
} finally {
|
||||||
|
pending.value = false
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@ -38,4 +70,8 @@
|
|||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-content {
|
||||||
|
padding: 1rem 2rem 2rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
|
<div v-if="pending" class="flex justify-center items-center h-64">
|
||||||
|
<el-spinner />
|
||||||
|
</div>
|
||||||
|
<div v-else>
|
||||||
<support-tabs model-value="faq" />
|
<support-tabs model-value="faq" />
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
|
<h1 class="page-title">{{ $t('navigation.faq') }}</h1>
|
||||||
@ -15,12 +19,37 @@
|
|||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="page-content">
|
||||||
|
<question-list :questions="questions" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
const { find } = useStrapi();
|
||||||
|
const { getStrapiLocale } = useLocalizations();
|
||||||
|
const strapiLocale = getStrapiLocale();
|
||||||
|
|
||||||
|
const questions = ref<Question[]>([]);
|
||||||
|
|
||||||
|
const pending = ref(true);
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
try {
|
||||||
|
const faqData = await find<Question>('questions', {
|
||||||
|
locale: strapiLocale,
|
||||||
|
});
|
||||||
|
if (faqData) {
|
||||||
|
questions.value = faqData.data || [];
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to fetch FAQ data:', error);
|
||||||
|
} finally {
|
||||||
|
pending.value = false;
|
||||||
|
}
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
@ -40,4 +69,7 @@
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-content {
|
||||||
|
padding: 1rem 2rem 2rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<support-tabs />
|
<support-tabs />
|
||||||
|
|
||||||
|
<div class="page-content">
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h1 class="page-title">{{ $t('navigation.support') }}</h1>
|
<h1 class="page-title">{{ $t('navigation.support') }}</h1>
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
@ -12,28 +14,89 @@
|
|||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-content">
|
<section style="margin-bottom: 2rem;">
|
||||||
<!-- <el-divider content-position="left">选择我们的服务</el-divider>
|
<p>金申机械制造有限公司致力于为客户提供优质的产品与服务。针对纸管机、分纸机、纸吸管等产品,我们提供全方位的售后服务,确保客户能够安心地使用我们的产品。</p>
|
||||||
<div class="button-group">
|
</section>
|
||||||
<NuxtLink :to="$localePath('/about/contact-us')">
|
<div class="card-group">
|
||||||
<el-card class="card-button">
|
<el-card class="card">
|
||||||
<el-icon class="icon" size="80">
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-icon class="card-icon" size="80">
|
||||||
|
<ElIconQuestionFilled />
|
||||||
|
</el-icon>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="18">
|
||||||
|
<div class="card-title">
|
||||||
|
<span>{{ $t('navigation.faq') }}</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<div class="card-content">
|
||||||
|
<p>我们为用户整理了常见问题的答案,帮助您快速解决疑惑。</p>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<NuxtLink class="card-link" :to="$localePath('/support/faq')">
|
||||||
|
<el-button class="card-button" round>
|
||||||
|
<span>了解更多 > </span>
|
||||||
|
</el-button>
|
||||||
|
</NuxtLink>
|
||||||
|
</el-row>
|
||||||
|
</el-card>
|
||||||
|
<el-card class="card">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-icon class="card-icon" size="80">
|
||||||
|
<ElIconDocumentChecked />
|
||||||
|
</el-icon>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="18">
|
||||||
|
<div class="card-title">
|
||||||
|
<span>{{ $t('navigation.documents') }}</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<div class="card-content">
|
||||||
|
<p>我们为用户整理了常见问题的答案,为您快速解决疑惑。</p>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<NuxtLink class="card-link" :to="$localePath('/support/documents')">
|
||||||
|
<el-button class="card-button" round>
|
||||||
|
<span>了解更多 > </span>
|
||||||
|
</el-button>
|
||||||
|
</NuxtLink>
|
||||||
|
</el-row>
|
||||||
|
</el-card>
|
||||||
|
<el-card class="card">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-icon class="card-icon" size="80">
|
||||||
<ElIconService />
|
<ElIconService />
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<br>
|
</el-col>
|
||||||
联系我们
|
<el-col :span="18">
|
||||||
</el-card>
|
<div class="card-title">
|
||||||
|
<span>{{ $t('navigation.contact-info') }}</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<div class="card-content">
|
||||||
|
<p>通过电话、邮箱联系我们,我们将现场为您服务。</p>
|
||||||
|
</div>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<NuxtLink class="card-link" :to="$localePath('/support/contact-us')">
|
||||||
|
<el-button class="card-button" round>
|
||||||
|
<span>了解更多 > </span>
|
||||||
|
</el-button>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink :to="$localePath('/about/contact-us')">
|
</el-row>
|
||||||
<el-card class="card-button">
|
|
||||||
<el-icon class="icon" size="80">
|
|
||||||
<ElIconService />
|
|
||||||
</el-icon>
|
|
||||||
<br>
|
|
||||||
联系我们
|
|
||||||
</el-card>
|
</el-card>
|
||||||
</NuxtLink>
|
</div>
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -42,9 +105,9 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 2rem 2rem 0rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
@ -59,12 +122,55 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.page-content {
|
.page-content {
|
||||||
padding: 2rem;
|
padding: 1rem 2rem 2rem;
|
||||||
|
max-width: 1200px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.el-divider__text) {
|
|
||||||
font-size: 1.2rem;
|
section {
|
||||||
|
line-height: 1.6;
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-group {
|
||||||
|
display: flex;
|
||||||
|
gap: 100px;
|
||||||
|
justify-content: space-around;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-card {
|
||||||
|
width: 100%;
|
||||||
|
padding: 20px;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-icon {
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-title {
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 2rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-button {
|
||||||
|
cursor: pointer;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: var(--el-color-primary);
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-group {
|
.button-group {
|
||||||
@ -75,18 +181,20 @@
|
|||||||
gap: 20px;
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-button {
|
.el-row {
|
||||||
width: 20%;
|
margin-bottom: 20px;
|
||||||
min-width: 200px;
|
|
||||||
padding: 20px;
|
|
||||||
margin: 0 auto;
|
|
||||||
cursor: pointer;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 1.5em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-button:hover {
|
.el-row:last-child {
|
||||||
transform: translateY(-4px);
|
margin-bottom: 0;
|
||||||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
}
|
||||||
|
|
||||||
|
.el-col {
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid-content {
|
||||||
|
border-radius: 4px;
|
||||||
|
min-height: 36px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@ -45,3 +45,5 @@ export interface StrapiResponse<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type StrapiRelation<T, K extends keyof T = never> = Omit<T, K | keyof StrapiEntity> & StrapiEntity;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
import type { StrapiEntity, StrapiImage, StrapiMedia } from './common';
|
import type { StrapiEntity, StrapiImage, StrapiMedia, StrapiRelation } from './common';
|
||||||
|
|
||||||
export interface ProductionType extends StrapiEntity {
|
export interface ProductionType extends StrapiEntity {
|
||||||
type: string;
|
type: string;
|
||||||
@ -22,7 +22,12 @@ export interface Production extends StrapiEntity {
|
|||||||
production_images: StrapiImage[];
|
production_images: StrapiImage[];
|
||||||
production_details: string;
|
production_details: string;
|
||||||
production_specs: ProductionSpecGroup[];
|
production_specs: ProductionSpecGroup[];
|
||||||
questions: Question[];
|
production_documents: StrapiRelation<ProductionDocument, 'related_productions'>[];
|
||||||
documents: StrapiMedia[];
|
questions: StrapiRelation<Question, 'related_productions'>[];
|
||||||
show_in_production_list: boolean;
|
show_in_production_list: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ProductionDocument extends StrapiEntity {
|
||||||
|
document: StrapiMedia;
|
||||||
|
related_productions: StrapiRelation<Production, 'production_documents'>[];
|
||||||
|
}
|
||||||
@ -1,4 +1,5 @@
|
|||||||
export interface Question extends StrapiEntity {
|
export interface Question extends StrapiEntity {
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
|
related_productions: StrapiRelation<Production, 'questions'>[];
|
||||||
}
|
}
|
||||||
@ -8,4 +8,5 @@ export interface StrapiContactInfo extends StrapiEntity {
|
|||||||
|
|
||||||
export interface StrapiHomepage extends StrapiEntity {
|
export interface StrapiHomepage extends StrapiEntity {
|
||||||
carousel: StrapiImage[];
|
carousel: StrapiImage[];
|
||||||
|
recommend_productions: StrapiRelation<Production>[];
|
||||||
}
|
}
|
||||||
@ -49,6 +49,11 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
devServer: {
|
||||||
|
port: 3000,
|
||||||
|
host: '0.0.0.0',
|
||||||
|
},
|
||||||
|
|
||||||
elementPlus: {
|
elementPlus: {
|
||||||
icon: "ElIcon",
|
icon: "ElIcon",
|
||||||
importStyle: "scss",
|
importStyle: "scss",
|
||||||
|
|||||||
Reference in New Issue
Block a user