let res = wx.getSystemInfoSync()
// 判断是否是安卓操作系统 (标题栏苹果为44px,安卓为48px)
let titleH;
if(res && res['system']){
if(res['system'].indexOf('Android')>0){
titleH = 48
}else{
titleH = 44
}
this.globalData.navHeight = titleH + res['statusBarHeight']
}
网友评论