@@ -212,6 +212,7 @@ module.exports = | |||||
multiArray: [ | multiArray: [ | ||||
[],[] | [],[] | ||||
], | ], | ||||
searchText:"请输入", | |||||
multiIndex:0, | multiIndex:0, | ||||
buildingFloor: [], | buildingFloor: [], | ||||
building: null, | building: null, | ||||
@@ -269,6 +270,10 @@ module.exports = | |||||
floor: this.data.multiArray[1][e.detail.value[1]], | floor: this.data.multiArray[1][e.detail.value[1]], | ||||
}) | }) | ||||
this.getList(this.data.building.id, this.data.floor.id,1); | this.getList(this.data.building.id, this.data.floor.id,1); | ||||
this.setData({ | |||||
searchText: this.data.building.name + this.data.floor.floorName | |||||
}) | |||||
}, | }, | ||||
//获取楼层楼座 | //获取楼层楼座 | ||||
getbuildingfloorlist() { | getbuildingfloorlist() { | ||||
@@ -308,8 +313,8 @@ module.exports = | |||||
let data = { | let data = { | ||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: 10, | pageSize: 10, | ||||
building: building, | |||||
floor: floor, | |||||
building: building ? building:null, | |||||
floor: floor ? floor:null, | |||||
}; | }; | ||||
Http.get({ | Http.get({ | ||||
url: config.api.merchantList, | url: config.api.merchantList, | ||||
@@ -360,6 +365,10 @@ module.exports = | |||||
this.setData({ | this.setData({ | ||||
searchState: false | searchState: false | ||||
}); | }); | ||||
this.setData({ | |||||
searchText:"请输入", | |||||
merchantVoList:[] | |||||
}) | |||||
}, | }, | ||||
inputChange: function inputChange(e) { | inputChange: function inputChange(e) { | ||||
var _this = this; | var _this = this; | ||||
@@ -3,13 +3,13 @@ | |||||
<view class="weui-search-bar__form"> | <view class="weui-search-bar__form"> | ||||
<view class="weui-search-bar__box" style="position:relative;"> | <view class="weui-search-bar__box" style="position:relative;"> | ||||
<icon class="weui-icon-search_in-box" type="search" size="12"></icon> | <icon class="weui-icon-search_in-box" type="search" size="12"></icon> | ||||
<input type="text" class="weui-search-bar__input" placeholder="{{placeholder}}" value="{{value}}" bindfocus="inputFocus" bindinput="inputChange" disabled /> | |||||
<input type="text" class="weui-search-bar__input" placeholder="{{searchText}}" value="{{value}}" bindfocus="inputFocus" bindinput="inputChange" disabled /> | |||||
<picker class="pickers" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" value="{{multiIndex}}" range="{{multiArray}}" range-key="name"> | <picker class="pickers" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange" value="{{multiIndex}}" range="{{multiArray}}" range-key="name"> | ||||
<view class="picker"> | <view class="picker"> | ||||
搜索搜索搜索搜索搜索搜索搜索搜索搜索搜索 | 搜索搜索搜索搜索搜索搜索搜索搜索搜索搜索 | ||||
</view> | </view> | ||||
</picker> | </picker> | ||||
<view class="weui-icon-clear" wx:if="{{value.length > 0}}" bindtap="clearInput" style="z-index:500000;"> | |||||
<view class="weui-icon-clear" wx:if="{{value.length > 0}}" bindtap="clearInput" style="position:relative;z-index:500000;"> | |||||
<icon type="clear" size="12"></icon> | <icon type="clear" size="12"></icon> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -80,4 +80,9 @@ | |||||
width: 120rpx; | width: 120rpx; | ||||
height: 120rpx; | height: 120rpx; | ||||
border-radius: 16rpx; | border-radius: 16rpx; | ||||
} | |||||
.position{ | |||||
text-align: center; | |||||
margin-top: 100rpx; | |||||
color: #999; | |||||
} | } |