|
|
|
|
@ -75,14 +75,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</block>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="specialTag" wx:if="{{selectJobList.length > 0}}">
|
|
|
|
|
<block wx:for="{{selectJobList}}" wx:key="index">
|
|
|
|
|
<div class="por" catchtap="deleteMark" data-item="{{item}}">
|
|
|
|
|
{{item.name}}
|
|
|
|
|
<div class="clear_icon iconfont icon-qingchu"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</block>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear" @click.stop="clearFilter1" data-type="outerClear">
|
|
|
|
|
<span class="iconfont icon-shanchu f14"></span>
|
|
|
|
|
@ -104,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> -->
|
|
|
|
|
@ -144,11 +136,11 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.getCanvas(this.shareJobBaseImg, "setJob").then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
resolve({
|
|
|
|
|
title: "你想找的厂都有,立即查看??",
|
|
|
|
|
imageUrl: res.tempFilePath,
|
|
|
|
|
path: `/root/detail/shareList?scene=i=${arr.join("_")},u=${this.appInfo.id}`,
|
|
|
|
|
path: `/root/home/shareList?scene=i=${arr.join("_")},u=${this.userInfo.agencyId}_${this.userInfo.id}`,
|
|
|
|
|
// path: '/pages/shareList/index'
|
|
|
|
|
});
|
|
|
|
|
// return
|
|
|
|
|
@ -257,7 +249,7 @@ export default {
|
|
|
|
|
methods: {
|
|
|
|
|
loadSelectedCityFromCache() {
|
|
|
|
|
// 假设缓存中的键名为 'selectedCity'
|
|
|
|
|
const cachedCity = wx.getStorageSync("selectedCity");
|
|
|
|
|
const cachedCity = uni.getStorageSync("selectedCity");
|
|
|
|
|
if (cachedCity && this.selectedCity != cachedCity) {
|
|
|
|
|
this.selectedCity = cachedCity;
|
|
|
|
|
this.getList();
|
|
|
|
|
@ -417,20 +409,20 @@ export default {
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, "jiaofu"),
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
active: that.tabInfo.active,
|
|
|
|
|
isToday: item.today == 0 ? false : true,
|
|
|
|
|
tip: that.tabInfo.list[that.tabInfo.active].tip,
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, "jiaofu"),
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
active: that.tabInfo.active,
|
|
|
|
|
isToday: item.today == 0 ? false : true,
|
|
|
|
|
tip: that.tabInfo.list[that.tabInfo.active].tip,
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
@ -438,21 +430,21 @@ export default {
|
|
|
|
|
res.recordList.map((item, index) => {
|
|
|
|
|
return {
|
|
|
|
|
...item,
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, "jiaofu"),
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
active: that.tabInfo.active,
|
|
|
|
|
isToday: item.today == 0 ? false : true,
|
|
|
|
|
tip: that.tabInfo.list[that.tabInfo.active].tip,
|
|
|
|
|
title: item.jobName,
|
|
|
|
|
address: item.district + item.age,
|
|
|
|
|
price: item.salaryClassify != 7 ? that.G.getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue) : that.G.getSalaryClassifyValue(item.salaryClassify, item.minMonthlyPay, item.maxMonthlyPay),
|
|
|
|
|
logo: item.agencyLogo,
|
|
|
|
|
time: that.G.setDeadLine(item.updateTime, "jiaofu"),
|
|
|
|
|
fuWuFei: that.G.setReturnFee(item.returnFee, item.returnFeeType),
|
|
|
|
|
gender: that.G.getGenderByMinAge(item),
|
|
|
|
|
leafCateId: item.id,
|
|
|
|
|
// serverPrice: that.tabInfo.list[that.tabInfo.active].tip == 2 ? that.G.setReturnFee(item.returnFee, item.returnFeeType) : that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
serverPrice: that.G.setReturnFee(item.agencyReturnFee, item.agencyReturnFeeType),
|
|
|
|
|
recruitmentSwitch: item.recruitment == 1 ? true : false,
|
|
|
|
|
recruitmentImage: item.recruitment,
|
|
|
|
|
active: that.tabInfo.active,
|
|
|
|
|
isToday: item.today == 0 ? false : true,
|
|
|
|
|
tip: that.tabInfo.list[that.tabInfo.active].tip,
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
);
|
|
|
|
|
@ -519,13 +511,13 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
str += subStr;
|
|
|
|
|
});
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
uni.setClipboardData({
|
|
|
|
|
data: str,
|
|
|
|
|
success(res) {
|
|
|
|
|
wx.getClipboardData({
|
|
|
|
|
uni.getClipboardData({
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log(res.data); // data
|
|
|
|
|
wx.showToast({
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "通告内容已复制",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1500,
|
|
|
|
|
@ -544,7 +536,7 @@ export default {
|
|
|
|
|
if (this.checkedList.length == 0 || this.checkedList.length > 3) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
wx.showLoading({
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: "生成中...",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -552,7 +544,7 @@ export default {
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.getCanvas(this.sharelImg, "setShare").then((res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
this.posterImg = res.tempFilePath;
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
this.posterShow = true;
|
|
|
|
|
@ -573,7 +565,7 @@ export default {
|
|
|
|
|
// });
|
|
|
|
|
// } else {
|
|
|
|
|
that.G.Get(that.api.get_job_QRcode, { storeJobIds: that.checkedList.map((item) => item.id).join(",") }, (res) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
console.log("get_job_QRcode", res);
|
|
|
|
|
that.currCode = res.qrcode;
|
|
|
|
|
resolve();
|
|
|
|
|
});
|
|
|
|
|
@ -586,7 +578,7 @@ export default {
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
|
var mycenter = 0; //文字左右居中显示
|
|
|
|
|
var myheight = 0; //文字高度
|
|
|
|
|
const query = wx.createSelectorQuery();
|
|
|
|
|
const query = uni.createSelectorQuery();
|
|
|
|
|
query
|
|
|
|
|
.select("#canvasId")
|
|
|
|
|
.fields({ node: true, size: true })
|
|
|
|
|
@ -596,7 +588,7 @@ export default {
|
|
|
|
|
const ctx = canvas.getContext("2d");
|
|
|
|
|
new Promise(function (resolve) {
|
|
|
|
|
// 绘制背景图片
|
|
|
|
|
wx.getImageInfo({
|
|
|
|
|
uni.getImageInfo({
|
|
|
|
|
src: sharelImg, // 网络图片
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
@ -637,7 +629,7 @@ export default {
|
|
|
|
|
n = i;
|
|
|
|
|
}
|
|
|
|
|
initHeight = lh * r;
|
|
|
|
|
// wx.setStorageSync("initHeight", initHeight);
|
|
|
|
|
// uni.setStorageSync("initHeight", initHeight);
|
|
|
|
|
};
|
|
|
|
|
const roundRect = (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r) => {
|
|
|
|
|
// 开始绘制
|
|
|
|
|
@ -679,15 +671,15 @@ export default {
|
|
|
|
|
if (type == "setJob") {
|
|
|
|
|
this.setShareJobImg(ctx, canvas, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak })
|
|
|
|
|
.then(function (canvas1) {
|
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
|
uni.canvasToTempFilePath({
|
|
|
|
|
canvas: canvas1,
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
resolve(res);
|
|
|
|
|
},
|
|
|
|
|
fail(res) {
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
wx.showToast({
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.errMsg,
|
|
|
|
|
icon: "error",
|
|
|
|
|
});
|
|
|
|
|
@ -696,23 +688,23 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
wx.showToast({
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "生成失败,请重试",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
} else if (type == "setShare") {
|
|
|
|
|
this.setShareImg(ctx, canvas, mycenter, { roundRect1, roundRect_yuan, roundRect, fillTextLineBreak })
|
|
|
|
|
.then(function (canvas1) {
|
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
|
uni.canvasToTempFilePath({
|
|
|
|
|
canvas: canvas1,
|
|
|
|
|
success(res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
resolve(res);
|
|
|
|
|
},
|
|
|
|
|
fail(res) {
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
wx.showToast({
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.errMsg,
|
|
|
|
|
icon: "error",
|
|
|
|
|
});
|
|
|
|
|
@ -721,8 +713,8 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
wx.showToast({
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "生成失败,请重试",
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
@ -768,7 +760,7 @@ export default {
|
|
|
|
|
markTop = 2 * 115;
|
|
|
|
|
console.log(123);
|
|
|
|
|
console.log("https://daotian.matripe.com.cn" + that.currCode);
|
|
|
|
|
wx.getImageInfo({
|
|
|
|
|
uni.getImageInfo({
|
|
|
|
|
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
|
|
|
|
|
src: "https://daotian.matripe.com.cn" + that.currCode,
|
|
|
|
|
success(res) {
|
|
|
|
|
@ -798,7 +790,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 500 * 2, 20, "#333", titleSize, "600"); // 岗位标题
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800 * 2, 20, "#333", titleSize, "600"); // 岗位标题
|
|
|
|
|
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.salaryClassifyValue, logoLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#ff4400", titleSize - 4, "600"); // 时薪
|
|
|
|
|
|
|
|
|
|
@ -822,7 +814,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
imgres(canvas);
|
|
|
|
|
//生成logo图片
|
|
|
|
|
// wx.getImageInfo({
|
|
|
|
|
// uni.getImageInfo({
|
|
|
|
|
// src: item.logo, //网络图片,如果不行请换一个
|
|
|
|
|
// success(res) {
|
|
|
|
|
// // console.log(res);
|
|
|
|
|
@ -883,7 +875,7 @@ export default {
|
|
|
|
|
let labelLeft = 0;
|
|
|
|
|
console.log("item1", item);
|
|
|
|
|
_G.roundRect1(ctx, 32, baseTop - 60 + baseMiddle * index, 776, roundRectHeight, 24, "#fff");
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 500, 20, "#333", titleSize, "500"); // 岗位标题
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 800, 20, "#333", titleSize, "500"); // 岗位标题
|
|
|
|
|
_G.fillTextLineBreak(ctx, item.cus_price == "月薪" ? item.monthlyPay : item.salaryClassifyValue, salaryClassifyValueLeft + 500, baseTop - 10 + salaryClassifyValueTop + baseMiddle * index, 400, 20, "#ff4400", titleSize - 4, "600"); // 时薪
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// _G.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValue + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 , 20, "#ff4400", monthlyPaySize, "400"); // 月工资
|
|
|
|
|
|