// 计算胶囊高度 单位为px
getSystemInfo(){
let height = ''
wx.getSystemInfo({
success:(res)=>{
let titleBarHeight = 48
if(res.platform == 'ios'){
titleBarHeight = 44
}
height = res.statusBarHeight + (titleBarHeight - 32)/2
}
})
return height
}
// 计算胶囊高度 单位为px
getSystemInfo(){
let height = ''
wx.getSystemInfo({
success:(res)=>{
let titleBarHeight = 48
if(res.platform == 'ios'){
titleBarHeight = 44
}
height = res.statusBarHeight + (titleBarHeight - 32)/2
}
})
return height
}