登陆注册页面

This commit is contained in:
李志鹏
2026-02-04 10:01:50 +08:00
parent 734c0129cd
commit 110b1e2219
21 changed files with 990 additions and 16 deletions

View File

@@ -102,6 +102,18 @@ export function FormatDate(value: Date | number | string, format: string = 'yyyy
return str;
}
/**
* 倒计时
* @param time 倒计时时间,单位秒
* @returns 倒计时字符串,格式为 mm:ss
*/
export function CountDown(time: number) {
const mm = String(Math.floor(time / 60)).padStart(2, '0');
const ss = String(time % 60).padStart(2, '0');
return `${mm}:${ss}`;
}
/**
* 下载图片