From c55c6fe280d63b00e0dcb14ed34c7f261803f6ad Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Tue, 8 Oct 2019 13:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BA=A4=E4=BA=92=E3=80=91=E3=80=90?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=91C=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=97=A8=E5=BA=97=E6=8C=89=E6=A5=BC=E5=B1=82=E5=8F=8A=E6=A5=BC?= =?UTF-8?q?=E5=BA=A7=E7=AD=9B=E9=80=89-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/searchbar/searchbar.js | 13 +++++++++++-- pages/searchbar/searchbar.wxml | 4 ++-- pages/searchbar/searchbar.wxss | 5 +++++ 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pages/searchbar/searchbar.js b/pages/searchbar/searchbar.js index ad61b6f..943ea4e 100644 --- a/pages/searchbar/searchbar.js +++ b/pages/searchbar/searchbar.js @@ -212,6 +212,7 @@ module.exports = multiArray: [ [],[] ], + searchText:"请输入", multiIndex:0, buildingFloor: [], building: null, @@ -269,6 +270,10 @@ module.exports = floor: this.data.multiArray[1][e.detail.value[1]], }) this.getList(this.data.building.id, this.data.floor.id,1); + + this.setData({ + searchText: this.data.building.name + this.data.floor.floorName + }) }, //获取楼层楼座 getbuildingfloorlist() { @@ -308,8 +313,8 @@ module.exports = let data = { pageNum: 1, pageSize: 10, - building: building, - floor: floor, + building: building ? building:null, + floor: floor ? floor:null, }; Http.get({ url: config.api.merchantList, @@ -360,6 +365,10 @@ module.exports = this.setData({ searchState: false }); + this.setData({ + searchText:"请输入", + merchantVoList:[] + }) }, inputChange: function inputChange(e) { var _this = this; diff --git a/pages/searchbar/searchbar.wxml b/pages/searchbar/searchbar.wxml index 2149cda..f4dc107 100644 --- a/pages/searchbar/searchbar.wxml +++ b/pages/searchbar/searchbar.wxml @@ -3,13 +3,13 @@ - + 搜索搜索搜索搜索搜索搜索搜索搜索搜索搜索 - + diff --git a/pages/searchbar/searchbar.wxss b/pages/searchbar/searchbar.wxss index 86f59a6..3b092c7 100644 --- a/pages/searchbar/searchbar.wxss +++ b/pages/searchbar/searchbar.wxss @@ -80,4 +80,9 @@ width: 120rpx; height: 120rpx; border-radius: 16rpx; +} +.position{ + text-align: center; + margin-top: 100rpx; + color: #999; } \ No newline at end of file