<view class="search-container"><view class="search-main"><view class="gosearch-btn"><text class="iconfont icon-sousuo"></text><input class="input" maxlength="20" focus="{{isFocus}}" type="text" value="{{listQuery.name}}" confirm-type="search" placeholder="请输入搜索关键字" data-event-opts="{{[['focus',[['onFocus',['$event']]]],['input',[['__set_model',['$0','name','$event',['trim']],['listQuery']],['onShowClose',['$event']]]],['confirm',[['SubMitSearch']]],['blur',[['$forceUpdate']]]]}}" bindfocus="__e" bindinput="__e" bindconfirm="__e" bindblur="__e"/><block wx:if="{{isShowClose}}"><text data-event-opts="{{[['tap',[['delInputText']]]]}}" class="iconfont icon-quxiao" catchtap="__e"></text></block></view><view data-event-opts="{{[['tap',[['SubMitSearch']]]]}}" class="search-btn" bindtap="__e">搜索</view></view><block wx:if="{{!isShowWrapper}}"><view class="search-container-history clearfix"><block wx:if="{{serachRecordList.length>0}}"><view class="{{['s-'+themeClass]}}"><view class="header">搜索历史<text data-event-opts="{{[['tap',[['confirmDetele',['$event']]]]]}}" class="iconfont icon-shanchu" bindtap="__e"></text></view><view class="list"><view class="list-main"><block wx:for="{{serachRecordList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['keywordsClick',['$0'],[[['serachRecordList','',index]]]]]]]}}" bindtap="__e">{{item}}</view></block></view></view></view></block></view></block><block wx:else><view class="commodity-list-wrapper" style="{{'overflow:'+('auto')+';'+('height:'+(productList.length>4?windowHeight+'px':'auto')+';')}}"><block wx:if="{{!showEmpty}}"><scroll-view style="{{'height:'+(productList.length>4?scrollHeight+'px':'auto')+';'}}" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['scrolltolower',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{$root.l0}}" wx:for-item="pro" wx:for-index="index" wx:key="index"><view class="product-list-type commodity-list" id="{{pro.$orig.id}}" data-event-opts="{{[['tap',[['navToDetailPage',['$0'],[[['productList','',index,'productId']]]]]]]}}" catchtap="__e"><view class="product-list-image"><image class="product-image" src="{{pro.$orig.mainImage}}" mode></image></view><view class="product-list-msgs"><view class="product-name">{{pro.$orig.name}}</view><view class="product-unit">{{"规格："+pro.$orig.unit}}</view><block wx:if="{{pro.$orig.activistatus==1}}"><view class="product-tags"><text class="tag">活动价</text></view></block><view class="product-pric"><view class="price">{{"￥"+pro.f0}}</view><view data-event-opts="{{[['tap',[['handAddCarts',['$0'],[[['productList','',index]]]]]]]}}" class="carts" catchtap="__e"><view class="carts-add"><text class="iconfont icon-gouwuche"></text></view></view></view></view></view></block><block wx:if="{{showLoading&&productList.length>5}}"><view><block wx:if="{{loadingNow}}"><view class="loading-wrapper loading-wrapper-now">{{loadingText}}<block wx:if="{{loadingText==='已至底部'}}"><text>‧ ‧ ‧</text></block></view></block><block wx:else><view class="loading-wrapper loading-wrapper-btm">———<text class="btm-text">已至底部</text>———</view></block></view></block></scroll-view></block><block wx:if="{{showEmpty}}"><view class="empty-container"><image class="empty-container-image" src="{{StaticUrl+'icon-empty-search.png'}}"></image><text class="error-text">暂无搜索结果~</text></view></block></view></block><tui-modal vue-id="7078dd68-1" show="{{modal}}" content="{{contentModalText}}" color="#333" size="{{32}}" shape="circle" maskClosable="{{false}}" data-event-opts="{{[['^click',[['handleClick']]],['^cancel',[['hideMobel']]]]}}" bind:click="__e" bind:cancel="__e" bind:__l="__l"></tui-modal><block wx:if="{{isModallayer}}"><modal-layer vue-id="7078dd68-2" bind:__l="__l"></modal-layer></block></view>