|
|
|
@ -176,7 +176,7 @@ export default {
|
|
|
|
// that.getInviteList();
|
|
|
|
// that.getInviteList();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
console.log('uni.getStorageSync("apply-supplierAccount")', uni.getStorageSync("apply-supplierAccount"));
|
|
|
|
// console.log('uni.getStorageSync("apply-supplierAccount")', uni.getStorageSync("apply-supplierAccount"));
|
|
|
|
that.updateJobInfo();
|
|
|
|
that.updateJobInfo();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
// #ifdef MP-WEIXIN
|
|
|
|
@ -184,14 +184,14 @@ export default {
|
|
|
|
// #endif
|
|
|
|
// #endif
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
console.log("mountedmountedmountedmountedmountedmounted");
|
|
|
|
// console.log("mountedmountedmountedmountedmountedmounted");
|
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
|
const query = uni.createSelectorQuery().in(this);
|
|
|
|
console.log("query", query);
|
|
|
|
// console.log("query", query);
|
|
|
|
// 选择指定的 DOM 元素
|
|
|
|
// 选择指定的 DOM 元素
|
|
|
|
query
|
|
|
|
query
|
|
|
|
.select(".tabbar")
|
|
|
|
.select(".tabbar")
|
|
|
|
.boundingClientRect((res) => {
|
|
|
|
.boundingClientRect((res) => {
|
|
|
|
console.log("resresresrserserserser", res);
|
|
|
|
// console.log("resresresrserserserser", res);
|
|
|
|
this.tabbarHeight = res.height;
|
|
|
|
this.tabbarHeight = res.height;
|
|
|
|
uni.setStorageSync("TABBAR_HEIGHT", res.height);
|
|
|
|
uni.setStorageSync("TABBAR_HEIGHT", res.height);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@ -312,7 +312,7 @@ export default {
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
"tabInfo.list": {
|
|
|
|
"tabInfo.list": {
|
|
|
|
handler(val) {
|
|
|
|
handler(val) {
|
|
|
|
console.log("tabInfo.list", val);
|
|
|
|
// console.log("tabInfo.list", val);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deep: true,
|
|
|
|
deep: true,
|
|
|
|
immediate: true,
|
|
|
|
immediate: true,
|
|
|
|
@ -338,10 +338,10 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
onReachBottom() {
|
|
|
|
onReachBottom() {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
console.log("onReachBottom", that.query.isFinish);
|
|
|
|
// console.log("onReachBottom", that.query.isFinish);
|
|
|
|
this.G.isLogin();
|
|
|
|
this.G.isLogin();
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
console.log("that.query.size", that.query.size);
|
|
|
|
// console.log("that.query.size", that.query.size);
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
that.query.page++;
|
|
|
|
that.query.page++;
|
|
|
|
that.getList("concat");
|
|
|
|
that.getList("concat");
|
|
|
|
@ -419,7 +419,7 @@ export default {
|
|
|
|
.createSelectorQuery()
|
|
|
|
.createSelectorQuery()
|
|
|
|
.select("#tttop")
|
|
|
|
.select("#tttop")
|
|
|
|
.boundingClientRect((data) => {
|
|
|
|
.boundingClientRect((data) => {
|
|
|
|
console.log("data", data);
|
|
|
|
// console.log("data", data);
|
|
|
|
if(data){
|
|
|
|
if(data){
|
|
|
|
if (data.top <= 0) {
|
|
|
|
if (data.top <= 0) {
|
|
|
|
that.toTop = true;
|
|
|
|
that.toTop = true;
|
|
|
|
@ -445,7 +445,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
reachBottom() {
|
|
|
|
reachBottom() {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
console.log("onReachBottom", that.query.isFinish);
|
|
|
|
// console.log("onReachBottom", that.query.isFinish);
|
|
|
|
if(uni.getStorageSync("apply-token")){
|
|
|
|
if(uni.getStorageSync("apply-token")){
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
if (that.query.isFinish == -1 || that.query.isFinish == that.query.size) {
|
|
|
|
that.query.page++;
|
|
|
|
that.query.page++;
|
|
|
|
@ -462,8 +462,8 @@ export default {
|
|
|
|
getList($type = "init") {
|
|
|
|
getList($type = "init") {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
console.log("job_list __F________________________", 1);
|
|
|
|
// console.log("job_list __F________________________", 1);
|
|
|
|
console.log("that.tabInfo.active", that.tabInfo.active);
|
|
|
|
// console.log("that.tabInfo.active", that.tabInfo.active);
|
|
|
|
let time = new Date().getTime();
|
|
|
|
let time = new Date().getTime();
|
|
|
|
that.G.Post(
|
|
|
|
that.G.Post(
|
|
|
|
that.api.job_list,
|
|
|
|
that.api.job_list,
|
|
|
|
@ -480,7 +480,7 @@ export default {
|
|
|
|
(res) => {
|
|
|
|
(res) => {
|
|
|
|
that.isTrigger = false;
|
|
|
|
that.isTrigger = false;
|
|
|
|
that.computeCode = 1;
|
|
|
|
that.computeCode = 1;
|
|
|
|
console.log("job_list __________________________", (new Date().getTime() - time) / 1000);
|
|
|
|
// console.log("job_list __________________________", (new Date().getTime() - time) / 1000);
|
|
|
|
// res.recordCount = 0;
|
|
|
|
// res.recordCount = 0;
|
|
|
|
// res.recordList = [];
|
|
|
|
// res.recordList = [];
|
|
|
|
|
|
|
|
|
|
|
|
@ -498,7 +498,7 @@ export default {
|
|
|
|
that.query.list = [];
|
|
|
|
that.query.list = [];
|
|
|
|
if (res.recordList.length > 0) {
|
|
|
|
if (res.recordList.length > 0) {
|
|
|
|
that.query.list = res.recordList.map((item, index) => {
|
|
|
|
that.query.list = res.recordList.map((item, index) => {
|
|
|
|
// console.log(item)
|
|
|
|
// // console.log(item)
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
...item,
|
|
|
|
...item,
|
|
|
|
title: item.jobName,
|
|
|
|
title: item.jobName,
|
|
|
|
@ -541,7 +541,7 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("首页 列表:", that.query.list);
|
|
|
|
// console.log("首页 列表:", that.query.list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -561,7 +561,7 @@ export default {
|
|
|
|
pageNum: that.attentionConfig.num,
|
|
|
|
pageNum: that.attentionConfig.num,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
(res) => {
|
|
|
|
(res) => {
|
|
|
|
console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
if (that.attentionList.length > 0) {
|
|
|
|
if (that.attentionList.length > 0) {
|
|
|
|
res.forEach((item) => {
|
|
|
|
res.forEach((item) => {
|
|
|
|
item.checked = false;
|
|
|
|
item.checked = false;
|
|
|
|
@ -673,7 +673,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
shareJob(e) {
|
|
|
|
shareJob(e) {
|
|
|
|
console.log(e);
|
|
|
|
// console.log(e);
|
|
|
|
this.currentJob = e;
|
|
|
|
this.currentJob = e;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -689,32 +689,32 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
handleUpdateTab(e) {
|
|
|
|
handleUpdateTab(e) {
|
|
|
|
console.log("e", e);
|
|
|
|
// console.log("e", e);
|
|
|
|
this.G.isLogin();
|
|
|
|
this.G.isLogin();
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.G.isLogin()) {
|
|
|
|
if (this.loading == true) {
|
|
|
|
if (this.loading == true) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("一级tab切换");
|
|
|
|
// console.log("一级tab切换");
|
|
|
|
this.tabInfo.active = e;
|
|
|
|
this.tabInfo.active = e;
|
|
|
|
this.speed = -1;
|
|
|
|
this.speed = -1;
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
this.query.page = 1;
|
|
|
|
this.query.page = 1;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("请先登录");
|
|
|
|
// console.log("请先登录");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkAllChange(e) {
|
|
|
|
checkAllChange(e) {
|
|
|
|
console.log(e);
|
|
|
|
// console.log(e);
|
|
|
|
this.attentionList.forEach((item) => {
|
|
|
|
this.attentionList.forEach((item) => {
|
|
|
|
item.checked = e.value;
|
|
|
|
item.checked = e.value;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
this.upInfo = this.getListNum();
|
|
|
|
this.upInfo = this.getListNum();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkChange(e) {
|
|
|
|
checkChange(e) {
|
|
|
|
console.log(e);
|
|
|
|
// console.log(e);
|
|
|
|
console.log(this.attentionList);
|
|
|
|
// console.log(this.attentionList);
|
|
|
|
var check = true;
|
|
|
|
var check = true;
|
|
|
|
this.attentionList.forEach((item) => {
|
|
|
|
this.attentionList.forEach((item) => {
|
|
|
|
if (item.id == e.id) {
|
|
|
|
if (item.id == e.id) {
|
|
|
|
@ -760,7 +760,7 @@ export default {
|
|
|
|
agencyIds: that.upInfo.list.join(","),
|
|
|
|
agencyIds: that.upInfo.list.join(","),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
(res) => {
|
|
|
|
(res) => {
|
|
|
|
console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
title: "关注成功",
|
|
|
|
title: "关注成功",
|
|
|
|
icon: "",
|
|
|
|
icon: "",
|
|
|
|
@ -775,7 +775,7 @@ export default {
|
|
|
|
// setTimeout(() => {}, 2000);
|
|
|
|
// setTimeout(() => {}, 2000);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onScrollToLower() {
|
|
|
|
onScrollToLower() {
|
|
|
|
console.log(123);
|
|
|
|
// console.log(123);
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
|
|
|
|
that.attentionConfig.num++;
|
|
|
|
that.attentionConfig.num++;
|
|
|
|
@ -786,24 +786,24 @@ export default {
|
|
|
|
* 筛选相关========================================================
|
|
|
|
* 筛选相关========================================================
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
deleteSex() {
|
|
|
|
deleteSex() {
|
|
|
|
console.log("deleteSex");
|
|
|
|
// console.log("deleteSex");
|
|
|
|
this.getFilterData.sex = -1;
|
|
|
|
this.getFilterData.sex = -1;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deleteAge() {
|
|
|
|
deleteAge() {
|
|
|
|
console.log("deleteAge");
|
|
|
|
// console.log("deleteAge");
|
|
|
|
this.getFilterData.ageRangeStr = "";
|
|
|
|
this.getFilterData.ageRangeStr = "";
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
deleteJobCategoryLabel(id) {
|
|
|
|
deleteJobCategoryLabel(id) {
|
|
|
|
console.log(id);
|
|
|
|
// console.log(id);
|
|
|
|
this.getFilterData.jobCategoryLabelObjects = this.getFilterData.jobCategoryLabelObjects.filter((obj) => obj.id != id);
|
|
|
|
this.getFilterData.jobCategoryLabelObjects = this.getFilterData.jobCategoryLabelObjects.filter((obj) => obj.id != id);
|
|
|
|
|
|
|
|
|
|
|
|
const idsArray = this.getFilterData.jobCategoryLabelObjects.map((obj) => obj.id);
|
|
|
|
const idsArray = this.getFilterData.jobCategoryLabelObjects.map((obj) => obj.id);
|
|
|
|
// 将数组转换为字符串
|
|
|
|
// 将数组转换为字符串
|
|
|
|
this.getFilterData.jobCategoryLabelIds = idsArray.join(",");
|
|
|
|
this.getFilterData.jobCategoryLabelIds = idsArray.join(",");
|
|
|
|
console.log("deleteJobCategoryLabel", this.getFilterData);
|
|
|
|
// console.log("deleteJobCategoryLabel", this.getFilterData);
|
|
|
|
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -812,7 +812,7 @@ export default {
|
|
|
|
const idsArray = this.getFilterData.jobSpecialLabelObjects.map((obj) => obj.id);
|
|
|
|
const idsArray = this.getFilterData.jobSpecialLabelObjects.map((obj) => obj.id);
|
|
|
|
// 将数组转换为字符串
|
|
|
|
// 将数组转换为字符串
|
|
|
|
this.getFilterData.jobSpecialLabelIds = idsArray.join(",");
|
|
|
|
this.getFilterData.jobSpecialLabelIds = idsArray.join(",");
|
|
|
|
console.log("deleteJobSpecialLabel", this.getFilterData);
|
|
|
|
// console.log("deleteJobSpecialLabel", this.getFilterData);
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
clearFilter1() {
|
|
|
|
clearFilter1() {
|
|
|
|
@ -824,21 +824,21 @@ export default {
|
|
|
|
this.scrollTo = "";
|
|
|
|
this.scrollTo = "";
|
|
|
|
this.getFilterData.sex = -1;
|
|
|
|
this.getFilterData.sex = -1;
|
|
|
|
this.getFilterData.ageRangeStr = "";
|
|
|
|
this.getFilterData.ageRangeStr = "";
|
|
|
|
console.log("this.getFilterData", this.getFilterData);
|
|
|
|
// console.log("this.getFilterData", this.getFilterData);
|
|
|
|
this.$refs.filterChild.clearFilter();
|
|
|
|
this.$refs.filterChild.clearFilter();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
that.scrollTo = "listBox";
|
|
|
|
that.scrollTo = "listBox";
|
|
|
|
console.log("aaaaaaaaa");
|
|
|
|
// console.log("aaaaaaaaa");
|
|
|
|
}, 1);
|
|
|
|
}, 1);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
receiveFromChild(data) {
|
|
|
|
receiveFromChild(data) {
|
|
|
|
console.log(data);
|
|
|
|
// console.log(data);
|
|
|
|
this.whichOneShow = "";
|
|
|
|
this.whichOneShow = "";
|
|
|
|
this.query.page = 1;
|
|
|
|
this.query.page = 1;
|
|
|
|
this.getFilterData = JSON.parse(JSON.stringify(data));
|
|
|
|
this.getFilterData = JSON.parse(JSON.stringify(data));
|
|
|
|
console.log("getFilterData in receiveFromChild", this.getFilterData);
|
|
|
|
// console.log("getFilterData in receiveFromChild", this.getFilterData);
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
// this.messageFromChild = data.message;
|
|
|
|
// this.messageFromChild = data.message;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -861,10 +861,10 @@ export default {
|
|
|
|
if (this.query.sortTag === 2) {
|
|
|
|
if (this.query.sortTag === 2) {
|
|
|
|
// 60 * 60 * 24
|
|
|
|
// 60 * 60 * 24
|
|
|
|
if (that.currentInfo.latitude && new Date().getTime() - that.currentInfo.timestamp < 1000 * 10) {
|
|
|
|
if (that.currentInfo.latitude && new Date().getTime() - that.currentInfo.timestamp < 1000 * 10) {
|
|
|
|
console.log("inTime");
|
|
|
|
// console.log("inTime");
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
console.log("outTime");
|
|
|
|
// console.log("outTime");
|
|
|
|
this.getLocation().then(() => {
|
|
|
|
this.getLocation().then(() => {
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -874,8 +874,8 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
checkLength(e) {
|
|
|
|
checkLength(e) {
|
|
|
|
console.log("e", e);
|
|
|
|
// console.log("e", e);
|
|
|
|
console.log("keyword", this.keyword);
|
|
|
|
// console.log("keyword", this.keyword);
|
|
|
|
if (e.length == 0) {
|
|
|
|
if (e.length == 0) {
|
|
|
|
this.keyword = "";
|
|
|
|
this.keyword = "";
|
|
|
|
this.searchJob();
|
|
|
|
this.searchJob();
|
|
|
|
|