搜索页优化

This commit is contained in:
Eratosici
2022-03-01 09:04:23 +08:00
parent 6a91f524ef
commit b8417b052b
2 changed files with 12 additions and 2 deletions

View File

@@ -123,3 +123,12 @@
right: 10rpx;
top: 30rpx;
}
.search-tit-empty {
display: block;
margin: 0 auto;
text-align: center;
width: 100%;
font-size: 24rpx;
color: #aaa;
}

View File

@@ -17,16 +17,17 @@
<view class="title-text">
热门搜索
</view>
<view class="hot-search-tags">
<view v-if="hotSearchList && hotSearchList.length" class="hot-search-tags">
<block v-for="(item, index) in hotSearchList" :key="index">
<text class="tags" @tap="onHistSearch" :data-name="item.content">{{item.title}}</text>
</block>
</view>
<view v-else class="search-tit-empty">暂无数据</view>
</view>
<!-- 搜索历史 -->
<view class="history-search">
<view v-if="recentSearch && recentSearch.length" class="history-search">
<view class="title-text history-line">
搜索历史
<view class="clear-history">