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= [];