no message

cyl/job_im
jscyl13849007907 2 weeks ago
parent d4394c825d
commit b388643b49

@ -326,30 +326,16 @@ 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: "", let agencyInfo = uni.getStorageSync("agencyInfo");
content: "您已更新默认位置", that.cityLoading = true;
confirmText: "点击更新", if (agencyInfo && agencyInfo.fdbHomeCity == 1) {
success: (res) => { uni.removeStorageSync("selectedCity");
let agencyInfo = uni.getStorageSync("agencyInfo"); }
if (res.confirm) { that.initSelectedCityByAgencyInfo().then(() => {
that.cityLoading = true; that.loadSelectedCityFromCache().then(() => {
if (agencyInfo && agencyInfo.fdbHomeCity == 1) { that.getList();
uni.removeStorageSync("selectedCity"); });
}
that.initSelectedCityByAgencyInfo().then(() => {
that.loadSelectedCityFromCache().then(() => {
that.getList();
});
});
} else {
that.initSelectedCityByAgencyInfo().then(() => {
that.loadSelectedCityFromCache().then(() => {
that.getList();
});
});
}
}
}); });
} else { } else {
that.initSelectedCityByAgencyInfo().then(() => { that.initSelectedCityByAgencyInfo().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,10 +838,14 @@ export default {
console.log("一才职位列表:", res); console.log("一才职位列表:", res);
let resData = {}; let resData = {};
resData = res.pageBean; resData = res.pageBean;
if (resData.recordCount == 0) { // tab
that.tabInfo.active = 0; let agencyInfo = uni.getStorageSync("agencyInfo");
} else { if (!agencyInfo || agencyInfo.fdbHomeTab === undefined) {
that.tabInfo.active = 1; if (resData.recordCount == 0) {
that.tabInfo.active = 0;
} else {
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