From 5f01f9a4cf105a3b1ef6ce38eeb4a18b7c9374a8 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Tue, 22 Nov 2022 18:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HomePage/homePage.vue | 2 ++ src/components/UcHeader/Index.vue | 3 +++ src/views/ucurrency/Index.vue | 1 + 3 files changed, 6 insertions(+) diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index 1ec6e332..62e2e476 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -119,6 +119,7 @@ } }, mounted() { + this.pageId = this.$xpage.getHomeId(this.$route); this.sex = this.userInfo.sex; // 判断路由是进入的学员默认页面就重置setCurIdentity @@ -131,6 +132,7 @@ if(this.pageId !== this.userInfo.aid) { this.followHas(); } + }, methods:{ cancelFollow() { diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index 8be154a1..dce50813 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -128,6 +128,9 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; //this.orgInfo=cutFullName(testName,1); this.orgInfo=cutFullName(this.userInfo.departFullName,1); this.loadUserStat(); + this.$bus.$on('u-Currency',(num)=>{ + this.statData.uvalue = num; + }) }, methods:{ diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index 331626b6..11504ec0 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -541,6 +541,7 @@ apiStat.getUserStatTotalInfo(this.userInfo.aid).then(res => { if (res.status == 200) { this.uinfo.uCurrency = res.result.uvalue; + this.$bus.$emit('u-Currency',res.result.uvalue) } }); },