fix 历史搜索布局问题

This commit is contained in:
Cxpller 2023-10-15 13:04:29 +08:00
parent 9827d07da5
commit 2b509e4273

View File

@ -8,19 +8,16 @@
<text class="search-title">历史搜索</text> <text class="search-title">历史搜索</text>
<text class="search-clear" bind:tap="handleClearHistory">清除</text> <text class="search-clear" bind:tap="handleClearHistory">清除</text>
</view> </view>
<view class="search-content"> <view class="search-content" wx:if="{{historyWords.length > 0}}">
<view wx:if="{{historyWords.length > 0}}"> <view class="search-item" hover-class="hover-history-item" wx:for="{{historyWords}}" bind:tap="handleHistoryTap" bindlongpress="deleteCurr" data-index="{{index}}" wx:key="*this">
<view class="search-item" hover-class="hover-history-item" wx:for="{{historyWords}}" bind:tap="handleHistoryTap" bindlongpress="deleteCurr" data-index="{{index}}" wx:key="*this"> {{item.historySearchContent}}
{{item.historySearchContent}}
</view>
</view>
<view wx:else class="search-item">
暂无数据
</view> </view>
</view> </view>
<view wx:else class="search-item">
暂无数据
</view>
</view> </view>
<view class="popular-wrap"> <!-- <view class="popular-wrap">
<view class="search-header"> <view class="search-header">
<text class="search-title">热门搜索</text> <text class="search-title">热门搜索</text>
</view> </view>
@ -34,7 +31,7 @@
暂无数据 暂无数据
</view> </view>
</view> </view>
</view> </view> -->
</view> </view>
<t-dialog visible="{{dialogShow}}" content="{{dialog.message}}" bindconfirm="confirm" bind:close="close" confirm-btn="确定" cancel-btn="{{dialog.showCancelButton ? '取消' : null}}" t-class-confirm="dialog__button-confirm" t-class-cancel="dialog__button-cancel" /> <t-dialog visible="{{dialogShow}}" content="{{dialog.message}}" bindconfirm="confirm" bind:close="close" confirm-btn="确定" cancel-btn="{{dialog.showCancelButton ? '取消' : null}}" t-class-confirm="dialog__button-confirm" t-class-cancel="dialog__button-cancel" />
</view> </view>