优化首页展示数据

This commit is contained in:
mayongjian
2024-09-08 03:36:25 +08:00
parent 7560f209d8
commit 935387a6f7
48 changed files with 249 additions and 74 deletions

View File

@@ -12,14 +12,22 @@
<a class>{{ item.username }}</a>
</div>
<div class="interaction-hint">
<span>开始关注&nbsp;</span><span>{{ item.time }}</span>
<span>开始关注&nbsp;</span><span>{{ item.time }}</span>
</div>
</div>
<div class="extra">
<el-button type="info" round size="large" v-if="item.isFollow" @click="follow(item.uid, index, 1)"
<el-button
class="button"
type="info"
round
size="large"
v-if="item.isFollow"
@click="follow(item.uid, index, 1)"
>互相关注</el-button
>
<el-button type="danger" round size="large" v-else @click="follow(item.uid, index, -1)">回关</el-button>
<el-button class="button" type="danger" round size="large" v-else @click="follow(item.uid, index, -1)"
>回关</el-button
>
</div>
</div>
</li>
@@ -175,6 +183,12 @@ textarea {
}
}
.button {
width: 100px;
height: 40px;
font-size: 14px;
}
.extra {
min-width: 48px;
flex-shrink: 0;