|
@@ -129,7 +129,7 @@ export default class Index extends Component {
|
129
|
129
|
if (selectedList.length === 1 && selectedList[0] === 0) {
|
130
|
130
|
return ''
|
131
|
131
|
}
|
132
|
|
-
|
|
132
|
+
|
133
|
133
|
// 类型
|
134
|
134
|
if (tabIndex === 0) {
|
135
|
135
|
let val = selectedList.map(index => curTabList[index])
|
|
@@ -197,8 +197,7 @@ export default class Index extends Component {
|
197
|
197
|
maxPrice: e.detail.value
|
198
|
198
|
})
|
199
|
199
|
}
|
200
|
|
-
|
201
|
|
- handleChangeKeywords(e) {
|
|
200
|
+ onInputText = e => {
|
202
|
201
|
this.setState({
|
203
|
202
|
keywords: e.detail.value
|
204
|
203
|
})
|
|
@@ -299,7 +298,7 @@ export default class Index extends Component {
|
299
|
298
|
<View className="search-box">
|
300
|
299
|
<View className="search">
|
301
|
300
|
<Text className="search-icon icon-sousuo iconfont"></Text>
|
302
|
|
- <Input className="search-input" type="text" focus confirm-type="搜索" onConfirm={this.handleFilter} value={keywords} onChange={this.handleChangeKeywords} placeholder="请输入你想查询的楼盘"></Input>
|
|
301
|
+ <Input className="search-input" type="text" focus confirm-type="搜索" onConfirm={this.handleFilter} value={keywords} onInput={this.onInputText.bind(this)} placeholder="请输入你想查询的楼盘"></Input>
|
303
|
302
|
</View>
|
304
|
303
|
<View className="location" onClick={this.handleLocationClick}>
|
305
|
304
|
<Text className="location-icon iconfont icon-daohangdizhi"></Text>
|