|
|
|
|
@ -96,7 +96,7 @@
|
|
|
|
|
<!-- bindtap="shareJobList" -->
|
|
|
|
|
<button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" :open-type="checkedList.length > 0 ? 'share' : ''" :class="checkedList.length > 0 ? '' : 'ban'">分享职位</button>
|
|
|
|
|
<button :hover-class="checkedList.length > 0 ? 'btnHover' : ''" @click="copyTrans" :class="checkedList.length > 0 ? '' : 'ban'">复制详单</button>
|
|
|
|
|
<!-- <button :hover-class="checkedList.length > 0 && checkedList.length <= 3 ? 'btnHover' : ''" @click="sharePoster" :class="checkedList.length > 0 && checkedList.length <= 3 ? '' : 'ban'">分享海报</button> -->
|
|
|
|
|
<button :hover-class="checkedList.length > 0 && checkedList.length <= 3 ? 'btnHover' : ''" @click="sharePoster" :class="checkedList.length > 0 && checkedList.length <= 3 ? '' : 'ban'">分享海报</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- </div> -->
|
|
|
|
|
@ -138,7 +138,7 @@ export default {
|
|
|
|
|
console.log(res);
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
resolve({
|
|
|
|
|
title: "你想找的厂都有,立即查看??",
|
|
|
|
|
title: "你想找的厂都有,立即查看",
|
|
|
|
|
imageUrl: res.tempFilePath,
|
|
|
|
|
path: `/root/home/shareList?scene=i=${arr.join("_")},u=${this.userInfo.agencyId}_${this.userInfo.id}`,
|
|
|
|
|
// path: '/pages/shareList/index'
|
|
|
|
|
@ -352,12 +352,11 @@ export default {
|
|
|
|
|
...that.getFilterData,
|
|
|
|
|
pageNum: that.query.page,
|
|
|
|
|
pageSize: that.query.size,
|
|
|
|
|
agencyId: that.tabInfo.active == 2 ? uni.getStorageSync("apply-agencyId") : "",
|
|
|
|
|
agencyId: that.tabInfo.active == 1 ? uni.getStorageSync("apply-agencyId") : "",
|
|
|
|
|
classify: that.tabInfo.list[that.tabInfo.active].classify,
|
|
|
|
|
sortTag: that.query.sortTag,
|
|
|
|
|
keys: that.keyword,
|
|
|
|
|
cityName: that.selectedCity == "全国" ? "" : that.selectedCity,
|
|
|
|
|
tip: that.tabInfo.list[that.tabInfo.active].tip,
|
|
|
|
|
};
|
|
|
|
|
if (that.tabInfo.list[that.tabInfo.active].classify == 1) {
|
|
|
|
|
params.jobType = 2;
|
|
|
|
|
@ -495,36 +494,29 @@ export default {
|
|
|
|
|
* 复制转发选中职位的通告信息
|
|
|
|
|
*/
|
|
|
|
|
copyTrans() {
|
|
|
|
|
var that = this;
|
|
|
|
|
if (this.checkedList.length > 0) {
|
|
|
|
|
let str = "";
|
|
|
|
|
this.checkedList.forEach((item, index) => {
|
|
|
|
|
console.log(item);
|
|
|
|
|
// console.log(item.jobDesp);
|
|
|
|
|
let subStr;
|
|
|
|
|
if (item.jobInfoWithoutReturnFee) {
|
|
|
|
|
// 通告中是否有职位名的判断, 没有就手动拼接
|
|
|
|
|
// if (item.jobInfo.indexOf(item.jobName) > -1) {
|
|
|
|
|
// subStr = item.jobInfo + (this.userInfo.agencyStatus == 1 ? (this.userInfo.noticeEndStr ? this.userInfo.noticeEndStr : "\n\n详情咨询:" + this.userInfo.tel) : "\n\n详情咨询:" + (this.serviceInfo.userName || "") + (this.serviceInfo.workPhone || "-")) + (index < this.checkedList.length - 1 ? "\n\n\n" : "");
|
|
|
|
|
// } else {
|
|
|
|
|
subStr = item.jobInfoWithoutReturnFee;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
str += subStr;
|
|
|
|
|
});
|
|
|
|
|
uni.setClipboardData({
|
|
|
|
|
data: str,
|
|
|
|
|
success(res) {
|
|
|
|
|
uni.getClipboardData({
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log(res.data); // data
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "通告内容已复制",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1500,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
let ids = "";
|
|
|
|
|
ids = this.checkedList.map((item) => item.id).join("_");
|
|
|
|
|
that.G.Get(that.api.get_getJobText, { storeJobIds: ids }, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
let str = "";
|
|
|
|
|
res.forEach((item, index) => {
|
|
|
|
|
console.log(item);
|
|
|
|
|
if (item.jobInfoWithoutReturnFee) {
|
|
|
|
|
str += item.jobInfoWithoutReturnFee + "\n";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
uni.setClipboardData({
|
|
|
|
|
data: str,
|
|
|
|
|
success(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "通告内容已复制",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1500,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -556,6 +548,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
getCode() {
|
|
|
|
|
var that = this;
|
|
|
|
|
let _env = uni.getAccountInfoSync().miniProgram.envVersion;
|
|
|
|
|
console.log('_env',_env);
|
|
|
|
|
return new Promise((resolve, reject) => {
|
|
|
|
|
// if (this.checkedList.length == 1) {
|
|
|
|
|
// that.G.Get(that.api.get_singlejob_QRcode + `/${that.checkedList[0].id}`, {}, (res) => {
|
|
|
|
|
@ -564,7 +558,7 @@ export default {
|
|
|
|
|
// resolve();
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
that.G.Get(that.api.get_job_QRcode, { storeJobIds: that.checkedList.map((item) => item.id).join(",") }, (res) => {
|
|
|
|
|
that.G.Get(that.api.get_job_QRcode, { storeJobIds: that.checkedList.map((item) => item.id).join(","), env: _env }, (res) => {
|
|
|
|
|
console.log("get_job_QRcode", res);
|
|
|
|
|
that.currCode = res.qrcode;
|
|
|
|
|
resolve();
|
|
|
|
|
|