fitConfig.js 271 B

123456789101112
  1. let systemInfo = wx.getSystemInfoSync();
  2. var { pixelRatio, windowWidth, windowHeight } = systemInfo
  3. var pixelRatioX = 720 / windowWidth,
  4. pixelRatioY = 1230 / windowHeight;
  5. export {
  6. windowWidth,
  7. windowHeight,
  8. pixelRatioX,
  9. pixelRatioY,
  10. pixelRatio
  11. }