189 lines
4.9 KiB
Vue
189 lines
4.9 KiB
Vue
|
|
<template>
|
||
|
|
<section class="feedback-section">
|
||
|
|
<h2 class="feedback-title">客户反馈</h2>
|
||
|
|
<div class="feedback-list">
|
||
|
|
<div v-for="(item, index) in feedbackList" :key="index" class="feedback-card">
|
||
|
|
<div class="avatar-container">
|
||
|
|
<img :src="item.avatar" alt="avatar" class="avatar" />
|
||
|
|
</div>
|
||
|
|
<div class="feedback-info">
|
||
|
|
<p class="username">{{ item.username }}</p>
|
||
|
|
<p class="comment">{{ item.comment }}</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
// 模拟假数据(头像统一使用你提供的链接)
|
||
|
|
const feedbackList = [
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '界面简约清晰,功能强大',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '派小喵萌宠',
|
||
|
|
comment: '预约操作简单方便,客户体验好评',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '派小喵萌宠',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '派小喵萌宠',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '派小喵萌宠',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '章小样',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
username: '派小喵萌宠',
|
||
|
|
comment: '操作简单,容易上手',
|
||
|
|
avatar: 'https://images.health.ufutx.com/202506/12/1c0c9dad7586e6fd00ab781064acc822.png'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style scoped lang="less">
|
||
|
|
// 基础变量(可继承项目全局样式)
|
||
|
|
@bg-color: #f9fbff;
|
||
|
|
@card-bg: #ffffff;
|
||
|
|
@radius: 12px;
|
||
|
|
@padding: 16px;
|
||
|
|
@gap: 24px;
|
||
|
|
@avatar-size: 40px;
|
||
|
|
@text-color: #333;
|
||
|
|
@subtext-color: #999;
|
||
|
|
@transition: all 0.3s ease;
|
||
|
|
|
||
|
|
.feedback-section {
|
||
|
|
background-color: @bg-color;
|
||
|
|
padding: 48px @padding;
|
||
|
|
text-align: center;
|
||
|
|
|
||
|
|
.feedback-title {
|
||
|
|
font-size: 28px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: @text-color;
|
||
|
|
margin-bottom: 32px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.feedback-list {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
justify-content: center;
|
||
|
|
gap: @gap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.feedback-card {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
background-color: @card-bg;
|
||
|
|
border-radius: @radius;
|
||
|
|
padding: @padding;
|
||
|
|
width: 240px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
||
|
|
transition: @transition;
|
||
|
|
|
||
|
|
&:hover {
|
||
|
|
transform: translateY(-4px);
|
||
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
|
||
|
|
}
|
||
|
|
|
||
|
|
.avatar-container {
|
||
|
|
flex-shrink: 0;
|
||
|
|
margin-right: 12px;
|
||
|
|
|
||
|
|
.avatar {
|
||
|
|
width: @avatar-size;
|
||
|
|
height: @avatar-size;
|
||
|
|
border-radius: 50%;
|
||
|
|
object-fit: cover;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.feedback-info {
|
||
|
|
text-align: left;
|
||
|
|
|
||
|
|
.username {
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 500;
|
||
|
|
color: @text-color;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.comment {
|
||
|
|
font-size: 14px;
|
||
|
|
color: @subtext-color;
|
||
|
|
line-height: 1.4;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 响应式适配
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.feedback-card {
|
||
|
|
width: 100%;
|
||
|
|
max-width: 320px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|