From 4353ec9367883b9edc4c7d12ee15fe9a65e5e3c5 Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 1 Nov 2022 00:11:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8B=8B=E7=AB=A0=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UcHeader/Index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/UcHeader/Index.vue b/src/components/UcHeader/Index.vue index ee9dabcf..8a9b63b1 100644 --- a/src/components/UcHeader/Index.vue +++ b/src/components/UcHeader/Index.vue @@ -124,6 +124,7 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; }, methods:{ loadUserStat(){//获取经验值和等级 + let $this=this; apiStart.getUserStatTotalInfo(this.userInfo.aid).then(res=>{ if(res.status == 200) { this.statData.evalue = res.result.evalue; @@ -133,7 +134,12 @@ import {userAvatarText,cutFullName} from "@/utils/tools.js"; this.statData.monthStudyDays = res.result.monthStudyDays; this.statData.totalStudyDays = res.result.totalStudyDays; this.statData.uvalue = res.result.uvalue; - this.medalList=res.result.medalList; + $this.medalList=[]; + res.result.medalList.forEach(aa=>{ + if(aa.medalId!=5){ + $this.medalList.push(aa); + } + }) } }); },