16 lines
279 B
JavaScript
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
|
|
}
|
|
}) |