2020-02-14 23:10:24 +08:00

16 lines
279 B
JavaScript

//app.js
App({
onLaunch: function () {
wx.getSystemInfo({
success: res => {
//导航高度
this.globalData.navHeight = res.statusBarHeight + 46;
}, fail(err) {
console.log(err);
}
})
},
globalData: {
navHeight: 0
}
})