search.wxml 2.1 KB

1
  1. <view class="page data-v-76a3f93e"><search vue-id="5dda2c76-1" placeholder="请输入关键字" showCancelBtn="{{true}}" padding="0 30rpx 20rpx" data-event-opts="{{[['^change',[['searchChange']]],['^search',[['goSearchResult']]]]}}" bind:change="__e" bind:search="__e" class="data-v-76a3f93e" bind:__l="__l"></search><block wx:if="{{$root.g0>0}}"><title-operate vue-id="5dda2c76-2" title="最近搜索" padding="10rpx 30rpx 24rpx 30rpx" class="data-v-76a3f93e" bind:__l="__l" vue-slots="{{['default']}}"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="remove data-v-76a3f93e" bindtap="__e"><u-icon vue-id="{{('5dda2c76-3')+','+('5dda2c76-2')}}" name="trash" class="data-v-76a3f93e" bind:__l="__l"></u-icon></view></title-operate></block><block wx:if="{{$root.g1>0}}"><view class="list data-v-76a3f93e"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><tag bind:click="__e" vue-id="{{'5dda2c76-4-'+index}}" data-event-opts="{{[['^click',[['goSearchResult',['$0'],[[['historyList','',index]]]]]]]}}" class="data-v-76a3f93e" bind:__l="__l" vue-slots="{{['default']}}">{{item}}</tag></block></view></block><view style="height:30rpx;width:100%;" class="data-v-76a3f93e"></view><block wx:if="{{$root.g2>0}}"><title-operate vue-id="5dda2c76-5" title="热门搜索" padding="10rpx 30rpx 24rpx 30rpx" class="data-v-76a3f93e" bind:__l="__l"></title-operate></block><block wx:if="{{$root.g3>0}}"><view class="list data-v-76a3f93e"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><tag bind:click="__e" vue-id="{{'5dda2c76-6-'+index}}" data-event-opts="{{[['^click',[['goSearchResult',['$0'],[[['hotList','',index]]]]]]]}}" class="data-v-76a3f93e" bind:__l="__l" vue-slots="{{['default']}}">{{item}}</tag></block></view></block><u-modal vue-id="5dda2c76-7" content="是否清空最近搜索记录?" show-cancel-button="{{true}}" confirm-color="{{confirmColor}}" value="{{showRemoveHistory}}" data-event-opts="{{[['^confirm',[['removeHistory']]],['^input',[['__set_model',['','showRemoveHistory','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" class="data-v-76a3f93e" bind:__l="__l"></u-modal></view>