Fix: 调整部分样式
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="production-detail">
|
<div class="page-container">
|
||||||
<div v-if="production">
|
<div v-if="production">
|
||||||
<!-- 面包屑导航 -->
|
<!-- 面包屑导航 -->
|
||||||
<el-breadcrumb class="breadcrumb" separator="/">
|
<el-breadcrumb class="breadcrumb" separator="/">
|
||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
<!-- 产品详细描述 -->
|
<!-- 产品详细描述 -->
|
||||||
<div class="production-content">
|
<div class="production-content">
|
||||||
<el-tabs v-model="activeName">
|
<el-tabs v-model="activeName" class="production-tabs">
|
||||||
<el-tab-pane label="产品详情" name="details">
|
<el-tab-pane label="产品详情" name="details">
|
||||||
<markdown-renderer :content="production.production_details || ''" />
|
<markdown-renderer :content="production.production_details || ''" />
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
@ -119,12 +119,12 @@ useHead({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.production-detail {
|
.page-container {
|
||||||
min-height: 60vh;
|
min-height: 60vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
padding: 1rem 1rem;
|
padding: 2rem;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,6 +158,14 @@ useHead({
|
|||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.production-tabs ::v-deep(.el-tabs__item) {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.production-tabs ::v-deep(.el-tabs__content) {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.production-content h2 {
|
.production-content h2 {
|
||||||
color: var(--el-text-color-primary);
|
color: var(--el-text-color-primary);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@ -96,7 +96,7 @@ onMounted(async () => {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.page-container {
|
.page-container {
|
||||||
padding: 2rem 1rem;
|
padding: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.page-header {
|
||||||
|
|||||||
@ -10,8 +10,11 @@
|
|||||||
</el-breadcrumb-item>
|
</el-breadcrumb-item>
|
||||||
</el-breadcrumb>
|
</el-breadcrumb>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="page-tab">
|
||||||
|
<el-segmented v-model="activeTab" class="tab" :options="options" block size="large" />
|
||||||
|
</div>
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<el-divider content-position="left">选择我们的服务</el-divider>
|
<!-- <el-divider content-position="left">选择我们的服务</el-divider>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<NuxtLink :to="$localePath('/about/contact-us')">
|
<NuxtLink :to="$localePath('/about/contact-us')">
|
||||||
<el-card class="card-button">
|
<el-card class="card-button">
|
||||||
@ -22,11 +25,30 @@
|
|||||||
联系我们
|
联系我们
|
||||||
</el-card>
|
</el-card>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</div>
|
<NuxtLink :to="$localePath('/about/contact-us')">
|
||||||
|
<el-card class="card-button">
|
||||||
|
<el-icon class="icon" size="80">
|
||||||
|
<ElIconService />
|
||||||
|
</el-icon>
|
||||||
|
<br>
|
||||||
|
联系我们
|
||||||
|
</el-card>
|
||||||
|
</NuxtLink>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
const activeTab = ref('faq')
|
||||||
|
const options = [
|
||||||
|
{ label: '常见问题', value: 'faq' },
|
||||||
|
{ label: '联系售后', value: 'contact-us' },
|
||||||
|
{ label: '文档资料', value: 'documents' },
|
||||||
|
]
|
||||||
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.page-container {
|
.page-container {
|
||||||
padding: 2rem 1rem;
|
padding: 2rem 1rem;
|
||||||
@ -46,6 +68,7 @@
|
|||||||
justify-content: left;
|
justify-content: left;
|
||||||
margin-top: 2rem;
|
margin-top: 2rem;
|
||||||
margin-left: 2rem;
|
margin-left: 2rem;
|
||||||
|
gap: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-button {
|
.card-button {
|
||||||
|
|||||||
Reference in New Issue
Block a user