mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 13:56:43 +08:00
固定显示我的学习天数排行榜数据(排名、累计数据)
This commit is contained in:
@@ -122,10 +122,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="myselftext">
|
<div class="myselftext">
|
||||||
<div class="myranking">
|
<div class="myranking">
|
||||||
我的排名 : <span> {{learningDuration.data.rankingNo}}</span>
|
我的排名 : <span> {{learningDurationTotalData.rankNo}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="myexperience">
|
<div class="myexperience">
|
||||||
我的学习时长: <span> {{learningDuration.data.total || learningDuration.data.months || learningDuration.data.years || learningDuration.data.weeks}}</span> h
|
我的学习时长: <span> {{learningDurationTotalData.rankValue}}</span> h
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-table" style="margin-top:20px">
|
<div class="exp-table" style="margin-top:20px">
|
||||||
@@ -206,10 +206,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="myselftext">
|
<div class="myselftext">
|
||||||
<div class="myranking">
|
<div class="myranking">
|
||||||
我的排名 : <span> {{learningDays.data.rankingNo}}</span>
|
我的排名 : <span> {{learningDaysTotalData.rankNo}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="myexperience">
|
<div class="myexperience">
|
||||||
我的学习天数 : <span>{{learningDays.data.total || learningDays.data.months || learningDays.data.years || learningDays.data.weeks}}</span>
|
我的学习天数 : <span>{{learningDaysTotalData.rankValue}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-table" style="margin-top:20px">
|
<div class="exp-table" style="margin-top:20px">
|
||||||
@@ -310,6 +310,14 @@ export default {
|
|||||||
},
|
},
|
||||||
list:[],
|
list:[],
|
||||||
},
|
},
|
||||||
|
learningDurationTotalData:{
|
||||||
|
rankNo:0, // 学习时长累计排名
|
||||||
|
rankValue:0 // 累计学习时长
|
||||||
|
},
|
||||||
|
learningDaysTotalData:{
|
||||||
|
rankNo:0, // 学习天数累计排名
|
||||||
|
rankValue:0 // 累计学习天数
|
||||||
|
},
|
||||||
learningDays:{
|
learningDays:{
|
||||||
field:'total',
|
field:'total',
|
||||||
name:'累计',
|
name:'累计',
|
||||||
@@ -408,6 +416,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
this.learningDuration.data = res.result.currentUserRankingData;
|
this.learningDuration.data = res.result.currentUserRankingData;
|
||||||
|
if(data.field == 'total'){
|
||||||
|
this.learningDurationTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
||||||
|
this.learningDurationTotalData.rankValue = res.result.currentUserRankingData.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -427,7 +439,8 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getDays() {//学习天数
|
//学习天数
|
||||||
|
getDays() {
|
||||||
let data = {
|
let data = {
|
||||||
aid:this.userInfo.aid,// #用户id
|
aid:this.userInfo.aid,// #用户id
|
||||||
statType:11, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
statType:11, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
||||||
@@ -446,6 +459,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]);
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData]);
|
||||||
this.learningDays.data = res.result.currentUserRankingData;
|
this.learningDays.data = res.result.currentUserRankingData;
|
||||||
|
if(data.field == 'total'){
|
||||||
|
this.learningDaysTotalData.rankNo = res.result.currentUserRankingData.rankingNo;
|
||||||
|
this.learningDaysTotalData.rankValue = res.result.currentUserRankingData.total;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const ids= [];
|
const ids= [];
|
||||||
|
|||||||
Reference in New Issue
Block a user