Explorar o código

课程时长调整

wangxy hai 2 meses
pai
achega
2527b2fd12
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      pages/client/Kecheng/study.vue

+ 3 - 3
pages/client/Kecheng/study.vue

@@ -13,7 +13,7 @@
 			<view>{{zyName}} {{zyLevelName}}</view>
 		</view>
 		<view class="kc-info-box">
-			<view>时长:{{period}}分钟</view>
+			<view>时长:{{period}}</view>
 			<view>{{userCount}}人学习</view>
 		</view>
 		<!-- 大纲 -->
@@ -39,7 +39,7 @@
 		useUserCache
 	} from "@/utils/userCache.js"
 	import {
-		formatDuration
+		formatSecondsToCnhms
 	} from "@/utils/common.js"
 	import {
 		useKechengTools
@@ -257,7 +257,7 @@
 						zyLevelName,
 					} = res.data;
 					this.userCount = userCount;
-					this.period = formatDuration(period);
+					this.period = formatSecondsToCnhms(period,true);
 					this.name = name;
 					this.zyName = zyName;
 					this.zyLevelName = zyLevelName;