登录页面和我的页面初步

This commit is contained in:
禺狨
2023-06-25 16:29:59 +08:00
parent 5486507b3e
commit b6b9c3514a
5 changed files with 370 additions and 11 deletions

View File

@@ -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;
}