mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user