diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue index 2582834..17d9b4d 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue @@ -61,9 +61,6 @@ onLoad() { this.getLastPost(); }, - onShow() { - // this.getMsgNum(); - }, onReachBottom() { if (this.current === 0) { this.page1++; @@ -80,7 +77,6 @@ this.page1 = 1; this.followUserPost = []; this.getFollowUserPost(); - // this.getMsgNum(); } if (this.current === 1) { this.page2 = 1; @@ -90,11 +86,7 @@ uni.stopPullDownRefresh(); }, methods: { - getMsgNum() { - this.$H.post('message/num').then(res => { - this.$store.state.messegeNum = [0, 0, 0, res.result.allCount, 0]; - }); - }, + tabChange(index) { this.current = index; this.followUserPost = []; @@ -103,7 +95,7 @@ if (index === 0) { this.page1 = 1; this.getFollowUserPost(); - this.getMsgNum(); + } if (index === 1) { this.page2 = 1; diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/home.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/home.vue index 4eba7cf..356f36d 100644 --- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/home.vue +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/home.vue @@ -27,7 +27,7 @@ shape="circle" size="mini"> 已关注 - 私信 @@ -40,11 +40,15 @@ + + +