|
@@ -300,6 +300,27 @@
|
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
let systemInfo = uni.getSystemInfoSync();
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0;
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ const condition=this.$queue.getFilterData()
|
|
|
|
|
+ this.education = condition.education //学历
|
|
|
|
|
+ this.experience = condition.experience //经验
|
|
|
|
|
+ this.industry = condition.industry //行业
|
|
|
|
|
+ this.salaryRange = condition.salaryRange //薪资
|
|
|
|
|
+ this.companyPeople = condition.companyPeople //公司规模
|
|
|
|
|
+ if (!this.city) {
|
|
|
|
|
+ if (uni.getStorageSync('city')) {
|
|
|
|
|
+ this.city = uni.getStorageSync('city')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.city = ''
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ uni.$on('filterCity', data => {
|
|
|
|
|
+ console.log(data, '选择的市')
|
|
|
|
|
+ that.city = data.city
|
|
|
|
|
+ that.county = data.county
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ that.getUserList();
|
|
|
|
|
+ })
|
|
|
|
|
+ this.token = uni.getStorageSync('token');
|
|
|
//获取经纬度后请求岗位接口,经纬度用于筛选距离
|
|
//获取经纬度后请求岗位接口,经纬度用于筛选距离
|
|
|
uni.getLocation({
|
|
uni.getLocation({
|
|
|
type: 'wgs84', //wgs84 gcj02
|
|
type: 'wgs84', //wgs84 gcj02
|
|
@@ -315,6 +336,21 @@
|
|
|
})
|
|
})
|
|
|
this.getMyRecordList()
|
|
this.getMyRecordList()
|
|
|
this.getHotList()
|
|
this.getHotList()
|
|
|
|
|
+
|
|
|
|
|
+ uni.$on('updateScreenFilterRecord', () => {
|
|
|
|
|
+ const condition=this.$queue.getFilterData()
|
|
|
|
|
+ this.education = condition.education //学历
|
|
|
|
|
+ this.experience = condition.experience //经验
|
|
|
|
|
+ this.industry = condition.industry //行业
|
|
|
|
|
+ this.salaryRange = condition.salaryRange //薪资
|
|
|
|
|
+ this.companyPeople = condition.companyPeople //公司规模
|
|
|
|
|
+ this.page = 1
|
|
|
|
|
+ that.getUserList();
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ onUnload(){
|
|
|
|
|
+ uni.$off('filterCity');
|
|
|
|
|
+ uni.$off('updateScreenFilterRecord');
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
filledFieldsCount() {
|
|
filledFieldsCount() {
|
|
@@ -323,62 +359,6 @@
|
|
|
return count > 0 ? '·' + count : '';
|
|
return count > 0 ? '·' + count : '';
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- onShow() {
|
|
|
|
|
- let that = this;
|
|
|
|
|
- if (!this.city) {
|
|
|
|
|
- if (uni.getStorageSync('city')) {
|
|
|
|
|
- this.city = uni.getStorageSync('city')
|
|
|
|
|
- } else {
|
|
|
|
|
- this.city = ''
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- uni.$once('filterCity', data => {
|
|
|
|
|
- console.log(data, '选择的市')
|
|
|
|
|
- that.city = data.city
|
|
|
|
|
- that.county = data.county
|
|
|
|
|
- that.getUserList();
|
|
|
|
|
- })
|
|
|
|
|
- this.token = uni.getStorageSync('token');
|
|
|
|
|
-
|
|
|
|
|
- console.log(uni.getStorageSync('filter'), '1111111111');
|
|
|
|
|
- if (uni.getStorageSync('filter') && (uni.getStorageSync('filter')).length > 0) {
|
|
|
|
|
- let filter = uni.getStorageSync('filter')
|
|
|
|
|
- console.log(filter)
|
|
|
|
|
- filter.map(item => {
|
|
|
|
|
- let arr = []
|
|
|
|
|
- item.list.map(ite => {
|
|
|
|
|
- if (ite.value != '不限') {
|
|
|
|
|
- arr.push(ite.value)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- switch (item.name) {
|
|
|
|
|
- case '学历要求':
|
|
|
|
|
- this.education = arr.join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '薪资范围(单选)':
|
|
|
|
|
- this.salaryRange = arr.join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '经验要求':
|
|
|
|
|
- this.experience = arr.join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '公司规模':
|
|
|
|
|
- this.companyPeople = arr.join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- case '行业':
|
|
|
|
|
- this.industry = arr.join(',')
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- })
|
|
|
|
|
- } else {
|
|
|
|
|
- this.education = '' //学历
|
|
|
|
|
- this.experience = '' //经验
|
|
|
|
|
- this.industry = '' //行业
|
|
|
|
|
- this.salaryRange = '' //薪资
|
|
|
|
|
- this.companyPeople = '' //公司规模
|
|
|
|
|
- }
|
|
|
|
|
- that.getUserList();
|
|
|
|
|
- },
|
|
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.page = 1
|
|
this.page = 1
|
|
|
this.getUserList();
|
|
this.getUserList();
|