diff --git a/pages/index/searchbar/index.js b/pages/index/searchbar/index.js index 4adb657..f3f8c77 100644 --- a/pages/index/searchbar/index.js +++ b/pages/index/searchbar/index.js @@ -1,4 +1,4 @@ -const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' +const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' const Http = require("../../../utils/HttpBasics"); const imgurl = require("../../../utils/imgurl"); const config = require("../../../config/config"); @@ -56,9 +56,9 @@ Page({ let that = this; wx.getSystemInfo({ success: function (res) { - console.log(res.windowHeight); + console.log(res.windowHeight, navigationBarHeight); that.setData({ - windowHeight: res.windowHeight + windowHeight: res.windowHeight + parseInt(navigationBarHeight) }) }, }) diff --git a/pages/index/searchbar/index.wxml b/pages/index/searchbar/index.wxml index 962055b..d635ff4 100644 --- a/pages/index/searchbar/index.wxml +++ b/pages/index/searchbar/index.wxml @@ -3,7 +3,7 @@ - + diff --git a/pages/index/searchbar/index.wxss b/pages/index/searchbar/index.wxss index 79553de..ec2ed37 100644 --- a/pages/index/searchbar/index.wxss +++ b/pages/index/searchbar/index.wxss @@ -5,7 +5,6 @@ width: 134rpx; position: fixed; left: 0; - top: 0; background:#F4F5F9; }