设置固定的高度会有影响,我想动态获取屏幕的高度查了文档是没有的,不知道有什么解决办法

今天回复我了吗
- 发布:2019-01-14 15:28
- 更新:2019-09-17 10:46
- 阅读:16821

x***@126.com - web前端开发 Q:282310962
uniapp自定义导航,支持传入图片/文字
https://www.cnblogs.com/xiaoyan2017/p/11531238.html
onLaunch: function() {
uni.getSystemInfo({
success:function(e){
Vue.prototype.statusBar = e.statusBarHeight
// #ifndef MP
if(e.platform == 'android') {
Vue.prototype.customBar = e.statusBarHeight + 50
}else {
Vue.prototype.customBar = e.statusBarHeight + 45
}
// #endif
// #ifdef MP-WEIXIN
let custom = wx.getMenuButtonBoundingClientRect()
Vue.prototype.customBar = custom.bottom + custom.top - e.statusBarHeight
// #endif
// #ifdef MP-ALIPAY
Vue.prototype.customBar = e.statusBarHeight + e.titleBarHeight
// #endif
}
})
},
4***@qq.com
一点暖用没有
2020-02-14 20:55