no message

cyl/job_im
jscyl13849007907 2 weeks ago
parent d4394c825d
commit b388643b49

@ -326,13 +326,8 @@ export default {
let locationUpdated = uni.getStorageSync("LOCATION_SETTING_UPDATED"); let locationUpdated = uni.getStorageSync("LOCATION_SETTING_UPDATED");
if (locationUpdated) { if (locationUpdated) {
uni.removeStorageSync("LOCATION_SETTING_UPDATED"); uni.removeStorageSync("LOCATION_SETTING_UPDATED");
uni.showModal({ //
title: "",
content: "您已更新默认位置",
confirmText: "点击更新",
success: (res) => {
let agencyInfo = uni.getStorageSync("agencyInfo"); let agencyInfo = uni.getStorageSync("agencyInfo");
if (res.confirm) {
that.cityLoading = true; that.cityLoading = true;
if (agencyInfo && agencyInfo.fdbHomeCity == 1) { if (agencyInfo && agencyInfo.fdbHomeCity == 1) {
uni.removeStorageSync("selectedCity"); uni.removeStorageSync("selectedCity");
@ -342,15 +337,6 @@ export default {
that.getList(); that.getList();
}); });
}); });
} else {
that.initSelectedCityByAgencyInfo().then(() => {
that.loadSelectedCityFromCache().then(() => {
that.getList();
});
});
}
}
});
} else { } else {
that.initSelectedCityByAgencyInfo().then(() => { that.initSelectedCityByAgencyInfo().then(() => {
that.loadSelectedCityFromCache().then(() => { that.loadSelectedCityFromCache().then(() => {
@ -705,6 +691,10 @@ export default {
that.cityLoading = false; that.cityLoading = false;
resolve(); resolve();
} }
// tab
if (agencyInfo && agencyInfo.fdbHomeTab !== undefined) {
that.tabInfo.active = agencyInfo.fdbHomeTab == 1 ? 0 : 1;
}
}, },
checkScroll() { checkScroll() {
let that = this; let that = this;
@ -848,11 +838,15 @@ export default {
console.log("一才职位列表:", res); console.log("一才职位列表:", res);
let resData = {}; let resData = {};
resData = res.pageBean; resData = res.pageBean;
// tab
let agencyInfo = uni.getStorageSync("agencyInfo");
if (!agencyInfo || agencyInfo.fdbHomeTab === undefined) {
if (resData.recordCount == 0) { if (resData.recordCount == 0) {
that.tabInfo.active = 0; that.tabInfo.active = 0;
} else { } else {
that.tabInfo.active = 1; that.tabInfo.active = 1;
} }
}
console.log("that.tabInfo.active", that.tabInfo.active); console.log("that.tabInfo.active", that.tabInfo.active);
callback(); callback();
}); });

Loading…
Cancel
Save