- 后台全面引入 Naive UI 组件库,统一 UI 规范 - 前台 usePublicApi 切换到 API 调用(GET /api/content/[key]) - 前后台数据源统一(site_content 表) - 产品线统一管理(tour/camp/course 三套编辑器) - 产品数据归一化(itinerary/faq/pricing 格式统一) - 表单提交 API 改写入 submissions 表 - 新增 submissions 标记已读 API - site-content PUT 支持 upsert - 修复前台 bug(stories 路由冲突、占位符警告、selector breadcrumb) - 消除 PageHero 类型警告(useSEO reactive 修复) - 25 个前台页面全部 HTTP 200,展示效果不变 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
84 行
1.8 KiB
Vue
84 行
1.8 KiB
Vue
<template>
|
|
<section class="section">
|
|
<div class="container">
|
|
<CommonSectionTitle title="2026年核心升级" subtitle="基于客户反馈的三大重磅升级" />
|
|
<div class="upgrades-list">
|
|
<div v-for="item in upgrades" :key="item.name" class="upgrade-item">
|
|
<div class="upgrade-header">
|
|
<span class="upgrade-tag">{{ item.tag }}</span>
|
|
<h3 class="upgrade-name">{{ item.name }}</h3>
|
|
</div>
|
|
<p class="upgrade-desc">{{ item.description }}</p>
|
|
<div class="upgrade-reason">{{ item.reason }}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
upgrades: { type: Array, required: true }
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.upgrades-list {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: @space-xl;
|
|
}
|
|
|
|
.upgrade-item {
|
|
padding-bottom: @space-xl;
|
|
border-bottom: 1px solid @color-border;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.upgrade-header {
|
|
margin-bottom: @space-md;
|
|
}
|
|
|
|
.upgrade-tag {
|
|
display: inline-block;
|
|
background: @color-primary;
|
|
color: #fff;
|
|
font-size: @font-size-xs;
|
|
font-weight: @font-weight-medium;
|
|
padding: @space-xs @space-md;
|
|
border-radius: @border-radius-full;
|
|
letter-spacing: 2px;
|
|
margin-bottom: @space-sm;
|
|
}
|
|
|
|
.upgrade-name {
|
|
font-size: @font-size-lg;
|
|
font-weight: @font-weight-bold;
|
|
color: @color-text-primary;
|
|
margin: 0;
|
|
}
|
|
|
|
.upgrade-desc {
|
|
font-size: @font-size-base;
|
|
color: @color-text-secondary;
|
|
line-height: @line-height-loose;
|
|
margin-bottom: @space-md;
|
|
}
|
|
|
|
.upgrade-reason {
|
|
font-size: @font-size-sm;
|
|
color: @color-text-muted;
|
|
line-height: @line-height-base;
|
|
padding: @space-md @space-lg;
|
|
background: @color-bg-gray;
|
|
border-radius: @border-radius-sm;
|
|
border-left: 3px solid @color-primary;
|
|
}
|
|
</style>
|