v2.0.7
This commit is contained in:
Weilanwl
2019-02-25 23:40:33 +08:00
parent e2e35a2d72
commit d59a310071
14 changed files with 270 additions and 180 deletions
+3 -1
View File
@@ -36,7 +36,9 @@ App({
wx.getSystemInfo({
success: e => {
this.globalData.StatusBar = e.statusBarHeight;
this.globalData.CustomBar = e.platform == 'android' ? e.statusBarHeight + 50 : e.statusBarHeight + 45;
let custom = wx.getMenuButtonBoundingClientRect();
this.globalData.Custom = custom;
this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
}
})
},