mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
个人主页
This commit is contained in:
@@ -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;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user