积分竞拍,市场管理

This commit is contained in:
2023-03-17 16:47:30 +08:00
parent f560a8a431
commit 31bd50111e
9 changed files with 258 additions and 24 deletions

View File

@@ -110,6 +110,18 @@ const custom = {
// console.log(date)
return date
},
timestampToDate2(stamp) { // 时间戳转日期 精确到秒
var time = new Date(stamp);
var y = time.getFullYear();
var m = time.getMonth()+1;
var d = time.getDate();
var h = time.getHours();
var min = time.getMinutes();
var s = time.getSeconds();
const date = `${y}-${m}-${d} ${h}:${min}:${s}`
// console.log(date)
return date
},
getSTdPerson(num) {
const flag = 10000
if(num<flag) {