- 后台全面引入 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>
46 行
873 B
Vue
46 行
873 B
Vue
<template>
|
|
<section class="trust-section">
|
|
<div class="container">
|
|
<div class="trust-grid">
|
|
<CommonTrustBadge
|
|
v-for="stat in stats"
|
|
:key="stat.label"
|
|
:value="stat.value"
|
|
:unit="stat.unit"
|
|
:label="stat.label"
|
|
:attribution="stat.attribution"
|
|
dark
|
|
/>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
stats: { type: Array, required: true },
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.trust-section {
|
|
background: linear-gradient(135deg, @color-primary-dark 0%, @color-primary 100%);
|
|
padding: @space-xl 0;
|
|
|
|
.respond-md({
|
|
padding: @space-2xl 0;
|
|
});
|
|
}
|
|
|
|
.trust-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: @space-md;
|
|
|
|
.respond-md({
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: @space-xl;
|
|
});
|
|
}
|
|
</style>
|