This commit is contained in:
zhaofang
2022-10-28 19:01:20 +08:00
parent 33aa649164
commit 0b75347b84

View File

@@ -6,7 +6,7 @@
</ul>
<div v-show="active ==1">
<div class="follow-list" v-for="(item,index) in follow.list" :key="index">
<div style="width:60px;height:60">
<div style="width:60px;height:60" @click="toHome(item.userFollow.authorInfo)">
<el-avatar shape="circle" style="width:60px;height:60px" size="small" :src="baseUrl+item.userFollow.authorInfo.avatar" v-if="item.userFollow.authorInfo.avatar"></el-avatar>
<div v-else class="uavatar">
<div v-if="item.userFollow.authorInfo.sex == null" style="border-radius: 50%;width: 60px;height: 60px;"></div>
@@ -51,7 +51,7 @@
</div>
<div v-show="active == 2">
<div class="follow-list" v-for="(maPage,index) in followMe.list" :key="index">
<div style="width:60px;height:60">
<div style="width:60px;height:60" @click="toHome(maPage.userFollow.authorInfo)">
<el-avatar shape="circle" style="width:60px;height:60px" size="small" :src="baseUrl+maPage.userFollow.authorInfo.avatar" v-if="maPage.userFollow.authorInfo.avatar"></el-avatar>
<div v-else class="uavatar">
<div v-if="maPage.userFollow.authorInfo.sex == null" style="border-radius: 50%;width: 60px;height: 60px;"></div>
@@ -154,6 +154,9 @@ import apiUser from "@/api/system/user.js";
})
},
methods:{
toHome(ava) {
this.$router.push({path:this.$xpage.getHomePath(ava.aid)})
},
toFollow(item) {
apiFollow.save(item.userFollow.aid).then(res=>{
if(res.status == 200) {