小程序获取状态栏高度
uni.getSystemInfo({ success: e => { console.log('获取小程序状态栏高度',e.statusBarHeight) } });
导航胶囊
let rect = wx.getMenuButtonBoundingClientRect(); console.log(rect)