feat:初始提交uni-app项目

This commit is contained in:
2026-01-14 18:19:33 +08:00
commit 0dcbd340e6
515 changed files with 38560 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
"use strict";
require("../common/vendor.js");
function compareTimestamp(timestamp) {
const currentTime = (/* @__PURE__ */ new Date()).getTime();
const timeDiff = currentTime - timestamp;
if (timeDiff < 6e4) {
return "1分钟内";
} else if (timeDiff < 36e5) {
return Math.floor(timeDiff / 6e4) + "分钟";
} else if (timeDiff < 864e5) {
return Math.floor(timeDiff / 36e5) + "小时";
} else if (timeDiff < 2592e6) {
return Math.floor(timeDiff / 864e5) + "天";
} else if (timeDiff < 7776e6) {
return Math.floor(timeDiff / 2592e6) + "月";
} else {
return null;
}
}
exports.compareTimestamp = compareTimestamp;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/common.js.map