mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
固定经验值排行榜进度条按照累计过滤显示。
This commit is contained in:
@@ -54,18 +54,13 @@
|
||||
我的排名 : <span> {{currentUserRankingTotalData.rankNo}}</span>
|
||||
</div>
|
||||
<div class="myexperience">
|
||||
我的经验值 :
|
||||
<span>{{currentUserRankingTotalData.rankValue}}</span>
|
||||
我的经验值 : <span>{{currentUserRankingTotalData.rankValue}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exp-bar">
|
||||
<h6> {{currentUserRankingData.total || currentUserRankingData.months || currentUserRankingData.years || currentUserRankingData.weeks}}/{{current.endValue}}</h6>
|
||||
<h6>{{currentUserRankingTotalData.rankValue}}/{{currentUserRankingTotalData.endValue}}</h6>
|
||||
<div class="exp-barbox">
|
||||
<el-progress :percentage="currentUserRankingData.total*100/current.endValue
|
||||
|| currentUserRankingData.weeks*100/current.endValue
|
||||
|| currentUserRankingData.years*100/current.endValue
|
||||
|| currentUserRankingData.months*100/current.endValue" color="#387DF7"></el-progress>
|
||||
<!-- <div class="exp-bar-cont"></div> -->
|
||||
<el-progress :percentage="currentUserRankingTotalData.rankValue*100/currentUserRankingTotalData.endValue" color="#387DF7"></el-progress>
|
||||
</div>
|
||||
<div class="exp-barname">
|
||||
<span>{{current.start}}</span>
|
||||
@@ -286,7 +281,8 @@
|
||||
currentUserRankingData: {},
|
||||
currentUserRankingTotalData:{
|
||||
rankNo:0, // 经验值累计排名
|
||||
rankValue:0 // 经验值累计
|
||||
rankValue:0 ,// 经验值累计,
|
||||
endValue:0 // 累计经验值进度条最大值
|
||||
},
|
||||
rankingData: [],
|
||||
uinfo: {
|
||||
@@ -329,10 +325,8 @@
|
||||
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);}
|
||||
this.currentUserRankingTotalData.endValue = this.current.endValue;
|
||||
}
|
||||
}
|
||||
|
||||
const ids = [];
|
||||
|
||||
Reference in New Issue
Block a user