export function rpxToPx(unirpx: number): number { if (getApp().globalData.device) { return (unirpx * getApp().globalData.device.windowWidth) / 750; } return unirpx; } export function pxToRpx(px: number): number { if (getApp().globalData.device) { return (750 * px) / getApp().globalData.device.windowWidth; } return px; } export const isDevTool = getApp().globalData.device && getApp().globalData.device.platform === "devtools";