|
|
@@ -46,7 +46,7 @@ Component({
|
|
|
this.setData({
|
|
|
startUsing: !this.data.startUsing
|
|
|
});
|
|
|
- setTimeout(this.setListHeight, 400)
|
|
|
+ setTimeout(() => this.setListHeight(), 400)
|
|
|
},
|
|
|
/* 搜索 */
|
|
|
confirmSearch(e) {
|
|
|
@@ -135,14 +135,14 @@ Component({
|
|
|
this.setData({
|
|
|
showHistory: true
|
|
|
});
|
|
|
- setTimeout(this.setListHeight, 50);
|
|
|
+ setTimeout(() => this.setListHeight(), 50);
|
|
|
},
|
|
|
/* 搜索框失焦 */
|
|
|
onBlur() {
|
|
|
this.setData({
|
|
|
showHistory: false
|
|
|
})
|
|
|
- setTimeout(this.setListHeight, 50);
|
|
|
+ setTimeout(() => this.setListHeight(), 50);
|
|
|
},
|
|
|
clickFiltration() {
|
|
|
let page = getCurrentPages()[getCurrentPages().length - 1];
|