106 行
2.2 KiB
Vue
106 行
2.2 KiB
Vue
<template>
|
|
<section class="section section--green">
|
|
<div class="container">
|
|
<div class="summary-grid">
|
|
<div class="summary-stat">
|
|
<span class="stat-value">{{ summary.totalCount }}<span class="stat-plus">+</span></span>
|
|
<span class="stat-label">组家庭的选择</span>
|
|
</div>
|
|
<div class="summary-divider"></div>
|
|
<div class="summary-stat">
|
|
<span class="stat-value">{{ summary.approvalRate }}</span>
|
|
<span class="stat-label">好评率</span>
|
|
</div>
|
|
</div>
|
|
<div class="summary-keywords">
|
|
<span class="keywords-label">客户高频关键词</span>
|
|
<div class="keywords-list">
|
|
<span v-for="kw in summary.keywords" :key="kw" class="keyword-tag">{{ kw }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({ summary: { type: Object, required: true } })
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.summary-grid {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: @space-2xl;
|
|
margin-bottom: @space-xl;
|
|
}
|
|
|
|
.summary-stat {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: @font-size-hero;
|
|
font-weight: @font-weight-bold;
|
|
color: @color-primary;
|
|
line-height: 1.1;
|
|
position: relative;
|
|
|
|
.respond-md({
|
|
font-size: 52px;
|
|
});
|
|
}
|
|
|
|
.stat-plus {
|
|
font-size: @font-size-xl;
|
|
color: @color-primary-light;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
margin-top: @space-sm;
|
|
font-size: @font-size-base;
|
|
color: @color-text-secondary;
|
|
}
|
|
|
|
.summary-divider {
|
|
width: 1px;
|
|
height: 60px;
|
|
background: @color-primary-lighter;
|
|
}
|
|
|
|
.summary-keywords {
|
|
text-align: center;
|
|
}
|
|
|
|
.keywords-label {
|
|
display: block;
|
|
font-size: @font-size-sm;
|
|
color: @color-text-muted;
|
|
margin-bottom: @space-md;
|
|
}
|
|
|
|
.keywords-list {
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: @space-sm;
|
|
}
|
|
|
|
.keyword-tag {
|
|
padding: @space-xs @space-md;
|
|
background: @color-bg-white;
|
|
border-radius: @border-radius-full;
|
|
color: @color-primary;
|
|
font-size: @font-size-sm;
|
|
font-weight: @font-weight-medium;
|
|
transition: all @transition-fast;
|
|
|
|
&:hover {
|
|
background: @color-primary;
|
|
color: #fff;
|
|
}
|
|
}
|
|
</style>
|