mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 23:36:44 +08:00
解决经验值为0时无法显示进度条的问题。
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<div class="exp-bar">
|
||||
<h6> {{current.total}}/{{current.endValue}}</h6>
|
||||
<div class="exp-barbox" v-if="current.percentage">
|
||||
<div class="exp-barbox">
|
||||
<el-progress :percentage="current.percentage" color="#387DF7"></el-progress>
|
||||
<!-- <div class="exp-bar-cont"></div> -->
|
||||
</div>
|
||||
@@ -261,9 +261,7 @@
|
||||
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>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.total);}
|
||||
if(res.result.currentUserRankingData.weeks>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.weeks);}
|
||||
|
||||
Reference in New Issue
Block a user