修改搜索显示
parent
ddfd93ec1d
commit
65fe63f1b5
|
|
@ -18,11 +18,14 @@
|
|||
<!-- 搜索历史记录 -->
|
||||
<view v-if="show_search_history.length > 0" class="search-history flex-col jc-c align-c">
|
||||
<view class="wh-auto flex-row align-c jc-sb">
|
||||
<text class="size-16 cr-6">历史记录</text>
|
||||
<text class="size-16 cr-6" @tap="clear_history">清除记录</text>
|
||||
<text class="size-14 cr-6">历史记录</text>
|
||||
<view class="flex-row algin-c gap-5" @tap="clear_history">
|
||||
<iconfont name="icon-delete" size="28rpx" color="#999"></iconfont>
|
||||
<text class="size-12 cr-9">清除记录</text>
|
||||
</view>
|
||||
</view>
|
||||
<view v-for="(history, index) in show_search_history" :key="index" class="wh-auto history-item flex-row align-c jc-sb">
|
||||
<view class="flex-row align-c search-history-title cp" :data-value="history" @tap.stop="perform_search">
|
||||
<view class="flex-1 flex-row align-c search-history-title cp" :data-value="history" @tap.stop="perform_search">
|
||||
<iconfont name="icon-time" size="32rpx"></iconfont>
|
||||
<text>{{ history }}</text>
|
||||
</view>
|
||||
|
|
|
|||
Loading…
Reference in New Issue