diff --git a/pages/my/follow.vue b/pages/my/follow.vue index b421e50..457d535 100644 --- a/pages/my/follow.vue +++ b/pages/my/follow.vue @@ -114,6 +114,7 @@ } }, onLoad(options) { + this.tab = options.type; this.$store.dispatch('GetUserInfo').then(rs => { this.userInfo = rs; this.getMyPage(); @@ -161,7 +162,7 @@ }) }, ubtab(num){ - this.tab = num + this.tab = num; }, getMyPage() {//关注我的,关注他的 this.followMe.aid = this.userInfo.aid; diff --git a/pages/my/index.vue b/pages/my/index.vue index f0e419d..271df68 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -78,12 +78,12 @@ - + {{ concernme }} 关注我的 - + {{ myconcern }} 我的关注 @@ -367,7 +367,6 @@ Followto(){ apiFollow.counts(this.userInfoObj.aid).then(res => { - console.log(res); this.concernme = res.result.passive; this.myconcern = res.result.initiative; })