小程序绑定enter事件
<view class="search">
<view class="search-container">
<view class="search-left">
<image class="search-image" src="/images/index/search.png" />
<input class="search-input" placeholder="请输入你喜欢的商品" bindinput='watchSearch' data-keywords="{{keywords}}" bindconfirm='go_to_search_result'/>
</view>
<view class="search-btn" data-keywords="{{keywords}}" bindtap="go_to_search_result">搜索</view>
</view>
</view>
bindconfirm
绑定后,就不需要点搜索按钮了