From af3a59868f9bb124a11438a684c38eea394cc059 Mon Sep 17 00:00:00 2001
From: meo <18801474720@163.com>
Date: Thu, 4 Jul 2019 14:41:35 +0800
Subject: [PATCH] =?UTF-8?q?[=E9=97=A8=E5=BA=97][=E4=BF=AE=E6=94=B9]:[?=
=?UTF-8?q?=E9=97=A8=E5=BA=97=E9=A1=B5=E9=9D=A2=E7=9A=84=E4=BF=AE=E6=94=B9?=
=?UTF-8?q?]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/index/searchbar/index.js | 17 +++++++++++------
pages/index/searchbar/index.wxml | 2 +-
pages/index/searchbar/index.wxss | 4 ++--
3 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/pages/index/searchbar/index.js b/pages/index/searchbar/index.js
index 222c263..d48f748 100644
--- a/pages/index/searchbar/index.js
+++ b/pages/index/searchbar/index.js
@@ -12,6 +12,7 @@ Page({
merchantVoList:[],
indexId: 0,
businessId:0,
+ windowHeight:"",
page:1,
isFirstPage:false,
isLastPage:false,
@@ -42,16 +43,20 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
+ let that = this;
+ that.getBussiness();
+ that.getList(1, 0);
+ },
+ onShow(){
let that = this;
wx.getSystemInfo({
success: function (res) {
+ console.log(res.windowHeight);
that.setData({
- winHeight: res.windowHeight
- });
- }
- });
- that.getBussiness();
- that.getList(1, 0);
+ windowHeight: res.windowHeight
+ })
+ },
+ })
},
getBussiness:function(){
let that = this;
diff --git a/pages/index/searchbar/index.wxml b/pages/index/searchbar/index.wxml
index 9570145..889670d 100644
--- a/pages/index/searchbar/index.wxml
+++ b/pages/index/searchbar/index.wxml
@@ -1,7 +1,7 @@
-
+
diff --git a/pages/index/searchbar/index.wxss b/pages/index/searchbar/index.wxss
index df8dda7..0190fe8 100644
--- a/pages/index/searchbar/index.wxss
+++ b/pages/index/searchbar/index.wxss
@@ -6,6 +6,7 @@
position: fixed;
left: 0;
top: 0;
+ background:#F4F5F9;
}
.text-style {
@@ -356,8 +357,7 @@ page {
margin-top: 200rpx!important;
}
.all{
- padding-bottom: 80rpx;
- background: #F4F5F9;
+ /* background: #F4F5F9; */
}
.shopVoList{
display: flex!important;