我的申请,我的收藏,浏览记录联调

This commit is contained in:
zxy
2024-02-21 17:18:40 +08:00
parent 06b6fe4140
commit 8314a2232e
11 changed files with 657 additions and 18 deletions

View File

@@ -27,11 +27,11 @@
<view v-show="!searchResultShow" class="search-history">
<view class="title">搜索记录</view>
<view class="clear" @click="clearKeyWords">
<image src="../../static/img/delete.png" style="width: 20rpx;height: 20rpx;" mode=""></image>
<image src="../../static/img/delete.png" style="width: 24rpx;height: 24rpx;" mode=""></image>
<view style="margin-left: 5rpx;">清空</view>
</view>
<view class="wrapper" v-if="searchHistoryList.length > 0">
<view class="item" v-for="(item, index) in searchHistoryList">
<view class="item" v-for="(item, index) in searchHistoryList" @click="keyWordsClick(item.keywords)">
{{ item.keywords }}
</view>
</view>
@@ -160,6 +160,11 @@ export default {
}
})
},
keyWordsClick(keyWords) {
console.log(keyWords)
this.keywords = keyWords;
this.getNewList();
},
//最新任务;
getList: function (type) {
//改变搜索条件页码值变为1
@@ -340,7 +345,7 @@ export default {
position: absolute;
right: 20rpx;
top: 10rpx;
font-size: 20rpx;
font-size: 24rpx;
display: flex;
align-items: center;
color: #707070;
@@ -355,9 +360,9 @@ export default {
flex-wrap: wrap;
}
.search-history .wrapper .item {
font-size: 20rpx;
font-size: 24rpx;
background-color: #f6f6f6;
padding: 10rpx;
padding: 8rpx 12rpx;
border-radius: 20rpx;
margin-right: 10rpx;
}