mrr.sj.front/unpackage/dist/dev/mp-weixin/pages/search/search-history.wxml

1 line
4.2 KiB
Plaintext

<view class="searchhis-page data-v-57593f0d"><search-box vue-id="d861b8ce-1" placeholder="输入手艺人/服务/店铺等" value="{{searchText}}" data-event-opts="{{[['^search',[['onSearch']]],['^confirm',[['onSearch']]],['^input',[['__set_model',['','searchText','$event',[]]]]]]}}" bind:search="__e" bind:confirm="__e" bind:input="__e" class="data-v-57593f0d" bind:__l="__l"></search-box><view class="history_content data-v-57593f0d"><view class="history-section data-v-57593f0d"><view class="section-header data-v-57593f0d"><view class="header-left data-v-57593f0d"><text class="section-title data-v-57593f0d">历史搜索</text></view><block wx:if="{{isDel}}"><view class="del_select data-v-57593f0d"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="allDel data-v-57593f0d" bindtap="__e">全部删除</view><image class="split data-v-57593f0d" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/35ec857d-02c6-41e1-b6e9-fea885625743"></image><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="allDel data-v-57593f0d" bindtap="__e">完成</view></view></block><block wx:else><view data-event-opts="{{[['tap',[['e2',['$event']]]]]}}" class="header-right data-v-57593f0d" bindtap="__e"><image class="delete-icon data-v-57593f0d" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/e454c821-7fb3-4c89-8cc4-e7771361985b"></image></view></block></view></view><view class="category-section data-v-57593f0d"><block wx:if="{{$root.g0}}"><view class="history-list history_list history_cau data-v-57593f0d"><block wx:for="{{historyList}}" wx:for-item="item" wx:for-index="__i0__"><view class="history-item history_item data-v-57593f0d"><text class="history-text text-overflow-1 data-v-57593f0d">{{item}}</text></view></block></view></block><block wx:if="{{$root.g1}}"><view class="history-list history_list history_list_show data-v-57593f0d"><block wx:for="{{showHistoryList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['selectHistory',['$0'],[[['showHistoryList','',index]]]]]]]}}" class="history-item data-v-57593f0d" bindtap="__e"><text class="history-text text-overflow-1 data-v-57593f0d">{{item}}</text><block wx:if="{{isDel}}"><image class="delIcon data-v-57593f0d" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/9cc3f293-80ca-41ab-b964-90e144fcdcfb" data-event-opts="{{[['tap',[['removeHistory',[index]]]]]}}" bindtap="__e"></image></block></view></block><block wx:if="{{$root.g2}}"><view data-event-opts="{{[['tap',[['e3',['$event']]]]]}}" class="history-item del_tag data-v-57593f0d" style="padding:0;" bindtap="__e"><image class="moreIcon data-v-57593f0d" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/201c503d-ed9e-4090-9f14-1f6ffdabcc93"></image></view></block></view></block><block wx:else><view class="history-null data-v-57593f0d">暂无搜索历史</view></block></view><view class="history-section data-v-57593f0d" style="margin-top:40rpx;"><view class="section-header data-v-57593f0d"><view class="header-left data-v-57593f0d"><text class="section-title data-v-57593f0d">热门搜索</text></view><view data-event-opts="{{[['tap',[['getHotList',['$event']]]]]}}" class="header-right data-v-57593f0d" bindtap="__e"><image class="delete-icon data-v-57593f0d" src="https://mrrplus.oss-cn-beijing.aliyuncs.com/photo/system/22482af8-2036-411a-b7f7-f7dbf76441a0"></image></view></view></view><view class="category-section data-v-57593f0d"><block wx:if="{{$root.g3}}"><view class="history-list data-v-57593f0d"><block wx:for="{{hotList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['selectHistory',['$0'],[[['hotList','',index]]]]]]]}}" class="history-item data-v-57593f0d" bindtap="__e"><text class="history-text text-overflow-1 data-v-57593f0d">{{item}}</text></view></block></view></block><block wx:else><view class="history-null data-v-57593f0d">暂无热门搜索</view></block></view></view><confirm-modal vue-id="d861b8ce-2" visible="{{showConfirmModal}}" title="确认删除最近搜索记录吗?" cancel-text="取消" confirm-text="删除" data-event-opts="{{[['^cancel',[['e4']]],['^confirm',[['clearHistory']]]]}}" bind:cancel="__e" bind:confirm="__e" class="data-v-57593f0d" bind:__l="__l"></confirm-modal></view>