system.js 516 B

1234567891011
  1. "use strict";
  2. const common_vendor = require("../common/vendor.js");
  3. const getNavTop = () => {
  4. let windowWidth = common_vendor.wx$1.getSystemInfoSync().windowWidth;
  5. const statusBarHeight = common_vendor.wx$1.getSystemInfoSync().statusBarHeight;
  6. const menuButton = common_vendor.wx$1.getMenuButtonBoundingClientRect();
  7. (menuButton.height + (menuButton.top - statusBarHeight) * 2) * (750 / windowWidth);
  8. const navTop = statusBarHeight * (750 / windowWidth);
  9. return navTop;
  10. };
  11. exports.getNavTop = getNavTop;