diff --git a/root/detail/job.vue b/root/detail/job.vue index b9b86ac..2c831ba 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -166,6 +166,19 @@ + + + + + + 复制 + +
+ {{ jobDetail.newdesc || "-" }} +
+
+
+
@@ -464,6 +477,10 @@ export default { name: "通告分享", key: "1", }, + { + name: "原始通告", + key: "2", + }, ], active: 0, }, @@ -954,8 +971,22 @@ export default { that.jobDetail.logo = that.jobDetail.logo.indexOf("http:") > -1 ? that.jobDetail.logo.replace("http:", "https:") : that.jobDetail.logo; that.jobDetail.newXmf = uni.getStorageSync('apply-agencyId') == uni.getStorageSync('pgy-agency-id') ? (res.agencyId == uni.getStorageSync('apply-agencyId') ? (res.upAgencyName || res.upProviderName) : res.agencyName) : - '' - + ''; + + // 脱敏版 cozeStructureRes safeNotice + if (uni.getStorageSync("apply-token")) {// 登录 + if(uni.getStorageSync('AGENCY_ID')){ + if(uni.getStorageSync('AGENCY_ID') == that.jobDetail){// 本团队-原始版-lastNotice + that.jobDetail.newdesc = that.jobDetail.lastNotice; + }else{// 仅是代理 -标准版-jobInfo + that.jobDetail.newdesc = that.jobDetail.jobInfo; + } + }else{// 非代理 -标准版-jobInfo + that.jobDetail.newdesc = that.jobDetail.jobInfo; + } + } else{ + that.jobDetail.newdesc = '仅登录可见' + } setTimeout(() => { @@ -1489,6 +1520,23 @@ export default { }, }); }, + setCops(e){ + var that = this; + let text = that.jobDetail.newdesc; + uni.setClipboardData({ + data: text, + success(res) { + uni.getClipboardData({ + success(res) { + uni.showToast({ + title: "复制成功", + icon: "success", + }); + }, + }); + }, + }); + }, handleSubmit() { let that = this; // console.log("that.formInfo", that.formInfo); @@ -1764,18 +1812,20 @@ export default { pushSetToken(_type) { let that = this; that.G.checkToken().then(() => { - that.isLogin = true; - that.loginInfo = uni.getStorageSync("apply-userinfo"); - //联系客服 - if (_type == "relationService") { - that.showService(); - //报名 - } else if (_type == "record") { - that.handleOpenApplyPopup(); - //职位推送 - } else if (_type == "pushJob") { - that.handlePushJob("allow"); - } + that.getDetail().then(()=>{ + that.isLogin = true; + that.loginInfo = uni.getStorageSync("apply-userinfo"); + //联系客服 + if (_type == "relationService") { + that.showService(); + //报名 + } else if (_type == "record") { + that.handleOpenApplyPopup(); + //职位推送 + } else if (_type == "pushJob") { + that.handlePushJob("allow"); + } + }) }); }, setType(e) {