This commit is contained in:
zhaofang
2022-11-22 18:20:32 +08:00
parent 8b10bffb1b
commit 5f01f9a4cf
3 changed files with 6 additions and 0 deletions

View File

@@ -119,6 +119,7 @@
} }
}, },
mounted() { mounted() {
this.pageId = this.$xpage.getHomeId(this.$route); this.pageId = this.$xpage.getHomeId(this.$route);
this.sex = this.userInfo.sex; this.sex = this.userInfo.sex;
// 判断路由是进入的学员默认页面就重置setCurIdentity // 判断路由是进入的学员默认页面就重置setCurIdentity
@@ -131,6 +132,7 @@
if(this.pageId !== this.userInfo.aid) { if(this.pageId !== this.userInfo.aid) {
this.followHas(); this.followHas();
} }
}, },
methods:{ methods:{
cancelFollow() { cancelFollow() {

View File

@@ -128,6 +128,9 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js";
//this.orgInfo=cutFullName(testName,1); //this.orgInfo=cutFullName(testName,1);
this.orgInfo=cutFullName(this.userInfo.departFullName,1); this.orgInfo=cutFullName(this.userInfo.departFullName,1);
this.loadUserStat(); this.loadUserStat();
this.$bus.$on('u-Currency',(num)=>{
this.statData.uvalue = num;
})
}, },
methods:{ methods:{

View File

@@ -541,6 +541,7 @@
apiStat.getUserStatTotalInfo(this.userInfo.aid).then(res => { apiStat.getUserStatTotalInfo(this.userInfo.aid).then(res => {
if (res.status == 200) { if (res.status == 200) {
this.uinfo.uCurrency = res.result.uvalue; this.uinfo.uCurrency = res.result.uvalue;
this.$bus.$emit('u-Currency',res.result.uvalue)
} }
}); });
}, },