|
@@ -109,52 +109,16 @@ function initPageClick() {
|
|
|
if (hasActive) {
|
|
|
$(this).removeClass('textActive');
|
|
|
} else {
|
|
|
- if (dataValue && hasExpClass) {
|
|
|
- $(this).addClass('textActive');
|
|
|
- $(this).siblings('span[data-value=""]').removeClass('textActive');
|
|
|
- } else {
|
|
|
- $(this).siblings().removeClass('textActive');
|
|
|
- $(this).addClass('textActive');
|
|
|
- }
|
|
|
-
|
|
|
- if (hasEduClass) {
|
|
|
- $(this).siblings().removeClass('textActive');
|
|
|
- $(this).addClass('textActive');
|
|
|
- }
|
|
|
+ $(this).siblings().removeClass('textActive');
|
|
|
+ $(this).addClass('textActive');
|
|
|
}
|
|
|
|
|
|
if (hasExpClass) {
|
|
|
- var workExp = condition.workExperience.split(',');
|
|
|
- if (workExp.length == 1 && workExp[0] == ''){
|
|
|
- workExp = []
|
|
|
- }
|
|
|
- if (dataValue) {
|
|
|
- if (hasActive) {
|
|
|
- workExp.splice(workExp.indexOf(dataValue));
|
|
|
- } else {
|
|
|
- workExp.push(dataValue);
|
|
|
- }
|
|
|
- } else {
|
|
|
- workExp = [];
|
|
|
- }
|
|
|
- condition.workExperience = workExp.join(',');
|
|
|
+ condition.workExperience = dataValue;
|
|
|
getRecruitList();
|
|
|
}
|
|
|
|
|
|
if (hasEduClass) {
|
|
|
- // var edu = condition.education.split(',');
|
|
|
- // if (edu.length == 1 && edu[0] == ''){
|
|
|
- // edu = []
|
|
|
- // }
|
|
|
- // if (dataValue) {
|
|
|
- // if (hasActive) {
|
|
|
- // edu.splice(edu.indexOf(dataValue));
|
|
|
- // } else {
|
|
|
- // edu.push(dataValue);
|
|
|
- // }
|
|
|
- // } else {
|
|
|
- // edu = [];
|
|
|
- // }
|
|
|
condition.education = dataValue;
|
|
|
getRecruitList();
|
|
|
}
|
|
@@ -193,8 +157,8 @@ function initPageClick() {
|
|
|
$('.xzconfirm').on('click', function () {
|
|
|
var qsxz = $('input[name=qsxz]').val();
|
|
|
var jsxz = $('input[name=jsxz]').val();
|
|
|
- condition.minSalary = qsxz ? parseInt((qsxz.split('K')[0])*1000) : '';
|
|
|
- condition.maxSalary = jsxz ? parseInt((jsxz.split('K')[0])*1000) : '';
|
|
|
+ condition.minSalary = qsxz.indexOf('k') != -1 ? parseInt((qsxz.split('K')[0])*1000) : qsxz;
|
|
|
+ condition.maxSalary = jsxz.indexOf('k') != -1 ? parseInt((jsxz.split('K')[0])*1000) : jsxz;
|
|
|
console.log("minSalary:"+condition.minSalary);
|
|
|
console.log("maxSalary:"+condition.maxSalary);
|
|
|
getRecruitList();
|