From d0c74dc3a3977d2ee29e466d84c9385deff0d7c8 Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Fri, 30 Sep 2022 17:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BB=8F=E9=AA=8C=E5=80=BC?= =?UTF-8?q?=E4=B8=BA0=E6=97=B6=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E6=9D=A1=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ucurrency/Index.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/views/ucurrency/Index.vue b/src/views/ucurrency/Index.vue index 40d3101e..88bd7847 100644 --- a/src/views/ucurrency/Index.vue +++ b/src/views/ucurrency/Index.vue @@ -261,19 +261,14 @@ sex: null } this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]) + if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;} + if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;} + if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;} this.currentUserRankingData = res.result.currentUserRankingData; - if(res.result.currentUserRankingData.total) { - this.current = this.experienceValue(res.result.currentUserRankingData.total); - } - if(res.result.currentUserRankingData.weeks) { - this.current = this.experienceValue(res.result.currentUserRankingData.weeks); - } - if(res.result.currentUserRankingData.months) { - this.current = this.experienceValue(res.result.currentUserRankingData.months); - } - if(res.result.currentUserRankingData.years) { - this.current = this.experienceValue(res.result.currentUserRankingData.years); - } + if(res.result.currentUserRankingData.total>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.total);} + if(res.result.currentUserRankingData.weeks>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.weeks);} + if(res.result.currentUserRankingData.months>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.months);} + if(res.result.currentUserRankingData.years>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.years);} } const ids= [];