Mimingguang ee078b61bc feat: 后台管理系统完整重构 + 前后台数据联通
- 后台全面引入 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>
2026-03-24 17:48:02 +08:00

84 行
1.6 KiB
Vue

<template>
<div class="trust-badge" :class="{ 'trust-badge--dark': dark }">
<div class="trust-badge-value">
<span class="trust-number">{{ value }}</span>
<span v-if="unit" class="trust-unit">{{ unit }}</span>
</div>
<div class="trust-badge-label">{{ label }}</div>
<div v-if="attribution" class="trust-badge-note">{{ attribution }}</div>
</div>
</template>
<script setup>
defineProps({
value: { type: String, required: true },
unit: { type: String, default: '' },
label: { type: String, required: true },
attribution: { type: String, default: '' },
dark: { type: Boolean, default: false },
})
</script>
<style lang="less" scoped>
.trust-badge {
text-align: center;
padding: @space-lg @space-md;
}
.trust-badge-value {
display: flex;
align-items: baseline;
justify-content: center;
gap: @space-xs;
}
.trust-number {
font-size: @font-size-3xl;
font-weight: @font-weight-bold;
color: @color-primary;
letter-spacing: -1px;
.respond-md({
font-size: @font-size-display;
});
.trust-badge--dark & {
color: #fff;
}
}
.trust-unit {
font-size: @font-size-base;
color: @color-primary-light;
.respond-md({
font-size: @font-size-md;
});
.trust-badge--dark & {
color: @color-primary-lighter;
}
}
.trust-badge-label {
margin-top: @space-sm;
font-size: @font-size-sm;
color: @color-text-secondary;
font-weight: @font-weight-medium;
.trust-badge--dark & {
color: rgba(255, 255, 255, 0.6);
}
}
.trust-badge-note {
margin-top: @space-xs;
font-size: @font-size-xs;
color: @color-text-muted;
.trust-badge--dark & {
color: rgba(255, 255, 255, 0.35);
}
}
</style>