<view class="content"><view class="search-cont"><view class="inner"><image class="icon-search" src="../../static/images/search.png" mode></image><input type="text" value="" placeholder="输入商品名称" confirm-type="搜索" focus="{{setFocus}}" placeholder-style="font-size:28rpx;color:#BBBBBB;font-family: PingFang SC;" data-event-opts="{{[['confirm',[['goSearch',['$event']]]]]}}" bindconfirm="__e"/></view></view><view class="title-box"><text class="title">历史搜索</text><image src="../../static/images/del.png" mode data-event-opts="{{[['tap',[['clearHistory',['$event']]]]]}}" bindtap="__e"></image></view><view class="data-list"><block wx:for="{{searchHistory}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['searchHistory','',index]]]]]]]}}" class="item" bindtap="__e">{{''+item+''}}</view></block></view><view class="title-box"><text class="title">推荐搜索</text></view><view class="data-list"><block wx:for="{{topSearch}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['doSearch',['$0'],[[['topSearch','',index]]]]]]]}}" class="item" bindtap="__e">{{''+item+''}}</view></block></view></view>