<view
class="search-container"
:style="{ top: statusHeight + 'px', height: navHeight + 'px' }"
>
</view>
const res = wx.getMenuButtonBoundingClientRect()
const statusHeight = res.top //胶囊距离顶部
const navHeight = res.height //胶囊高度
this.statusHeight = statusHeight
this.navHeight = navHeight