自定义导航栏高度?
wx.getMenuButtonBoundingClientRect()
基础库 2.11.0
表现
ios 模拟器iPhone 6/7/8
不自定义
!!安卓表现正常 三星s10
计算方式
let boundRect = wx.getMenuButtonBoundingClientRect()
let navHeight = res.statusBarHeight + boundRect.height + (boundRect.top - res.statusBarHeight) * 2
ios 胶囊上下各少2px