|
|
|
|
@ -398,6 +398,30 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.hideLeft();
|
|
|
|
|
that.getType();
|
|
|
|
|
},
|
|
|
|
|
getType(){
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/yishoudan/labels/type/app/95",
|
|
|
|
|
method: "get",
|
|
|
|
|
header: app.globalData.headers,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
let classifyList = "filterData.classifyList";
|
|
|
|
|
that.setData({
|
|
|
|
|
[classifyList]: res.data.data.labels,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id
|
|
|
|
|
// that.setData({
|
|
|
|
|
// list:res.data.data.labels,
|
|
|
|
|
// storeJobListSearchForm: that.data.storeJobListSearchForm
|
|
|
|
|
// })
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
toSpecialArea: function (e) {
|
|
|
|
|
var id = e.currentTarget.dataset.id;
|
|
|
|
|
@ -597,17 +621,14 @@ Page({
|
|
|
|
|
getListByTypeAndIndustry: function () {
|
|
|
|
|
var that = this;
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + "/labels/getListByTypeAndIndustry",
|
|
|
|
|
data: {
|
|
|
|
|
type: 90,
|
|
|
|
|
industry: 2,
|
|
|
|
|
},
|
|
|
|
|
url: app.globalData.ip + "/yishoudan/labels/type/app/90",
|
|
|
|
|
|
|
|
|
|
header: app.globalData.header,
|
|
|
|
|
method: "GET",
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res.data.data);
|
|
|
|
|
wx.setStorageSync("FILTER_LIST", res.data.data);
|
|
|
|
|
res.data.data.forEach((item) => {
|
|
|
|
|
console.log(res.data.data.labels);
|
|
|
|
|
wx.setStorageSync("FILTER_LIST", res.data.data.labels);
|
|
|
|
|
res.data.data.labels.forEach((item) => {
|
|
|
|
|
if (item.typeClassify == "0") {
|
|
|
|
|
that.data.tagArray0.push(item);
|
|
|
|
|
} else if (item.typeClassify == "1") {
|
|
|
|
|
@ -631,7 +652,7 @@ Page({
|
|
|
|
|
var jobSpecialLabelIdArray =
|
|
|
|
|
that.data.storeJobListSearchForm.jobSpecialLabelIds.split(",");
|
|
|
|
|
|
|
|
|
|
res.data.data.forEach((item) => {
|
|
|
|
|
res.data.data.labels.forEach((item) => {
|
|
|
|
|
item["checked"] = false;
|
|
|
|
|
jobSpecialLabelIdArray.forEach((item1) => {
|
|
|
|
|
if (item.id == item1) {
|
|
|
|
|
@ -641,7 +662,7 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
jobSpecialLabelList: res.data.data,
|
|
|
|
|
jobSpecialLabelList: res.data.data.labels,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
@ -1016,7 +1037,6 @@ Page({
|
|
|
|
|
[jobFilter]: this.data.filterData.jobFilter,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wx.getStorageSync("CLASSIFY_LIST")) {
|
|
|
|
|
this.data.filterData.classifyList = wx.getStorageSync("CLASSIFY_LIST");
|
|
|
|
|
this.data.filterData.classifyList.forEach((item) => {
|
|
|
|
|
@ -1027,6 +1047,7 @@ Page({
|
|
|
|
|
[classifyList]: this.data.filterData.classifyList,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
copyList: JSON.parse(JSON.stringify(this.data.filterData)),
|
|
|
|
|
});
|
|
|
|
|
@ -2916,9 +2937,6 @@ Page({
|
|
|
|
|
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);
|
|
|
|
|
// console.log(filter.classifyList[ind]);
|
|
|
|
|
// filter.classifyList[ind].active = false;
|
|
|
|
|
this.toList();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|