|
|
|
|
@ -14,6 +14,13 @@ Page({
|
|
|
|
|
toped: "1",
|
|
|
|
|
jobNum: 0, // 48小时更新职位数
|
|
|
|
|
currCode: '',
|
|
|
|
|
filterStatus: {
|
|
|
|
|
unset_tagArray0: true,
|
|
|
|
|
unset_tagArray1: true,
|
|
|
|
|
unset_tagArray2: true,
|
|
|
|
|
unset_tagArray3: true,
|
|
|
|
|
unset_tagArray4: true,
|
|
|
|
|
},
|
|
|
|
|
tabGroup: [
|
|
|
|
|
{
|
|
|
|
|
name: '全部',
|
|
|
|
|
@ -31,7 +38,7 @@ Page({
|
|
|
|
|
picked: '0'
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
sortList:[
|
|
|
|
|
sortList: [
|
|
|
|
|
{
|
|
|
|
|
name: '综合排序',
|
|
|
|
|
key: 'zuigao',
|
|
|
|
|
@ -48,13 +55,13 @@ Page({
|
|
|
|
|
anchorList: [
|
|
|
|
|
{
|
|
|
|
|
id: 'age',
|
|
|
|
|
name: '年龄'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'gender',
|
|
|
|
|
name: '性别'
|
|
|
|
|
name: '性别年龄'
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// id: 'gender',
|
|
|
|
|
// name: '性别'
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 'class',
|
|
|
|
|
// name: '分类'
|
|
|
|
|
// },
|
|
|
|
|
@ -226,25 +233,31 @@ Page({
|
|
|
|
|
*/
|
|
|
|
|
filterData: {
|
|
|
|
|
|
|
|
|
|
sex: [{
|
|
|
|
|
name: "男",
|
|
|
|
|
id: 1,
|
|
|
|
|
active: 0,
|
|
|
|
|
icon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912.png",
|
|
|
|
|
selectIcon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912-1.png",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "女",
|
|
|
|
|
id: 2,
|
|
|
|
|
active: 0,
|
|
|
|
|
icon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912.png",
|
|
|
|
|
selectIcon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912-1.png",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "男女不限",
|
|
|
|
|
id: -1,
|
|
|
|
|
active: -1,
|
|
|
|
|
},
|
|
|
|
|
sex: [
|
|
|
|
|
{
|
|
|
|
|
name: "不限",
|
|
|
|
|
id: -1,
|
|
|
|
|
active: -1,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "收男工",
|
|
|
|
|
id: 1,
|
|
|
|
|
active: 0,
|
|
|
|
|
icon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912.png",
|
|
|
|
|
selectIcon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912-1.png",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "收女工",
|
|
|
|
|
id: 2,
|
|
|
|
|
active: 0,
|
|
|
|
|
icon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912.png",
|
|
|
|
|
selectIcon: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912-1.png",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "男女都收",
|
|
|
|
|
id: 3,
|
|
|
|
|
active: 0,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
jobFilter: {
|
|
|
|
|
tagArray0: [],
|
|
|
|
|
@ -350,8 +363,8 @@ Page({
|
|
|
|
|
fangdou: true,
|
|
|
|
|
rangeValues: [16, 60], // 年龄筛选区间
|
|
|
|
|
rangeSmartValues: [16, 60], // 年龄筛选区间
|
|
|
|
|
maxAge: 60, // 年龄区间最大取值
|
|
|
|
|
minAge: 16,
|
|
|
|
|
maxAge: '', // 年龄区间最大取值
|
|
|
|
|
minAge: '',
|
|
|
|
|
salary: [10, 150], // 薪资筛选区间
|
|
|
|
|
minSalary: 10,
|
|
|
|
|
maxSalary: 150,
|
|
|
|
|
@ -374,6 +387,12 @@ Page({
|
|
|
|
|
url: "/pages/login/index",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
observers: {
|
|
|
|
|
filterData: function (e) {
|
|
|
|
|
console.log('filterData.jobFilter.tagArray1', e);
|
|
|
|
|
// 在 numberA 或者 numberB 被设置时,执行这个函数
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
close () {
|
|
|
|
|
let that = this;
|
|
|
|
|
let brandList = that.data.brandList;
|
|
|
|
|
@ -517,7 +536,6 @@ Page({
|
|
|
|
|
activez: str,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
watch () { },
|
|
|
|
|
witchNav (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
if (!this.data.isLogin && e.currentTarget.dataset.title != "职教职培") {
|
|
|
|
|
@ -581,11 +599,13 @@ Page({
|
|
|
|
|
// let str = that.data.sexid
|
|
|
|
|
console.log(e);
|
|
|
|
|
let str = e.currentTarget.dataset.id;
|
|
|
|
|
console.log(str);
|
|
|
|
|
console.log('str,', str);
|
|
|
|
|
if (str == "1") {
|
|
|
|
|
that.data.secondMenu = "男生";
|
|
|
|
|
that.data.secondMenu = "收男工";
|
|
|
|
|
} else if (str == "2") {
|
|
|
|
|
that.data.secondMenu = "女生";
|
|
|
|
|
that.data.secondMenu = "收女工";
|
|
|
|
|
} else if (str == "3") {
|
|
|
|
|
that.data.secondMenu = "男女都收";
|
|
|
|
|
} else if (str == "-1") {
|
|
|
|
|
that.data.secondMenu = "不限";
|
|
|
|
|
}
|
|
|
|
|
@ -1302,7 +1322,7 @@ Page({
|
|
|
|
|
// console.log("agencyUserId", agencyUserId);
|
|
|
|
|
app.globalData.isCommission = 1;
|
|
|
|
|
}
|
|
|
|
|
app.getLoginUserTokenInfo().then((res)=>{
|
|
|
|
|
app.getLoginUserTokenInfo().then((res) => {
|
|
|
|
|
console.log('res', app.globalData.loginUserInfo)
|
|
|
|
|
this.setData({
|
|
|
|
|
userInfo: app.globalData.loginUserInfo,
|
|
|
|
|
@ -1451,7 +1471,8 @@ Page({
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
setActive (e) {
|
|
|
|
|
// console.log(e);
|
|
|
|
|
console.log(e);
|
|
|
|
|
let that = this
|
|
|
|
|
let data = e.currentTarget.dataset;
|
|
|
|
|
if (data.type == "tattoo" || data.type == "sex" || data.type == "price") {
|
|
|
|
|
// console.log(data.id);
|
|
|
|
|
@ -1480,7 +1501,10 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// console.log(this.data.filterData[data.type]);
|
|
|
|
|
this.setData({
|
|
|
|
|
filterData: this.data.filterData,
|
|
|
|
|
})
|
|
|
|
|
console.log('this.data.filterData[data.type]', this.data.filterData[data.type]);
|
|
|
|
|
} else {
|
|
|
|
|
this.data.filterData[data.type][data.arr].forEach((item) => {
|
|
|
|
|
if (item.id == data.id) {
|
|
|
|
|
@ -1491,11 +1515,31 @@ Page({
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.setData({
|
|
|
|
|
filterData: this.data.filterData,
|
|
|
|
|
}, () => {
|
|
|
|
|
// 数据更新后的回调
|
|
|
|
|
console.log('this.data.filterData[data.type]', that.data.filterData[data.type]);
|
|
|
|
|
that.data.filterStatus['unset_' + data.arr] = !that.data.filterData[data.type][data.arr].some(item => item.active != 0);
|
|
|
|
|
that.setData({
|
|
|
|
|
filterStatus: that.data.filterStatus
|
|
|
|
|
})
|
|
|
|
|
console.log('that.data.filterStatus', that.data.filterStatus);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
filterData: this.data.filterData,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
clearArray (e) {
|
|
|
|
|
let that = this
|
|
|
|
|
let data = e.currentTarget.dataset;
|
|
|
|
|
this.data.filterData.jobFilter[data.type].forEach((item) => {
|
|
|
|
|
item.active = 0
|
|
|
|
|
})
|
|
|
|
|
that.data.filterStatus['unset_' + data.type] = true
|
|
|
|
|
that.setData({
|
|
|
|
|
filterStatus: that.data.filterStatus,
|
|
|
|
|
filterData: that.data.filterData
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 智能匹配标签的点击
|
|
|
|
|
@ -1618,8 +1662,7 @@ Page({
|
|
|
|
|
this.data.selectJobList.forEach((item, index) => {
|
|
|
|
|
if (item.id == data.id) {
|
|
|
|
|
this.data.selectJobList.splice(index, 1);
|
|
|
|
|
let ind =
|
|
|
|
|
filter.jobFilter["tagArray" + data.typeClassify].indexOf(item);
|
|
|
|
|
let ind = filter.jobFilter["tagArray" + data.typeClassify].indexOf(item);
|
|
|
|
|
console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]);
|
|
|
|
|
filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0;
|
|
|
|
|
// let ind = filter.classifyList.indexOf(item);
|
|
|
|
|
@ -1628,9 +1671,11 @@ Page({
|
|
|
|
|
this.toList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.data.filterStatus['unset_tagArray' + data.typeClassify] = !filter.jobFilter["tagArray" + data.typeClassify].some(item => item.active != 0)
|
|
|
|
|
this.setData({
|
|
|
|
|
selectJobList: this.data.selectJobList,
|
|
|
|
|
filterData: this.data.filterData,
|
|
|
|
|
filterStatus: this.data.filterStatus
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
console.log('this.data.selectBrandList', this.data.selectBrandList);
|
|
|
|
|
@ -1658,11 +1703,11 @@ Page({
|
|
|
|
|
deleteAge (e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
let that = this;
|
|
|
|
|
that.data.storeJobListSearchForm.ageRangeStr = "16-60";
|
|
|
|
|
that.data.storeJobListSearchForm.ageRangeStr = "";
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
this.setData({
|
|
|
|
|
minAge: 16,
|
|
|
|
|
maxAge: 60,
|
|
|
|
|
minAge: '',
|
|
|
|
|
maxAge: '',
|
|
|
|
|
rangeValues: [16, 60],
|
|
|
|
|
});
|
|
|
|
|
this.toList();
|
|
|
|
|
@ -1685,13 +1730,13 @@ Page({
|
|
|
|
|
this.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
this.data.filterData.sex.forEach((item, index) => {
|
|
|
|
|
item.active = 0;
|
|
|
|
|
if (index == 2) {
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
item.active = -1;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.data.smartObj.sex.forEach((item, index) => {
|
|
|
|
|
item.active = 0;
|
|
|
|
|
if (index == 2) {
|
|
|
|
|
if (index == 0) {
|
|
|
|
|
item.active = -1;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -1821,12 +1866,19 @@ Page({
|
|
|
|
|
this.setData({
|
|
|
|
|
selectJobList: [],
|
|
|
|
|
selectBrandList: [],
|
|
|
|
|
filterStatus: {
|
|
|
|
|
unset_tagArray0: true,
|
|
|
|
|
unset_tagArray1: true,
|
|
|
|
|
unset_tagArray2: true,
|
|
|
|
|
unset_tagArray3: true,
|
|
|
|
|
unset_tagArray4: true,
|
|
|
|
|
},
|
|
|
|
|
// firstMenu: "工价",
|
|
|
|
|
secondMenu: "不限",
|
|
|
|
|
sexid: -1,
|
|
|
|
|
rangeValues: [16, 60],
|
|
|
|
|
maxAge: 60,
|
|
|
|
|
minAge: 16,
|
|
|
|
|
maxAge: '',
|
|
|
|
|
minAge: '',
|
|
|
|
|
// activez: "zuigao",
|
|
|
|
|
storeJobListSearchForm: this.data.storeJobListSearchForm,
|
|
|
|
|
});
|
|
|
|
|
@ -1834,13 +1886,20 @@ Page({
|
|
|
|
|
filterData = middleList;
|
|
|
|
|
this.setData({
|
|
|
|
|
selectJobList: [],
|
|
|
|
|
filterStatus: {
|
|
|
|
|
unset_tagArray0: true,
|
|
|
|
|
unset_tagArray1: true,
|
|
|
|
|
unset_tagArray2: true,
|
|
|
|
|
unset_tagArray3: true,
|
|
|
|
|
unset_tagArray4: true,
|
|
|
|
|
},
|
|
|
|
|
selectBrandList: [],
|
|
|
|
|
// firstMenu: "工价",
|
|
|
|
|
secondMenu: "不限",
|
|
|
|
|
sexid: -1,
|
|
|
|
|
rangeValues: [16, 60],
|
|
|
|
|
maxAge: 60,
|
|
|
|
|
minAge: 16,
|
|
|
|
|
maxAge: '',
|
|
|
|
|
minAge: '',
|
|
|
|
|
// activez: "zuigao",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
@ -1869,7 +1928,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
swiperToggleF () {
|
|
|
|
|
this.setData({
|
|
|
|
|
isSwiper:true,
|
|
|
|
|
isSwiper: true,
|
|
|
|
|
// inputVal:''
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
@ -1901,11 +1960,13 @@ Page({
|
|
|
|
|
} else if (k == "sex") {
|
|
|
|
|
formSearch.sex = item.id;
|
|
|
|
|
if (item.id == -1) {
|
|
|
|
|
this.data.secondMenu = "不限";
|
|
|
|
|
this.data.secondMenu = "";
|
|
|
|
|
} else if (item.id == 1) {
|
|
|
|
|
this.data.secondMenu = "男生";
|
|
|
|
|
this.data.secondMenu = "收男工";
|
|
|
|
|
} else if (item.id == 2) {
|
|
|
|
|
this.data.secondMenu = "女生";
|
|
|
|
|
this.data.secondMenu = "收女工";
|
|
|
|
|
} else if (item.id == "3") {
|
|
|
|
|
that.data.secondMenu = "男女都收";
|
|
|
|
|
}
|
|
|
|
|
this.setData({
|
|
|
|
|
sexid: item.id,
|
|
|
|
|
@ -1943,7 +2004,7 @@ Page({
|
|
|
|
|
that.data.storeJobListSearchForm = {
|
|
|
|
|
...that.data.storeJobListSearchForm,
|
|
|
|
|
...formSearch,
|
|
|
|
|
ageRangeStr: that.data.minAge + "-" + that.data.maxAge,
|
|
|
|
|
ageRangeStr: that.data.minAge ? that.data.minAge + "-" + that.data.maxAge : '',
|
|
|
|
|
};
|
|
|
|
|
if (this.data.choiceCollect == 0) {
|
|
|
|
|
that.data.storeJobListSearchForm.ucj = 0;
|
|
|
|
|
@ -1972,7 +2033,7 @@ Page({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
sex: -1,
|
|
|
|
|
ageRangeStr: "16-60",
|
|
|
|
|
ageRangeStr: "",
|
|
|
|
|
salaryRangeStr: "1000-15000",
|
|
|
|
|
};
|
|
|
|
|
let filter = this.data.smartObj;
|
|
|
|
|
@ -2016,7 +2077,7 @@ Page({
|
|
|
|
|
that.data.storeJobListSearchForm = {
|
|
|
|
|
...that.data.storeJobListSearchForm,
|
|
|
|
|
...formSearch,
|
|
|
|
|
ageRangeStr: that.data.minAge + "-" + that.data.maxAge,
|
|
|
|
|
// ageRangeStr: that.data.minAge + "-" + that.data.maxAge,
|
|
|
|
|
salaryRangeStr: minSalary + "-" + maxSalary,
|
|
|
|
|
};
|
|
|
|
|
if (this.data.choiceCollect == 0) {
|
|
|
|
|
@ -2034,7 +2095,7 @@ Page({
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
sex: -1,
|
|
|
|
|
ageRangeStr: "16-60",
|
|
|
|
|
ageRangeStr: "",
|
|
|
|
|
salaryRangeStr: "1000-15000",
|
|
|
|
|
}) ?
|
|
|
|
|
true : false,
|
|
|
|
|
@ -2093,8 +2154,8 @@ Page({
|
|
|
|
|
rangeValues: [16, 60],
|
|
|
|
|
secondMenu: "不限",
|
|
|
|
|
sexid: -1,
|
|
|
|
|
maxAge: 60,
|
|
|
|
|
minAge: 16,
|
|
|
|
|
maxAge: '',
|
|
|
|
|
minAge: '',
|
|
|
|
|
salary: [10, 150], // 薪资筛选区间
|
|
|
|
|
minSalary: 10,
|
|
|
|
|
maxSalary: 150,
|
|
|
|
|
@ -2776,6 +2837,7 @@ Page({
|
|
|
|
|
item.returnFeeType,
|
|
|
|
|
item.returnFee / 100
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
item["fuWuFei"] = "";
|
|
|
|
|
}
|
|
|
|
|
@ -4280,21 +4342,21 @@ Page({
|
|
|
|
|
collectChange (e) {
|
|
|
|
|
let that = this;
|
|
|
|
|
// if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.item.key == 0)) {
|
|
|
|
|
if (e.currentTarget.dataset.item) {
|
|
|
|
|
let item = e.currentTarget.dataset.item
|
|
|
|
|
that.data.choiceCollect = item.key;
|
|
|
|
|
// that.data.storeJobListSearchForm.ucj = e.currentTarget.dataset.id;
|
|
|
|
|
that.data.storeJobListSearchForm.sortTag = item.key;
|
|
|
|
|
that.data.storeJobListSearchForm.picked = item.picked;
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
that.setData({
|
|
|
|
|
choiceCollect: that.data.choiceCollect,
|
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm,
|
|
|
|
|
recordList: [],
|
|
|
|
|
hasMoreData: true,
|
|
|
|
|
});
|
|
|
|
|
that.getJobList();
|
|
|
|
|
}
|
|
|
|
|
if (e.currentTarget.dataset.item) {
|
|
|
|
|
let item = e.currentTarget.dataset.item
|
|
|
|
|
that.data.choiceCollect = item.key;
|
|
|
|
|
// that.data.storeJobListSearchForm.ucj = e.currentTarget.dataset.id;
|
|
|
|
|
that.data.storeJobListSearchForm.sortTag = item.key;
|
|
|
|
|
that.data.storeJobListSearchForm.picked = item.picked;
|
|
|
|
|
that.data.storeJobListSearchForm.pageNum = 1;
|
|
|
|
|
that.setData({
|
|
|
|
|
choiceCollect: that.data.choiceCollect,
|
|
|
|
|
storeJobListSearchForm: that.data.storeJobListSearchForm,
|
|
|
|
|
recordList: [],
|
|
|
|
|
hasMoreData: true,
|
|
|
|
|
});
|
|
|
|
|
that.getJobList();
|
|
|
|
|
}
|
|
|
|
|
// } else {
|
|
|
|
|
// // if(e.currentTarget.dataset.id == 1){
|
|
|
|
|
// that.setData({
|
|
|
|
|
@ -4428,7 +4490,7 @@ Page({
|
|
|
|
|
siv: "menu",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else if (str == "shijian"){
|
|
|
|
|
} else if (str == "shijian") {
|
|
|
|
|
that.setData({
|
|
|
|
|
firstMenu: "时间",
|
|
|
|
|
// storeJobListSearchForm: tha t.data.storeJobListSearchForm,
|
|
|
|
|
|