mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
提交
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div v-show="active ==1">
|
<div v-show="active ==1">
|
||||||
<div class="follow-list" v-for="(item,index) in follow.list" :key="index">
|
<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>
|
<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-else class="uavatar">
|
||||||
<div v-if="item.userFollow.authorInfo.sex == null" style="border-radius: 50%;width: 60px;height: 60px;"></div>
|
<div v-if="item.userFollow.authorInfo.sex == null" style="border-radius: 50%;width: 60px;height: 60px;"></div>
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-show="active == 2">
|
<div v-show="active == 2">
|
||||||
<div class="follow-list" v-for="(maPage,index) in followMe.list" :key="index">
|
<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>
|
<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-else class="uavatar">
|
||||||
<div v-if="maPage.userFollow.authorInfo.sex == null" style="border-radius: 50%;width: 60px;height: 60px;"></div>
|
<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:{
|
methods:{
|
||||||
|
toHome(ava) {
|
||||||
|
this.$router.push({path:this.$xpage.getHomePath(ava.aid)})
|
||||||
|
},
|
||||||
toFollow(item) {
|
toFollow(item) {
|
||||||
apiFollow.save(item.userFollow.aid).then(res=>{
|
apiFollow.save(item.userFollow.aid).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user