mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
修改经验值排行进度条榜显示
This commit is contained in:
@@ -57,10 +57,13 @@
|
||||
<span>{{currentUserRankingData.total || currentUserRankingData.months || currentUserRankingData.years || currentUserRankingData.weeks}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exp-bar">
|
||||
<h6> {{currentUserRankingData.total}}/{{current.endValue}}</h6>
|
||||
<div class="exp-bar">
|
||||
<h6> {{currentUserRankingData.total || currentUserRankingData.months || currentUserRankingData.years || currentUserRankingData.weeks}}/{{current.endValue}}</h6>
|
||||
<div class="exp-barbox">
|
||||
<el-progress v-if="current.percentage" :percentage="current.percentage*100/current.endValue" color="#387DF7"></el-progress>
|
||||
<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> -->
|
||||
</div>
|
||||
<div class="exp-barname">
|
||||
@@ -308,7 +311,10 @@
|
||||
avatar: "",
|
||||
sex: null
|
||||
}
|
||||
this.getUserData([res.result.currentUserRankingData.aid], [res.result.currentUserRankingData])
|
||||
this.getUserData([res.result.currentUserRankingData.aid], [res.result.currentUserRankingData])
|
||||
if (res.result.currentUserRankingData.total == undefined) {
|
||||
res.result.currentUserRankingData.total = 0;
|
||||
}
|
||||
if (res.result.currentUserRankingData.weeks == undefined) {
|
||||
res.result.currentUserRankingData.weeks = 0;
|
||||
}
|
||||
@@ -318,16 +324,34 @@
|
||||
if (res.result.currentUserRankingData.years == undefined) {
|
||||
res.result.currentUserRankingData.years = 0;
|
||||
}
|
||||
this.currentUserRankingData = res.result.currentUserRankingData; console.log()
|
||||
if (res.result.currentUserRankingData.total >= 0) {
|
||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||
} else if (res.result.currentUserRankingData.weeks >= 0) {
|
||||
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
||||
} else if (res.result.currentUserRankingData.months >= 0) {
|
||||
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
||||
} else if (res.result.currentUserRankingData.years >= 0) {
|
||||
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
||||
}
|
||||
this.currentUserRankingData = res.result.currentUserRankingData;
|
||||
// if (res.result.currentUserRankingData.total >= 0) {
|
||||
// console.log("11");
|
||||
// this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||
// } else if (res.result.currentUserRankingData.weeks >= 0) {
|
||||
// console.log("22");
|
||||
// this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
||||
// } else if (res.result.currentUserRankingData.months >= 0) {
|
||||
// console.log("33");
|
||||
// this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
||||
// } else if (res.result.currentUserRankingData.years >= 0) {
|
||||
// console.log("44");
|
||||
// this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
||||
// }
|
||||
if(this.cycle == 'total'){
|
||||
this.current = this.experienceValue(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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const ids = [];
|
||||
|
||||
Reference in New Issue
Block a user