|
|
@@ -22,13 +22,14 @@
|
|
|
<view class="searchJl-box">
|
|
|
<view class="searchJl-box-header">
|
|
|
<text class="searchJl-box-title">历史搜索</text>
|
|
|
- <image src="../../static/images/shanchu22.svg" style="width: 32rpx; height: 32rpx;" mode="aspectFit" @click="clearHistory"></image>
|
|
|
+ <image v-if="searchList.length > 0" src="../../static/images/shanchu22.svg" style="width: 32rpx; height: 32rpx;" mode="aspectFit" @click="clearHistory"></image>
|
|
|
</view>
|
|
|
<view class="searchJl-box-label flex align-center flex-wrap">
|
|
|
<view class="searchJl-box-item" @click="goSearch(item.keyWord)"
|
|
|
v-for="(item,index) in searchList" :key="index">
|
|
|
{{item.keyWord}}
|
|
|
</view>
|
|
|
+ <view class="no-more" v-if="searchList.length == 0">暂无记录</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -38,7 +39,7 @@
|
|
|
<view class="hot-jobs-section">
|
|
|
<view class="section-header">
|
|
|
<text class="section-title">近期热招</text>
|
|
|
- <image src="../../static/images/shanchu22.svg" style="width: 32rpx; height: 32rpx;" mode="aspectFit" @click="clearHotJobs"></image>
|
|
|
+ <!-- <image src="../../static/images/shanchu22.svg" style="width: 32rpx; height: 32rpx;" mode="aspectFit" @click="clearHotJobs"></image> -->
|
|
|
</view>
|
|
|
<view class="hot-jobs-grid">
|
|
|
<view
|
|
|
@@ -74,13 +75,13 @@
|
|
|
</view>
|
|
|
|
|
|
<view v-if="currentSx==0" class="sort-container" @click="showSortModal">
|
|
|
- <text class="sort-text" style="margin-right: 10rpx;">综合排序</text>
|
|
|
+ <text class="sort-text" style="margin-right: 10rpx;">{{sortOptions[selectedSort]}}</text>
|
|
|
<u-icon name="arrow-down" color="rgba(1, 107, 246, 1)" size="20"></u-icon>
|
|
|
</view>
|
|
|
|
|
|
- <view class="filter-container" @click="goNav('/package/screen/screen')">
|
|
|
- <text class="filter-text" style="margin-right: 10rpx;">筛选</text>
|
|
|
- <u-icon name="arrow-down" color="#999999" size="20"></u-icon>
|
|
|
+ <view class="filter-container" :class="{ activeColor: filledFieldsCount }" @click="goNav('/package/screen/screen')">
|
|
|
+ <text class="filter-text" style="margin-right: 10rpx;">筛选{{filledFieldsCount}}</text>
|
|
|
+ <u-icon name="arrow-down" :color="filledFieldsCount?'#016bf6':'#999999'" size="20"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -315,6 +316,13 @@
|
|
|
this.getMyRecordList()
|
|
|
this.getHotList()
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ filledFieldsCount() {
|
|
|
+ const fields = [this.education, this.experience, this.industry, this.salaryRange, this.companyPeople];
|
|
|
+ const count = fields.filter(item => item).length;
|
|
|
+ return count > 0 ? '·' + count : '';
|
|
|
+ }
|
|
|
+ },
|
|
|
onShow() {
|
|
|
let that = this;
|
|
|
if (!this.city) {
|
|
|
@@ -382,6 +390,26 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 删除历史记录
|
|
|
+ clearHistory(){
|
|
|
+ let that = this;
|
|
|
+ uni.showModal({
|
|
|
+ title: "提示",
|
|
|
+ content: "确定删除吗?",
|
|
|
+ confirmColor: "#016BF6",
|
|
|
+ success: function(res) {
|
|
|
+ that.$Request.post('/app/record/deleteRecord', {recordId:''}).then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ that.searchList = []
|
|
|
+ uni.showToast({
|
|
|
+ title: '删除成功',
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
/**
|
|
|
* 返回上一页
|
|
|
*/
|
|
|
@@ -582,7 +610,8 @@
|
|
|
|
|
|
// 选择排序选项
|
|
|
selectSort(index) {
|
|
|
- this.selectedSort = index
|
|
|
+ this.selectedSort = index;
|
|
|
+
|
|
|
this.hideSortModal()
|
|
|
// 这里可以添加排序逻辑
|
|
|
this.getUserList();
|
|
|
@@ -759,6 +788,12 @@
|
|
|
padding: 8rpx 12rpx;
|
|
|
border-radius: 12rpx;
|
|
|
background: rgba(198, 198, 198, 0.1);
|
|
|
+ border:1rpx solid rgba(198, 198, 198, 0.1);
|
|
|
+ }
|
|
|
+ .activeColor{
|
|
|
+ color: #016bf6;
|
|
|
+ border:1rpx solid #016bf6;
|
|
|
+ background: #fff;
|
|
|
}
|
|
|
|
|
|
.searchJl {
|
|
|
@@ -808,6 +843,13 @@
|
|
|
text-align: left;
|
|
|
margin-top: 20rpx;
|
|
|
}
|
|
|
+ .no-more{
|
|
|
+ line-height: 20rpx;
|
|
|
+ padding: 12rpx;
|
|
|
+ font-family: DM Sans;
|
|
|
+ font-size: 20rpx;
|
|
|
+ font-weight: 400;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|