mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
去除重复判断。
This commit is contained in:
@@ -94,8 +94,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bm tab-bm" style="margin-left:30px;">{{ran.authorInfo.orgInfo}}</div>
|
<div class="bm tab-bm" style="margin-left:30px;">{{ran.authorInfo.orgInfo}}</div>
|
||||||
<div class="jy tab-jy">
|
<div class="jy tab-jy">
|
||||||
<div style="font-size: 18px;color: #333333;font-weight: 600;">{{ran.total}}</div>
|
<div v-if="cycle == 'total'" style="font-size: 18px;color: #333333;font-weight: 600;">{{ran.total}}</div>
|
||||||
|
<div v-if="cycle == 'months'" style="font-size: 18px;color: #333333;font-weight: 600;">{{ran.months}}</div>
|
||||||
|
<div v-if="cycle == 'years'" style="font-size: 18px;color: #333333;font-weight: 600;">{{ran.years}}</div>
|
||||||
|
<div v-if="cycle == 'weeks'" style="font-size: 18px;color: #333333;font-weight: 600;">{{ran.weeks}}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="currentUserRankingData.rankingNo>4" class="omit">
|
<div v-if="currentUserRankingData.rankingNo>4" class="omit">
|
||||||
@@ -115,8 +120,10 @@
|
|||||||
<div class="bm tab-bm" style="margin-left:30px;color: #0059FF;">{{currentUserRankingData.authorInfo.orgInfo}}
|
<div class="bm tab-bm" style="margin-left:30px;color: #0059FF;">{{currentUserRankingData.authorInfo.orgInfo}}
|
||||||
</div>
|
</div>
|
||||||
<div class="jy tab-jy">
|
<div class="jy tab-jy">
|
||||||
<div style="font-size: 18px;color: #333333;font-weight: 600;color: #0059FF;">
|
<div v-if="cycle == 'total'" style="font-size: 18px;color: #333333;font-weight: 600;color: #0059FF;">{{currentUserRankingData.total}}</div>
|
||||||
{{currentUserRankingData.total}}</div>
|
<div v-if="cycle == 'months'" style="font-size: 18px;color: #333333;font-weight: 600;color: #0059FF;">{{currentUserRankingData.months}}</div>
|
||||||
|
<div v-if="cycle == 'years'" style="font-size: 18px;color: #333333;font-weight: 600;color: #0059FF;">{{currentUserRankingData.years}}</div>
|
||||||
|
<div v-if="cycle == 'weeks'" style="font-size: 18px;color: #333333;font-weight: 600;color: #0059FF;">{{currentUserRankingData.weeks}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -312,46 +319,11 @@
|
|||||||
sex: null
|
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;
|
|
||||||
}
|
|
||||||
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;
|
this.currentUserRankingData = res.result.currentUserRankingData;
|
||||||
// if (res.result.currentUserRankingData.total >= 0) {
|
if(this.cycle == 'total'){this.current = this.experienceValue(res.result.currentUserRankingData.total);}
|
||||||
// console.log("11");
|
if(this.cycle == 'weeks'){this.current = this.experienceValue(res.result.currentUserRankingData.weeks);}
|
||||||
// this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
if(this.cycle == 'months'){this.current = this.experienceValue(res.result.currentUserRankingData.months);}
|
||||||
// } else if (res.result.currentUserRankingData.weeks >= 0) {
|
if(this.cycle == 'years'){this.current = this.experienceValue(res.result.currentUserRankingData.years);}
|
||||||
// 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 = [];
|
const ids = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user