From c5e54f0170d3dd118b5fb03d0b8692176a27aa66 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Thu, 3 Apr 2025 16:17:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/ranking.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/user/ranking.vue b/src/views/user/ranking.vue index b517cce3..5c12ee5a 100644 --- a/src/views/user/ranking.vue +++ b/src/views/user/ranking.vue @@ -409,7 +409,7 @@ export default { this.currentUserRankingTotalData.endValue = this.current.endValue; } } - this.current.total=res.result.currentUserRankingData.total;//当前用户的经验值是固定的 + this.current.total=res.result.currentUserRankingData.total ? res.result.currentUserRankingData.years : res.result.currentUserRankingData.total;//当前用户的经验值是固定的 const ids= []; res.result.rankingData.forEach(item=>{ ids.push(item.aid) @@ -469,9 +469,11 @@ export default { } this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]) this.learningDuration.data = res.result.currentUserRankingData; + this.learningDurationTotalData.rankNo = res.result.currentUserRankingData.rankingNo; if(data.field == 'total'){ - this.learningDurationTotalData.rankNo = res.result.currentUserRankingData.rankingNo; this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.total; + } else if(data.field == 'years'){ + this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.years; } }