1.获取设备信息
await uni.getSystemInfo();
2.获取手机状态栏的高度
systemInfo.statusBarHeight
3.获取小程序胶囊信息
uni.getMenuButtonBoundingClientRect()
4.根据手机状态栏的高度与小程序胶囊信息对自定义导航栏告诉进行动态设置
1.获取设备信息
await uni.getSystemInfo();
2.获取手机状态栏的高度
systemInfo.statusBarHeight
3.获取小程序胶囊信息
uni.getMenuButtonBoundingClientRect()
4.根据手机状态栏的高度与小程序胶囊信息对自定义导航栏告诉进行动态设置