|
|
|
@ -636,57 +636,7 @@ Page({
|
|
|
|
console.log("清除成功");
|
|
|
|
console.log("清除成功");
|
|
|
|
},
|
|
|
|
},
|
|
|
|
inputBlur () { },
|
|
|
|
inputBlur () { },
|
|
|
|
getListByTypeAndIndustry: function () {
|
|
|
|
getListByTypeAndIndustry: function () {},
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
wx.request({
|
|
|
|
|
|
|
|
url: app.globalData.ip + "/labels/getListByTypeAndIndustry",
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
type: 90,
|
|
|
|
|
|
|
|
industry: 2,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
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) => {
|
|
|
|
|
|
|
|
if (item.typeClassify == "0") {
|
|
|
|
|
|
|
|
that.data.tagArray0.push(item);
|
|
|
|
|
|
|
|
} else if (item.typeClassify == "1") {
|
|
|
|
|
|
|
|
that.data.tagArray1.push(item);
|
|
|
|
|
|
|
|
} else if (item.typeClassify == "2") {
|
|
|
|
|
|
|
|
that.data.tagArray2.push(item);
|
|
|
|
|
|
|
|
} else if (item.typeClassify == "3") {
|
|
|
|
|
|
|
|
that.data.tagArray3.push(item);
|
|
|
|
|
|
|
|
} else if (item.typeClassify == "4") {
|
|
|
|
|
|
|
|
that.data.tagArray4.push(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
tagArray0: that.data.tagArray0,
|
|
|
|
|
|
|
|
tagArray1: that.data.tagArray1,
|
|
|
|
|
|
|
|
tagArray2: that.data.tagArray2,
|
|
|
|
|
|
|
|
tagArray3: that.data.tagArray3,
|
|
|
|
|
|
|
|
tagArray4: that.data.tagArray4,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var jobSpecialLabelIdArray = that.data.storeJobListSearchForm.jobSpecialLabelIds.split(",");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
res.data.data.forEach((item) => {
|
|
|
|
|
|
|
|
item["checked"] = false;
|
|
|
|
|
|
|
|
jobSpecialLabelIdArray.forEach((item1) => {
|
|
|
|
|
|
|
|
if (item.id == item1) {
|
|
|
|
|
|
|
|
item["checked"] = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
jobSpecialLabelList: res.data.data,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
golistSharePage () {
|
|
|
|
golistSharePage () {
|
|
|
|
if (this.data.isLogin) {
|
|
|
|
if (this.data.isLogin) {
|
|
|
|
if (app.globalData.loginUserInfo.agencyStatus == 1) {
|
|
|
|
if (app.globalData.loginUserInfo.agencyStatus == 1) {
|
|
|
|
@ -706,57 +656,6 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getBrandNameAllList: function () {
|
|
|
|
getBrandNameAllList: function () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.request({
|
|
|
|
|
|
|
|
url: app.globalData.ip + "/labels/type/95", // 分类列表获取接口
|
|
|
|
|
|
|
|
header: app.globalData.header,
|
|
|
|
|
|
|
|
method: "GET",
|
|
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
|
|
|
if (that.data.storeJobListSearchForm.brandIds) {
|
|
|
|
|
|
|
|
var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(",");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(res.data.data.labels);
|
|
|
|
|
|
|
|
wx.setStorageSync("CLASSIFY_LIST", res.data.data.labels);
|
|
|
|
|
|
|
|
res.data.data.labels.forEach((item) => {
|
|
|
|
|
|
|
|
item["checked"] = false;
|
|
|
|
|
|
|
|
if (brandIdArray) {
|
|
|
|
|
|
|
|
brandIdArray.forEach((item1) => {
|
|
|
|
|
|
|
|
if (item.id == item1) {
|
|
|
|
|
|
|
|
item["checked"] = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
|
|
|
brandList: res.data.data.labels,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
// wx.request({
|
|
|
|
|
|
|
|
// url: app.globalData.ip + "/brand/getBrandNameAllList", // 品牌列表获取接口
|
|
|
|
|
|
|
|
// data: {},
|
|
|
|
|
|
|
|
// header: app.globalData.header,
|
|
|
|
|
|
|
|
// method: "GET",
|
|
|
|
|
|
|
|
// success: function (res) {
|
|
|
|
|
|
|
|
// console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// var brandIdArray = that.data.storeJobListSearchForm.brandIds.split(",");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// res.data.data.forEach((item) => {
|
|
|
|
|
|
|
|
// item["checked"] = false;
|
|
|
|
|
|
|
|
// brandIdArray.forEach((item1) => {
|
|
|
|
|
|
|
|
// if (item.id == item1) {
|
|
|
|
|
|
|
|
// item["checked"] = true;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// that.setData({
|
|
|
|
|
|
|
|
// brandList: res.data.data,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
selectBrand: function (e) {
|
|
|
|
selectBrand: function (e) {
|
|
|
|
@ -1094,8 +993,6 @@ Page({
|
|
|
|
copyList: JSON.parse(JSON.stringify(this.data.filterData)),
|
|
|
|
copyList: JSON.parse(JSON.stringify(this.data.filterData)),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// that.getJobList();
|
|
|
|
// that.getJobList();
|
|
|
|
that.getBannerList();
|
|
|
|
|
|
|
|
that.getchannelList();
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onReady () {
|
|
|
|
onReady () {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
@ -1186,7 +1083,7 @@ Page({
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
bannerList: res.data.data.banners,
|
|
|
|
bannerList: res.data.data.pageBean.banners,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -1199,19 +1096,19 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
getTemplateList () {
|
|
|
|
getTemplateList () {
|
|
|
|
let that = this;
|
|
|
|
// let that = this;
|
|
|
|
wx.request({
|
|
|
|
// wx.request({
|
|
|
|
url: app.globalData.ip + "/daotian/image/list",
|
|
|
|
// url: app.globalData.ip + "/daotian/image/list",
|
|
|
|
success (res) {
|
|
|
|
// success (res) {
|
|
|
|
console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
// if (res.data.status == 200) {
|
|
|
|
app.globalData.templateList = res.data.data.images;
|
|
|
|
// app.globalData.templateList = res.data.data.pageBean.images;
|
|
|
|
that.setData({
|
|
|
|
// that.setData({
|
|
|
|
templateList: res.data.data.images,
|
|
|
|
// templateList: res.data.data.pageBean.images,
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -1227,7 +1124,7 @@ Page({
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
navList: res.data.data.channels,
|
|
|
|
navList: res.data.data.pageBean.channels,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -1618,7 +1515,7 @@ Page({
|
|
|
|
header: app.globalData.headers,
|
|
|
|
header: app.globalData.headers,
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
let collectList = res.data.data.recordList;
|
|
|
|
let collectList = res.data.data.pageBean.recordList;
|
|
|
|
let jobs = that.data.recordList;
|
|
|
|
let jobs = that.data.recordList;
|
|
|
|
if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) {
|
|
|
|
if (collectList != null && collectList != "" && collectList != undefined && collectList.length != 0 && jobs != null && jobs != "" && jobs != undefined && jobs.length != 0) {
|
|
|
|
for (var j = 0; j != jobs.length; ++j) {
|
|
|
|
for (var j = 0; j != jobs.length; ++j) {
|
|
|
|
@ -1815,7 +1712,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log(that.data.storeJobListSearchForm);
|
|
|
|
console.log(that.data.storeJobListSearchForm);
|
|
|
|
wx.request({
|
|
|
|
wx.request({
|
|
|
|
url: app.globalData.ip + "/overall/store/job/list",
|
|
|
|
url: app.globalData.ip + "/yishoudan/custom/job/listApp",
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
header: app.globalData.headers,
|
|
|
|
header: app.globalData.headers,
|
|
|
|
data: that.data.storeJobListSearchForm,
|
|
|
|
data: that.data.storeJobListSearchForm,
|
|
|
|
@ -1824,8 +1721,8 @@ Page({
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
totalPage: res.data.data.pageCount,
|
|
|
|
totalPage: res.data.data.pageBean.pageCount,
|
|
|
|
currPage: res.data.data.currentPage,
|
|
|
|
currPage: res.data.data.pageBean.currentPage,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(function () {
|
|
|
|
setTimeout(function () {
|
|
|
|
@ -1833,8 +1730,8 @@ Page({
|
|
|
|
triggered: false,
|
|
|
|
triggered: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, 1000);
|
|
|
|
}, 1000);
|
|
|
|
if (res.data.data.recordList == null || res.data.data.recordList.length == 0 || res.data.data.recordList.length < that.data.storeJobListSearchForm.pageSize) {
|
|
|
|
if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.data.storeJobListSearchForm.pageSize) {
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
@ -1843,7 +1740,7 @@ Page({
|
|
|
|
isTrigger: false,
|
|
|
|
isTrigger: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.recordList);
|
|
|
|
var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
that.data.recordList = that.data.recordList.concat(jobListTemp);
|
|
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
@ -1887,7 +1784,7 @@ Page({
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
recordList: that.data.recordList,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
currentJobDrawer: that.data.currentJobDrawer,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// if (that.data.recordList.length < res.data.data.recordCount) {
|
|
|
|
// if (that.data.recordList.length < res.data.data.pageBean.recordCount) {
|
|
|
|
// that.setData({
|
|
|
|
// that.setData({
|
|
|
|
// hasMoreData: true,
|
|
|
|
// hasMoreData: true,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
@ -2156,8 +2053,8 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
app.globalData.openId = res.data.data.openId;
|
|
|
|
app.globalData.openId = res.data.data.pageBean.openId;
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
|
|
|
|
var collected = e.currentTarget.dataset.collected;
|
|
|
|
var collected = e.currentTarget.dataset.collected;
|
|
|
|
if (collected) {
|
|
|
|
if (collected) {
|
|
|
|
promise.then((res) => {
|
|
|
|
promise.then((res) => {
|
|
|
|
@ -2210,7 +2107,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
|
|
|
|
var collected = e.currentTarget.dataset.collected;
|
|
|
|
var collected = e.currentTarget.dataset.collected;
|
|
|
|
if (collected) {
|
|
|
|
if (collected) {
|
|
|
|
promise.then((res) => {
|
|
|
|
promise.then((res) => {
|
|
|
|
@ -2223,7 +2120,7 @@ Page({
|
|
|
|
promise.then((res) => {
|
|
|
|
promise.then((res) => {
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
url: "../enroll/index?applyType=1",
|
|
|
|
url: "../enroll/index?applyType=1",
|
|
|
|
//url: "../enroll/index?applyType=1&tel=" + res.data.data.phoneNumber
|
|
|
|
//url: "../enroll/index?applyType=1&tel=" + res.data.data.pageBean.phoneNumber
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -2288,7 +2185,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
|
|
|
|
promise.then((res) => {
|
|
|
|
promise.then((res) => {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
@ -2319,7 +2216,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
success: function (res) {
|
|
|
|
success: function (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.phoneNumber, null);
|
|
|
|
let promise = app.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null);
|
|
|
|
promise.then((res) => {
|
|
|
|
promise.then((res) => {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
@ -2368,8 +2265,8 @@ Page({
|
|
|
|
console.log("获取来源对应的代理人,来源ID:", id);
|
|
|
|
console.log("获取来源对应的代理人,来源ID:", id);
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
if (app.isNotEmptyCheck(res.data.data)) {
|
|
|
|
if (app.isNotEmptyCheck(res.data.data.pageBean)) {
|
|
|
|
wx.setStorageSync("storageSyncAgencyUserId", res.data.data);
|
|
|
|
wx.setStorageSync("storageSyncAgencyUserId", res.data.data.pageBean);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//先设置代理人缓存人再登录
|
|
|
|
//先设置代理人缓存人再登录
|
|
|
|
app.getLoginUserTokenInfo();
|
|
|
|
app.getLoginUserTokenInfo();
|
|
|
|
|