From ed3b0870cdfa52426b0d4868b7d6fea19fba698c Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Tue, 18 Oct 2022 14:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=BB=8F=E9=AA=8C=E5=80=BC=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E6=A6=9C=E5=AF=B9=E5=BA=94=E7=9A=84"=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=8E=92=E5=90=8D"=E3=80=81"=E6=88=91=E7=9A=84?= =?UTF-8?q?=E7=BB=8F=E9=AA=8C=E5=80=BC"=E6=95=B0=E5=AD=97=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E5=9B=BA=E5=AE=9A=E5=B1=95=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ucurrency/Index.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index e3a9af00..d65e605b 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -51,11 +51,11 @@
- 我的排名 : {{currentUserRankingData.rankingNo}} + 我的排名 : {{currentUserRankingTotalData.rankNo}}
我的经验值 : - {{currentUserRankingData.total || currentUserRankingData.months || currentUserRankingData.years || currentUserRankingData.weeks}} + {{currentUserRankingTotalData.rankValue}}
@@ -283,7 +283,11 @@ ], uCoinRecord: [], chart: null, - currentUserRankingData: {}, + currentUserRankingData: {}, + currentUserRankingTotalData:{ + rankNo:0, // 经验值累计排名 + rankValue:0 // 经验值累计 + }, rankingData: [], uinfo: { uCurrency: 0 // 用户累计U币 @@ -321,7 +325,11 @@ } this.getUserData([res.result.currentUserRankingData.aid], [res.result.currentUserRankingData]) this.currentUserRankingData = res.result.currentUserRankingData; - if(this.cycle == 'total'){this.current = this.experienceValue(res.result.currentUserRankingData.total);} + if(this.cycle == 'total'){ + this.current = this.experienceValue(res.result.currentUserRankingData.total); + this.currentUserRankingTotalData.rankNo = res.result.currentUserRankingData.rankingNo; + this.currentUserRankingTotalData.rankValue = res.result.currentUserRankingData.total; + } if(this.cycle == 'weeks'){this.current = this.experienceValue(res.result.currentUserRankingData.weeks);} if(this.cycle == 'months'){this.current = this.experienceValue(res.result.currentUserRankingData.months);} if(this.cycle == 'years'){this.current = this.experienceValue(res.result.currentUserRankingData.years);}