huangsijun
2025-09-22 a78c011de350b188afb03beb2f26a73f35f71986
1
<block wx:if="{{isShow}}"><view data-event-opts="{{[['touchmove',[['stopTouchMove',['$event']]]]]}}" catchtouchmove="__e"><view class="search-wrap"><view class="head_top" style="{{('height:'+$root.m0+'px;')}}"></view><view class="index-search-box d-b-c" style="{{($root.m1==0?'':'height:'+$root.m2+'px;padding-right: 200rpx')}}" id="searchBox"><view class="reg180" style="{{($root.m3==0?'':'height:'+$root.m4+'px;')}}"><text data-event-opts="{{[['tap',[['closeSearch',['$event']]]]]}}" class="icon iconfont icon-jiantou" bindtap="__e"></text></view><view class="index-search t-c flex-1" style="{{($root.m5==0?'':'height:'+$root.m6+'px;')}}"><text class="icon iconfont icon-sousuo"></text><input class="flex-1 ml10 f30 gray3" type="text" value="{{form.keyWord}}" placeholder-class="f24 gray6" placeholder="输入你要的商品" confirm-type="search" data-event-opts="{{[['confirm',[['search']]],['input',[['__set_model',['$0','keyWord','$event',[]],['form']]]]]}}" bindconfirm="__e" bindinput="__e"/></view></view><view class="p-0-20 bg-white"><view class="group-hd"><view class="left"><text class="min-name">最近搜索</text></view><view class="right"><text data-event-opts="{{[['tap',[['clearStorage',['$event']]]]]}}" class="icon iconfont icon-lajitong" bindtap="__e"></text></view></view><view class="before-search"><block wx:for="{{arr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><text data-event-opts="{{[['tap',[['search',['$0'],['arr.'+index+'']]]]]}}" class="item" bindtap="__e">{{arr[index]}}</text></block></view></view></view></view></block>