|
@@ -96,6 +96,12 @@ export const flatMenuListGet = (menuList: any) => {
|
|
|
* @param time
|
|
|
*/
|
|
|
export const getFormatDuration = (time: number) => {
|
|
|
+
|
|
|
+ let h = parseInt(time / 60).toString().padStart(2,'0')
|
|
|
+ let m = parseInt(time % 60).toString().padStart(2,'0')
|
|
|
+ console.log('时间',time,h,m)
|
|
|
+ return (h == '00' ?'':h+'小时') + (m < 0 ?m.substring(1,3) +'分':m+'分')
|
|
|
+
|
|
|
let hour = 0
|
|
|
let minute = 0
|
|
|
let result = ''
|