uniapp 中获取微信小程序的原生导航栏高度

const custom = wx.getMenuButtonBoundingClientRect()
// console.log(custom)
that.yuansheng= custom.height + (custom.top - uni.getSystemInfoSync().statusBarHeight) * 2  //原生导航栏高度

posted on 2022-08-26 11:13  Just丶随心  阅读(501)  评论(0)    收藏  举报

导航