From 442d41f3669470d02157c64d4d4f409c7f034d8c Mon Sep 17 00:00:00 2001 From: weinan2087 Date: Tue, 18 Oct 2022 17:47:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=AD=A6=E4=B9=A0=E6=97=B6=E9=95=BF?= =?UTF-8?q?=E7=9A=84=E7=BB=93=E6=9E=9C=E8=BD=AC=E6=8D=A2=E6=88=90=E5=B0=8F?= =?UTF-8?q?=E6=97=B6=E6=98=BE=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/ranking.vue | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/views/user/ranking.vue b/src/views/user/ranking.vue index a7cd71f1..5820126b 100644 --- a/src/views/user/ranking.vue +++ b/src/views/user/ranking.vue @@ -125,7 +125,7 @@ 我的排名 : {{learningDurationTotalData.rankNo}}
- 我的学习时长: {{learningDurationTotalData.rankValue}} h + 我的学习时长: {{formatSecondToHour(learningDurationTotalData.rankValue)}} h
@@ -151,10 +151,10 @@
-
{{lan.total}}
-
{{lan.months}}
-
{{lan.years}}
-
{{lan.weeks}}
+
{{formatSecondToHour(lan.total)}}
+
{{formatSecondToHour(lan.months)}}
+
{{formatSecondToHour(lan.years)}}
+
{{formatSecondToHour(lan.weeks)}}
@@ -275,7 +275,7 @@ import apiStat from '@/api/phase2/stat.js'; import { mapGetters } from 'vuex'; import authorImg from '@/components/Portal/authorImg.vue'; - import {translate,experienceValue} from "@/utils/tools.js"; + import {translate,experienceValue,formatSecondToHour} from "@/utils/tools.js"; export default { computed: { ...mapGetters(['userInfo']), @@ -292,6 +292,7 @@ export default { endValue:0 // 累计经验值进度条最大值 }, translate, + formatSecondToHour:formatSecondToHour, experience:{ field:'total', name:'累计',