|
|
|
|
@ -879,7 +879,8 @@ Page({
|
|
|
|
|
// console.log("notLogin", that.data.isLogin);
|
|
|
|
|
// commonUtil.fillTextLineBreak(ctx, "工价登录后查看", baseLeft + logoSize + 10, line3 - 40, 400, 20, "#ff4400", titleFontSize - 6, "400"); // 时薪
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
console.log('that.data.jobDetail.record.jobRequestLabelNames', that.data.jobDetail.record.jobRequestLabelNames);
|
|
|
|
|
if (that.data.jobDetail.record.jobRequestLabelNames && that.data.jobDetail.record.jobRequestLabelNames.length > 0) {
|
|
|
|
|
that.data.jobDetail.record.jobRequestLabelNames.forEach((item1, index) => {
|
|
|
|
|
if (index <= 3) {
|
|
|
|
|
commonUtil.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 12, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符
|
|
|
|
|
@ -894,6 +895,11 @@ Page({
|
|
|
|
|
labelLeft += ctx.measureText(item1).width + 32;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
commonUtil.fillTextLineBreak(ctx, '暂无特色', baseLeft + 12, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符
|
|
|
|
|
commonUtil.roundRect1(ctx, baseLeft , line4 - 38, ctx.measureText('暂无特色').width + 24, 56, 8, "#00000012");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 根据标签数量调整宣传标语位置
|
|
|
|
|
// commonUtil.roundRect1(ctx, mycenter - 712 / 2, line6 + (that.data.jobDetail.record.jobSpecialLabelNames.length > 3 ? 0 : -70), 712, 60, 4, "#fff6e8"); // 宣传标语背景
|
|
|
|
|
commonUtil.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景
|
|
|
|
|
@ -1111,15 +1117,11 @@ Page({
|
|
|
|
|
that.setData({
|
|
|
|
|
fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.record.returnFeeType, result.record.returnFee ? result.record.returnFee / 100 : ''),
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
that.setData({
|
|
|
|
|
fuWuFei: "-",
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(result);
|
|
|
|
|
console.log(commonUtil);
|
|
|
|
|
let citys = commonUtil.setJobInfoPosition(result.record.storeDistrict);
|
|
|
|
|
let citys = commonUtil.setJobInfoPositionv3(result.record.storeAddr);
|
|
|
|
|
// city = city.replace(/,/g, " | ")
|
|
|
|
|
that.data.jobDetail = result
|
|
|
|
|
that.showSexAge();
|
|
|
|
|
@ -1670,26 +1672,15 @@ Page({
|
|
|
|
|
query
|
|
|
|
|
.select(".contactInfo")
|
|
|
|
|
.boundingClientRect(function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
contentInfo = res.dataset.info;
|
|
|
|
|
wx.setClipboardData({
|
|
|
|
|
data: e.currentTarget.dataset.content + contentInfo,
|
|
|
|
|
success (res) {
|
|
|
|
|
wx.getClipboardData({
|
|
|
|
|
success (res) {
|
|
|
|
|
console.log(res.data); // data
|
|
|
|
|
wx.showToast({
|
|
|
|
|
title: "内容已复制",
|
|
|
|
|
icon: "none",
|
|
|
|
|
duration: 1500,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
let data = e.currentTarget.dataset.content + res.dataset.info
|
|
|
|
|
app.copyFun(data)
|
|
|
|
|
})
|
|
|
|
|
.exec();
|
|
|
|
|
},
|
|
|
|
|
getJobName (e) {
|
|
|
|
|
let data = e.currentTarget.dataset.content
|
|
|
|
|
app.copyFun(data)
|
|
|
|
|
},
|
|
|
|
|
changeContact () {
|
|
|
|
|
console.log(2123);
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
@ -1877,10 +1868,18 @@ Page({
|
|
|
|
|
let that = this
|
|
|
|
|
// if (!this.data.isAgency) return false
|
|
|
|
|
console.log('that.data.bclr', that.data.bclr);
|
|
|
|
|
let content, title
|
|
|
|
|
if (that.data.jobDetail.record.returnFeeDesp) {
|
|
|
|
|
title = that.data.isAgency ? '佣金: ' + that.data.fuWuFei : ''
|
|
|
|
|
content = that.data.isAgency ? that.data.jobDetail.record.returnFeeDesp : '抱歉,您需先成为伯才代理以获得使用权限。'
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
title = '详询客服'
|
|
|
|
|
content = '因三方项目政策变动太快,详情请咨询客服。页面左下角点击“联系客服”直接联系我哟~'
|
|
|
|
|
}
|
|
|
|
|
wx.showModal({
|
|
|
|
|
title: that.data.isAgency ? '佣金: ' + that.data.fuWuFei : '',
|
|
|
|
|
content: that.data.isAgency ? that.data.jobDetail.record.returnFeeDesp : '抱歉,您需先成为伯才代理以获得使用权限。',
|
|
|
|
|
// content: that.data.bclr,
|
|
|
|
|
title,
|
|
|
|
|
content,
|
|
|
|
|
contentColor: "#ccc",
|
|
|
|
|
confirmColor: "#1890ff",
|
|
|
|
|
confirmText: "确定",
|
|
|
|
|
|