安卓系统input在bindinput中加入网络请求会收起键盘
<view class=“section”>
<input id=“search-input” type=“text” value="{{searchValue}}" bindinput=“active” class=“input” placeholder=“请输入管理号查询” placeholder-class=“placeholder” confirm-type=“done” />
<button bindtap=“searchSubmit”><icon type=“search”/></button>
</view>
//用户输入文本时实时更新value,
active: function (event) {
var m = event.detail.value;
console.log(m)
this.setData({
searchValue: m,
})
this.getList();//网络请求
},
安卓每次active都会收起键盘,ios没问题