@@ -145,11 +145,17 @@ Page({
// 获取系统信息
wx.getSystemInfo({
success: function(res) {
-
- that.setData({
- winWidth: res.windowWidth,
- winHeight: res.windowHeight
- });
+ let navHeight,
+ isiOS = res.system.indexOf('iOS') > -1
+ if(isiOS){
+ navHeight=44
+ }else{
+ navHeight=48
+ }
+ that.setData({
+ winWidth: res.windowWidth,
+ winHeight: res.windowHeight - res.statusBarHeight - navHeight
+ });
}
});
},
@@ -137,10 +137,16 @@ Page({
that.setData({
winWidth: res.windowWidth,