优化首页展示数据
This commit is contained in:
@@ -12,14 +12,22 @@
|
||||
<a class>{{ item.username }}</a>
|
||||
</div>
|
||||
<div class="interaction-hint">
|
||||
<span>开始关注您了 </span><span>{{ item.time }}</span>
|
||||
<span>开始关注你了 </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;
|
||||
|
Reference in New Issue
Block a user