|
|
|
|
@ -256,32 +256,52 @@ export default {
|
|
|
|
|
this.isLogin = uni.getStorageSync("apply-userinfo") ? true : false;
|
|
|
|
|
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;
|
|
|
|
|
});
|
|
|
|
|
// 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.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;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
let that = this;
|
|
|
|
|
|