mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 22:06:43 +08:00
将学习时长的结果转换成小时显示。
This commit is contained in:
@@ -125,7 +125,7 @@
|
|||||||
我的排名 : <span> {{learningDurationTotalData.rankNo}}</span>
|
我的排名 : <span> {{learningDurationTotalData.rankNo}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="myexperience">
|
<div class="myexperience">
|
||||||
我的学习时长: <span> {{learningDurationTotalData.rankValue}}</span> h
|
我的学习时长: <span> {{formatSecondToHour(learningDurationTotalData.rankValue)}}</span> h
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="exp-table" style="margin-top:20px;height:600px;overflow-y:auto">
|
<div class="exp-table" style="margin-top:20px;height:600px;overflow-y:auto">
|
||||||
@@ -151,10 +151,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="jy tab-jy">
|
<div class="jy tab-jy">
|
||||||
<div v-if="learningDuration.field == 'total'" style="font-size: 18px;color: #333333;font-weight: 600;">{{lan.total}}</div>
|
<div v-if="learningDuration.field == 'total'" style="font-size: 18px;color: #333333;font-weight: 600;">{{formatSecondToHour(lan.total)}}</div>
|
||||||
<div v-if="learningDuration.field == 'months'" style="font-size: 18px;color: #333333;font-weight: 600;">{{lan.months}}</div>
|
<div v-if="learningDuration.field == 'months'" style="font-size: 18px;color: #333333;font-weight: 600;">{{formatSecondToHour(lan.months)}}</div>
|
||||||
<div v-if="learningDuration.field == 'years'" style="font-size: 18px;color: #333333;font-weight: 600;">{{lan.years}}</div>
|
<div v-if="learningDuration.field == 'years'" style="font-size: 18px;color: #333333;font-weight: 600;">{{formatSecondToHour(lan.years)}}</div>
|
||||||
<div v-if="learningDuration.field == 'weeks'" style="font-size: 18px;color: #333333;font-weight: 600;">{{lan.weeks}}</div>
|
<div v-if="learningDuration.field == 'weeks'" style="font-size: 18px;color: #333333;font-weight: 600;">{{formatSecondToHour(lan.weeks)}}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -275,7 +275,7 @@
|
|||||||
import apiStat from '@/api/phase2/stat.js';
|
import apiStat from '@/api/phase2/stat.js';
|
||||||
import { mapGetters } from 'vuex';
|
import { mapGetters } from 'vuex';
|
||||||
import authorImg from '@/components/Portal/authorImg.vue';
|
import authorImg from '@/components/Portal/authorImg.vue';
|
||||||
import {translate,experienceValue} from "@/utils/tools.js";
|
import {translate,experienceValue,formatSecondToHour} from "@/utils/tools.js";
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
@@ -292,6 +292,7 @@ export default {
|
|||||||
endValue:0 // 累计经验值进度条最大值
|
endValue:0 // 累计经验值进度条最大值
|
||||||
},
|
},
|
||||||
translate,
|
translate,
|
||||||
|
formatSecondToHour:formatSecondToHour,
|
||||||
experience:{
|
experience:{
|
||||||
field:'total',
|
field:'total',
|
||||||
name:'累计',
|
name:'累计',
|
||||||
|
|||||||
Reference in New Issue
Block a user