All checks were successful
deploy to server / build-and-deploy (push) Successful in 3m2s
- 关于我们页面的SEO信息补全
113 lines
2.3 KiB
Vue
113 lines
2.3 KiB
Vue
<template>
|
|
<div class="page-container">
|
|
<div v-if="!pending">
|
|
<app-breadcrumb class="breadcrumb" :items="breadcrumbItems" />
|
|
|
|
<div class="content">
|
|
<markdown-renderer :content="content.content || ''" />
|
|
</div>
|
|
|
|
<el-divider content-position="left">{{ $t('learn-more') }}</el-divider>
|
|
<div class="button-group">
|
|
<NuxtLink :to="$localePath('/support/contact-us')">
|
|
<el-card class="card-button">
|
|
<el-icon class="icon" size="80">
|
|
<ElIconService />
|
|
</el-icon>
|
|
<br />
|
|
{{ $t('navigation.contact-info') }}
|
|
</el-card>
|
|
</NuxtLink>
|
|
</div>
|
|
</div>
|
|
<div v-else class="loading">
|
|
<el-skeleton :rows="5" animated />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const localePath = useLocalePath();
|
|
const breadcrumbItems = [
|
|
{ label: $t('navigation.home'), to: localePath('/') },
|
|
{ label: $t('navigation.about-us') },
|
|
];
|
|
const { data, pending, error } = await useCompanyProfile();
|
|
|
|
const content = computed(() => toCompanyProfileView(data.value));
|
|
|
|
watch(error, (value) => {
|
|
if (value) {
|
|
console.error('数据获取失败: ', value);
|
|
}
|
|
});
|
|
|
|
const pageTitle = computed(() => $t('page-title.about-us'));
|
|
useHead({
|
|
title: pageTitle,
|
|
});
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-container {
|
|
padding: 2rem 1rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.breadcrumb {
|
|
padding: 1rem 1rem;
|
|
}
|
|
|
|
.content {
|
|
padding: 1rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
:deep(.markdown-body p) {
|
|
text-indent: 2em;
|
|
}
|
|
|
|
:deep(.markdown-body h2) {
|
|
text-align: center;
|
|
}
|
|
|
|
:deep(.el-divider__text) {
|
|
color: var(--el-color-info);
|
|
font-size: 1em;
|
|
}
|
|
|
|
.button-group {
|
|
display: flex;
|
|
justify-content: left;
|
|
margin-top: 2rem;
|
|
margin-left: 2rem;
|
|
}
|
|
|
|
.card-button {
|
|
width: 20%;
|
|
min-width: 200px;
|
|
padding: 20px;
|
|
margin: 0 auto;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.card-button:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.icon {
|
|
padding: 10px;
|
|
}
|
|
|
|
.loading {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
}
|
|
</style>
|