From c2345f16a039ae3d348875dac2818f1b513cadab Mon Sep 17 00:00:00 2001 From: hurui Date: Fri, 2 Aug 2019 13:41:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=97=A8=E5=BA=97][=E4=BF=AE=E6=94=B9][?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E9=AB=98=E5=BA=A6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/searchbar/index.js | 6 +++--- pages/index/searchbar/index.wxml | 2 +- pages/index/searchbar/index.wxss | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) 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; }