123456789101112 |
- let systemInfo = wx.getSystemInfoSync();
- var { pixelRatio, windowWidth, windowHeight } = systemInfo
- var pixelRatioX = 720 / windowWidth,
- pixelRatioY = 1130 / windowHeight;
- export {
- windowWidth,
- windowHeight,
- pixelRatioX,
- pixelRatioY,
- pixelRatio
- }
|