mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-25 23:49:33 +08:00
登录页面和我的页面初步
This commit is contained in:
@@ -50,3 +50,13 @@ export function changeAppUrl(str: string) {
|
||||
return str + "/";
|
||||
}
|
||||
}
|
||||
|
||||
export function studyTimeFormat(dateStr: number) {
|
||||
var d = moment.duration(dateStr / 1000, "seconds");
|
||||
let value = [];
|
||||
value.push(Math.floor(d.asDays()));
|
||||
value.push(d.hours());
|
||||
value.push(d.minutes());
|
||||
value.push(d.seconds());
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user