2025-05-28 16:22:03 +08:00
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../vendor.js");
|
|
|
|
const pxToRpx = (pxValue, screenWidth) => {
|
|
|
|
common_vendor.index.__f__("log", "at common/js/util.js:66", "转换Px", pxValue, "屏幕宽度", screenWidth);
|
|
|
|
const rpx = 750 / screenWidth * Number(pxValue);
|
|
|
|
return Math.floor(rpx);
|
|
|
|
};
|
2025-06-19 17:02:46 +08:00
|
|
|
const currentDate = () => {
|
|
|
|
const now = /* @__PURE__ */ new Date();
|
|
|
|
const year = now.getFullYear();
|
|
|
|
const month = String(now.getMonth() + 1).padStart(2, "0");
|
|
|
|
const day = String(now.getDate()).padStart(2, "0");
|
|
|
|
return `${year}-${month}-${day}`;
|
|
|
|
};
|
|
|
|
exports.currentDate = currentDate;
|
2025-05-28 16:22:03 +08:00
|
|
|
exports.pxToRpx = pxToRpx;
|
|
|
|
//# sourceMappingURL=../../../.sourcemap/mp-baidu/common/js/util.js.map
|