|
|
|
@ -297,33 +297,6 @@ export default {
|
|
|
|
that.query.page = 1;
|
|
|
|
that.query.page = 1;
|
|
|
|
this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false;
|
|
|
|
this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false;
|
|
|
|
this.query.size = this.isLogin ? 50 : 20;
|
|
|
|
this.query.size = this.isLogin ? 50 : 20;
|
|
|
|
// 如果没有携带城市信息,则在获取完城市定位后重新触发获取城市职位
|
|
|
|
|
|
|
|
// if (!sceneInfo.query.cityInfo) {
|
|
|
|
|
|
|
|
// uni.$on("setCity", () => {
|
|
|
|
|
|
|
|
// that.G.startAbort(1);
|
|
|
|
|
|
|
|
// that.loadSelectedCityFromCache();
|
|
|
|
|
|
|
|
// that.isCheckShare(() => {
|
|
|
|
|
|
|
|
// that.getList().then(() => {
|
|
|
|
|
|
|
|
// that.showNotic = "paused";
|
|
|
|
|
|
|
|
// console.log("that.showNotic1", that.showNotic);
|
|
|
|
|
|
|
|
// that.getJobNum();
|
|
|
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
|
|
|
// if (uni.getStorageSync("miniApp-info").notice) {
|
|
|
|
|
|
|
|
// let notice = uni.getStorageSync("miniApp-info").notice;
|
|
|
|
|
|
|
|
// var reg = /[\r\n]/g;
|
|
|
|
|
|
|
|
// notice = notice.replace(reg, "");
|
|
|
|
|
|
|
|
// that.noticList = [];
|
|
|
|
|
|
|
|
// // that.noticList = notice;
|
|
|
|
|
|
|
|
// that.noticList.push(notice);
|
|
|
|
|
|
|
|
// that.showNotic = "play";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// console.log("that.noticList", that.noticList);
|
|
|
|
|
|
|
|
// }, 100);
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// that.isShowTab = true;
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
that.isCheckShare(() => {
|
|
|
|
that.isCheckShare(() => {
|
|
|
|
that.getList().then(() => {
|
|
|
|
that.getList().then(() => {
|
|
|
|
that.showNotic = "paused";
|
|
|
|
that.showNotic = "paused";
|
|
|
|
@ -345,15 +318,46 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
onShow() {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
|
|
|
|
that.cityLoading = true;
|
|
|
|
|
|
|
|
|
|
|
|
// 判断是否需要弹出申请加入弹窗(isAgency为false,且每天只弹一次)
|
|
|
|
// 判断是否需要弹出申请加入弹窗(isAgency为false,且每天只弹一次)
|
|
|
|
// that.checkShowApplyModal();
|
|
|
|
// that.checkShowApplyModal();
|
|
|
|
|
|
|
|
|
|
|
|
that.initSelectedCityByAgencyInfo().then(() => {
|
|
|
|
let locationUpdated = uni.getStorageSync("LOCATION_SETTING_UPDATED");
|
|
|
|
that.loadSelectedCityFromCache().then(() => {
|
|
|
|
if (locationUpdated) {
|
|
|
|
this.getList();
|
|
|
|
uni.removeStorageSync("LOCATION_SETTING_UPDATED");
|
|
|
|
|
|
|
|
uni.showModal({
|
|
|
|
|
|
|
|
title: "",
|
|
|
|
|
|
|
|
content: "您已更新默认位置",
|
|
|
|
|
|
|
|
confirmText: "点击更新",
|
|
|
|
|
|
|
|
success: (res) => {
|
|
|
|
|
|
|
|
let agencyInfo = uni.getStorageSync("agencyInfo");
|
|
|
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
|
|
|
that.cityLoading = true;
|
|
|
|
|
|
|
|
if (agencyInfo && agencyInfo.fdbHomeCity == 1) {
|
|
|
|
|
|
|
|
uni.removeStorageSync("selectedCity");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
that.initSelectedCityByAgencyInfo().then(() => {
|
|
|
|
|
|
|
|
that.loadSelectedCityFromCache().then(() => {
|
|
|
|
|
|
|
|
that.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.initSelectedCityByAgencyInfo().then(() => {
|
|
|
|
|
|
|
|
that.loadSelectedCityFromCache().then(() => {
|
|
|
|
|
|
|
|
that.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
|
|
|
|
that.initSelectedCityByAgencyInfo().then(() => {
|
|
|
|
|
|
|
|
that.loadSelectedCityFromCache().then(() => {
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 尝试从缓存获取miniApp-info,如果不存在则请求API获取
|
|
|
|
// 尝试从缓存获取miniApp-info,如果不存在则请求API获取
|
|
|
|
let miniAppInfo = uni.getStorageSync("miniApp-info");
|
|
|
|
let miniAppInfo = uni.getStorageSync("miniApp-info");
|
|
|
|
@ -683,6 +687,7 @@ export default {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
if (agencyInfo && agencyInfo.fdbHomeCity !== undefined) {
|
|
|
|
if (agencyInfo && agencyInfo.fdbHomeCity !== undefined) {
|
|
|
|
if (agencyInfo.fdbHomeCity == 1) {
|
|
|
|
if (agencyInfo.fdbHomeCity == 1) {
|
|
|
|
|
|
|
|
that.selectedCity = "全国";
|
|
|
|
that.cityLoading = false;
|
|
|
|
that.cityLoading = false;
|
|
|
|
resolve();
|
|
|
|
resolve();
|
|
|
|
} else if (agencyInfo.fdbHomeCity == 0) {
|
|
|
|
} else if (agencyInfo.fdbHomeCity == 0) {
|
|
|
|
|