个人主页

This commit is contained in:
zhaofang
2022-09-21 16:05:51 +08:00
parent 933fd7e191
commit cbffa341e2
17 changed files with 463 additions and 64 deletions

View File

@@ -19,13 +19,14 @@
</div>
<div v-else class="home-no-list">
<img class="img" style="width:186px;height:160px" src="/images/homeWu/no-follow.png" alt="" srcset="">
<p class="text">还没有笔记</p>
<p class="text">还没有关注的人</p>
</div>
</div>
</template>
<script>
import interactBar from "@/components/Portal/interactBar.vue";
import author from "@/components/Portal/authorInfo.vue";
import apiFollow from "@/api/phase2/userfollow.js"
export default{
name:"articleList",
components: {
@@ -37,12 +38,43 @@ import author from "@/components/Portal/authorInfo.vue";
return{
followList:[],
active:1,
pageId:'',
pageList:[],
mypageList:[],
page:{
pageIndex:1,
pageSize:10,
aid:''
}
}
},
mounted() {
this.pageId = this.$route.query.id;
this.getMyPage();
this.getPage();
},
methods:{
//展示全部
tagTab(num) {
this.active = num;
},
getMyPage() {//关注我的,关注他的
this.page.aid = this.pageId;
apiFollow.mypage(this.page).then(res=>{
if(res.status== 200) {
this.count = res.result.count;
this.mypageList = res.result.list;
}
})
},
getPage() { //我关注的,他关注的
this.page.aid = this.pageId;
apiFollow.page(this.page).then(res=>{
if(res.status== 200) {
this.count = res.result.count;
this.pageList = res.result.list;
}
})
}
}