feat(circle): 添加酒友圈社交模块

- 新增酒友圈、圈子详情、发布动态、好友列表、活动创建等页面配置
- 添加酒友圈相关API接口,包括动态、评论、好友、活动等功能
- 实现模拟数据用于前端开发和测试
- 创建评论项、空状态、活动卡片、动态卡片、好友项等组件
- 编写酒友圈模块详细的接口文档,定义数据结构和业务规则
This commit is contained in:
cg
2026-07-20 22:53:04 +08:00
parent 9f5c69e1e5
commit fabbb167cf
18 changed files with 3992 additions and 18 deletions
+90
View File
@@ -0,0 +1,90 @@
<template>
<view class="comment-item">
<view class="comment-avatar-wrap">
<image v-if="comment.avatar" class="comment-avatar" :src="comment.avatar" mode="aspectFill"></image>
<view v-else class="comment-avatar comment-avatar-ph">
<text class="comment-avatar-text">{{ comment.nickname ? comment.nickname[0] : '酒' }}</text>
</view>
</view>
<view class="comment-body">
<view class="comment-top">
<text class="comment-name">{{ comment.nickname }}</text>
<text class="comment-time">{{ comment.time }}</text>
</view>
<text class="comment-content">{{ comment.content }}</text>
</view>
</view>
</template>
<script>
export default {
name: 'CommentItem',
props: {
comment: { type: Object, default: () => ({}) }
}
}
</script>
<style lang="scss" scoped>
.comment-item {
display: flex;
gap: $sp-md;
padding: $sp-lg 0;
&:not(:last-child) {
border-bottom: 1rpx solid var(--divider-color, rgba(255,255,255,0.08));
}
}
.comment-avatar-wrap {
flex-shrink: 0;
}
.comment-avatar {
width: 64rpx;
height: 64rpx;
border-radius: 50%;
}
.comment-avatar-ph {
background: $bg-elevated;
display: flex;
align-items: center;
justify-content: center;
}
.comment-avatar-text {
font-size: $fs-sm;
font-weight: $fw-bold;
color: $lavender;
}
.comment-body {
flex: 1;
min-width: 0;
}
.comment-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8rpx;
}
.comment-name {
font-size: $fs-sm;
font-weight: $fw-bold;
color: $text-secondary;
}
.comment-time {
font-size: $fs-xs;
color: $text-tertiary;
}
.comment-content {
font-size: $fs-base;
color: $text-primary;
line-height: $lh-normal;
}
</style>