This commit is contained in:
zhaofang
2022-11-16 14:04:02 +08:00
parent 3ee1d94037
commit 5e37b7871e
2 changed files with 4 additions and 4 deletions

View File

@@ -114,6 +114,7 @@
} }
}, },
onLoad(options) { onLoad(options) {
this.tab = options.type;
this.$store.dispatch('GetUserInfo').then(rs => { this.$store.dispatch('GetUserInfo').then(rs => {
this.userInfo = rs; this.userInfo = rs;
this.getMyPage(); this.getMyPage();
@@ -161,7 +162,7 @@
}) })
}, },
ubtab(num){ ubtab(num){
this.tab = num this.tab = num;
}, },
getMyPage() {//关注我的,关注他的 getMyPage() {//关注我的,关注他的
this.followMe.aid = this.userInfo.aid; this.followMe.aid = this.userInfo.aid;

View File

@@ -78,12 +78,12 @@
</view> </view>
<text class="asset-border"></text> <text class="asset-border"></text>
<view @click="navigateTo('follow')"> <view @click="navigateTo('follow?type=1')">
<text>{{ concernme }}</text> <text>{{ concernme }}</text>
关注我的 关注我的
</view> </view>
<text class="asset-border"></text> <text class="asset-border"></text>
<view @click="navigateTo('follow')"> <view @click="navigateTo('follow?type=2')">
<text>{{ myconcern }}</text> <text>{{ myconcern }}</text>
我的关注 我的关注
</view> </view>
@@ -367,7 +367,6 @@
Followto(){ Followto(){
apiFollow.counts(this.userInfoObj.aid).then(res => { apiFollow.counts(this.userInfoObj.aid).then(res => {
console.log(res);
this.concernme = res.result.passive; this.concernme = res.result.passive;
this.myconcern = res.result.initiative; this.myconcern = res.result.initiative;
}) })