diff --git a/src/views/user/ranking.vue b/src/views/user/ranking.vue index 3df9faef..42cb0630 100644 --- a/src/views/user/ranking.vue +++ b/src/views/user/ranking.vue @@ -206,7 +206,7 @@ 累计 - 当前 + @@ -429,14 +429,14 @@ export default { getDuration() {//学习时长 let data = { aid:this.userInfo.aid,// #用户id - statType:10, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数 + statType:12, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数 field:this.learningDuration.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计 num:5,// #显示的条数 } if(data.field == 'now'){ - data.statType = 12 + data.statType = 10 data.field = 'total' - this.experience.field = 'total' + this.learningDuration.field = 'total' this.isStudyTime = true } apiStat.getRanking(data).then(res=>{ @@ -485,7 +485,7 @@ export default { if(data.field == 'now'){ data.statType = 13 data.field = 'total' - this.experience.field = 'total' + this.learningDays.field = 'total' this.isStudyDay = true } apiStat.getRanking(data).then(res=>{