|
|
@@ -139,29 +139,27 @@
|
|
|
|
|
|
<view class="topbg-sx-box-r flex align-center">
|
|
|
<!-- 城市 -->
|
|
|
- <view class="topbg-sx-box-r-i flex align-center" style="">
|
|
|
- <text style="margin-right: 10rpx;"
|
|
|
- @click="goNavs('/package/jobIntention/city')">{{city?city:'选择城市'}}</text>
|
|
|
- <u-icon name="arrow-down" color="#00B78F" size="16"
|
|
|
- @click="goNavs('/package/jobIntention/city')"></u-icon>
|
|
|
+ <view class="topbg-sx-box-r-i flex align-center" style="" @click="goNav('/package/screen/city?city='+city+'&county='+county)">
|
|
|
+ <text style="margin-right: 10rpx;">{{county?county:city?city:'选择城市'}}</text>
|
|
|
+ <u-icon name="arrow-down" color="#016bf6" size="16"></u-icon>
|
|
|
</view>
|
|
|
|
|
|
<!-- <text style="color: #CCCCCC;margin-left: 30rpx;margin-right: 30rpx;">|</text> -->
|
|
|
<block v-if="current != typeList.length - 1">
|
|
|
<!-- 筛选 -->
|
|
|
- <view class="topbg-sx-box-filter flex align-center">
|
|
|
+ <view class="topbg-sx-box-filter flex align-center" :class="{ activeColor: filledFieldsCount }">
|
|
|
<text style="margin-right: 10rpx;"
|
|
|
- @click="goNavs('/package/screen/screen')">筛选</text>
|
|
|
- <u-icon name="arrow-down" color="#999999" size="16"
|
|
|
+ @click="goNavs('/package/screen/screen')">筛选{{filledFieldsCount}}</text>
|
|
|
+ <u-icon name="arrow-down" :color="filledFieldsCount?'#016bf6':'#999999'" size="16"
|
|
|
@click="goNavs('/package/screen/screen')"></u-icon>
|
|
|
</view>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
<!-- 筛选 -->
|
|
|
- <view class="topbg-sx-box-filter flex align-center">
|
|
|
+ <view class="topbg-sx-box-filter flex align-center" :class="{ activeColor: filledFieldsCount }">
|
|
|
<text style="margin-right: 10rpx;"
|
|
|
- @click="goNavs('/package/screen/screenComp')">筛选</text>
|
|
|
- <u-icon name="arrow-down" color="#999999" size="16"
|
|
|
+ @click="goNavs('/package/screen/screenComp')">筛选{{filledFieldsCount}}</text>
|
|
|
+ <u-icon name="arrow-down" color="filledFieldsCount?'#016bf6':'#999999'" size="16"
|
|
|
@click="goNavs('/package/screen/screenComp')"></u-icon>
|
|
|
</view>
|
|
|
</block>
|
|
|
@@ -255,7 +253,7 @@
|
|
|
<view class="gwList-box-item-box-label flex align-center flex-wrap">
|
|
|
<text class="job-tag">{{item.education}}</text>
|
|
|
<text class="job-tag">{{item.experience}}</text>
|
|
|
- <text class="job-tag" v-for="(ite,ind) in item.welfareTag"
|
|
|
+ <text class="job-tag" v-for="(ite,ind) in item.welfareTag||[]"
|
|
|
:key="ind">{{ite}}</text>
|
|
|
</view>
|
|
|
<!-- <view class="gwList-box-item-box-line"></view> -->
|
|
|
@@ -267,7 +265,7 @@
|
|
|
style="width: 58rpx;height: 58rpx;border-radius: 50%;" mode="">
|
|
|
</image>
|
|
|
<view class="company-info-text">
|
|
|
- {{item.user.userName?item.user.userName:'未知'}}·{{item.hr.hrPosition?item.hr.hrPosition:'未知'}}
|
|
|
+ {{item.user&&item.user.userName||'未知'}}·{{item.hr&&item.hr.hrPosition||'未知'}}
|
|
|
</view>
|
|
|
<view v-if="item.respondTime" class="reply-time">{{item.respondTime}}
|
|
|
</view>
|
|
|
@@ -532,6 +530,7 @@
|
|
|
statusBarHeight: 0, // 状态栏高度
|
|
|
enable: true, //开启吸顶
|
|
|
goback: false,
|
|
|
+ county: '', //区
|
|
|
city: '',
|
|
|
companyName: "",
|
|
|
companyId: "",
|
|
|
@@ -627,6 +626,13 @@
|
|
|
imageUrl: this.bgImg
|
|
|
}
|
|
|
},
|
|
|
+ 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 : '';
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
current(newData, oldData) {
|
|
|
console.log(this.current)
|
|
|
@@ -798,15 +804,24 @@
|
|
|
uni.$on('updateScreenFilterRecord', () => {
|
|
|
//待处理
|
|
|
})
|
|
|
- uni.$on('city', data => {
|
|
|
+ // uni.$on('city', data => {
|
|
|
+ // that.city = data.city
|
|
|
+ // uni.setStorageSync('city', that.city)
|
|
|
+ // })
|
|
|
+ uni.$on('filterCity', data => {
|
|
|
+ console.log(data, '选择的市')
|
|
|
that.city = data.city
|
|
|
+ that.county = data.county
|
|
|
uni.setStorageSync('city', that.city)
|
|
|
+ this.page = 1
|
|
|
+ that.getUserList();
|
|
|
})
|
|
|
},
|
|
|
onUnload() {
|
|
|
+ uni.$off('filterCity');
|
|
|
uni.$off('preferenceUpdated')
|
|
|
uni.$off('updateScreenFilterRecord')
|
|
|
- uni.$off('city')
|
|
|
+ // uni.$off('city')
|
|
|
},
|
|
|
//下拉刷新
|
|
|
onPullDownRefresh() {
|
|
|
@@ -1415,6 +1430,7 @@
|
|
|
//postType: this.typeList.length > 0 ? this.typeList[this.current].id : '',
|
|
|
ruleClassifyName: this.typeList[this.current].name, //岗位名称
|
|
|
screen: +this.currentSx + 1, //1推荐 2最新
|
|
|
+ county: this.county, //区
|
|
|
city: this.city == '全国' ? '' : this.city, //城市
|
|
|
salaryRange: this.salaryRange, //薪资范围
|
|
|
education: this.education, //学历
|
|
|
@@ -2169,7 +2185,7 @@
|
|
|
border-radius: 6px;
|
|
|
background: #D6E7FD;
|
|
|
padding: 8rpx 12rpx;
|
|
|
- display: inline-block;
|
|
|
+ // display: inline-block;
|
|
|
min-width: 60rpx;
|
|
|
white-space: nowrap;
|
|
|
cursor: pointer;
|
|
|
@@ -2188,7 +2204,7 @@
|
|
|
border-radius: 6px;
|
|
|
background: rgba(198, 198, 198, 0.1);
|
|
|
padding: 8rpx 12rpx;
|
|
|
- display: inline-block;
|
|
|
+ // display: inline-block;
|
|
|
min-width: 60rpx;
|
|
|
white-space: nowrap;
|
|
|
cursor: pointer;
|
|
|
@@ -2719,4 +2735,9 @@
|
|
|
color: #333333;
|
|
|
font-size: 24upx;
|
|
|
}
|
|
|
+ .activeColor{
|
|
|
+ color: #016bf6 !important;
|
|
|
+ border:1rpx solid #016bf6;
|
|
|
+ background: #D6E7FD !important;
|
|
|
+ }
|
|
|
</style>
|