-
+
信息来源:
{{ fullName || "-" }}
-
+
有效期限:
@@ -315,7 +315,7 @@
业小满安全提示
- 业小满严禁用人单位和招聘者用户做出任何损害求职者合法权益的违法违规行为,包括但不限于扣押求职者证件、收取求职者财物、向求职者集资、让求职者入股、诱导求职者异地入职、异地参加培训、违法违规使用求职者简历等,您一旦发现此类行为,请 立即举报
+ 业小满严禁用人单位和招聘者用户做出任何损害求职者合法权益的违法违规行为,包括但不限于扣押求职者证件、收取求职者财物、向求职者集资、让求职者入股、诱导求职者异地入职、异地参加培训、违法违规使用求职者简历等,您一旦发现此类行为,请 立即举报
@@ -660,8 +660,6 @@ export default {
let that = this;
// 计算有效期限(当前时间+48小时)
this.calcValidEndTime();
- // 获取招聘人数(12小时内不更新)
- this.getRecruitNum();
// console.log("详情", options);
// console.log("this.G.store().cdnBaseImg", this.G.store().cdnBaseImg);
if (options.id) {
@@ -697,6 +695,8 @@ export default {
this.userId = sceneJson.i.split("_")[0];
uni.setStorageSync("AGENCY_USER_ID", this.userId);
}
+ // 获取招聘人数(12小时内不更新,id变化时更新)
+ this.getRecruitNum();
// console.log("=====================", that.api.hasSee);
this.getDetail().then((res) => {
// console.log("res", res);
@@ -789,7 +789,7 @@ export default {
let minute = String(endTime.getMinutes()).padStart(2, '0');
this.validEndTime = `${year}年${month}月${day}日${hour}:${minute} 前有效`;
},
- // 获取招聘人数(12小时内不更新)
+ // 获取招聘人数(12小时内不更新,id变化时更新)
getRecruitNum() {
let storageKey = 'job_recruit_num_' + this.uid;
let storedData = uni.getStorageSync(storageKey);
@@ -797,19 +797,20 @@ export default {
if (storedData) {
let data = JSON.parse(storedData);
- // 12小时内不更新
- if (now - data.timestamp < 12 * 60 * 60 * 1000) {
+ // 验证uid是否匹配,且12小时内不更新
+ if (data.uid === this.uid && now - data.timestamp < 12 * 60 * 60 * 1000) {
this.recruitNum = data.num;
return;
}
}
- // 生成新的随机数并存储
- let num = Math.floor(Math.random() * 81) + 280;
+ // 生成新的随机数并存储(280-360之间,10的倍数)
+ let num = (Math.floor(Math.random() * 9) + 28) * 10;
this.recruitNum = num;
uni.setStorageSync(storageKey, JSON.stringify({
num: num,
- timestamp: now
+ timestamp: now,
+ uid: this.uid
}));
},
showFee() {