|
|
|
@ -1,5 +1,7 @@
|
|
|
|
const app = getApp();
|
|
|
|
const app = getApp();
|
|
|
|
const commonUtil = require("../../utils/commonUtil");
|
|
|
|
const commonUtil = require("../../utils/commonUtil");
|
|
|
|
|
|
|
|
const dateUtil = require("../../utils/dateUtil");
|
|
|
|
|
|
|
|
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
wxml,
|
|
|
|
wxml,
|
|
|
|
style
|
|
|
|
style
|
|
|
|
@ -59,17 +61,17 @@ Page({
|
|
|
|
shareDetailImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/share.png",
|
|
|
|
shareDetailImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/share.png",
|
|
|
|
posterImg: "",
|
|
|
|
posterImg: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showdialog() {
|
|
|
|
showdialog () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
iosDialog: true,
|
|
|
|
iosDialog: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeDialog() {
|
|
|
|
closeDialog () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
iosDialog: false,
|
|
|
|
iosDialog: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
onShow () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
isLogin: app.globalData.isLogin,
|
|
|
|
@ -122,10 +124,10 @@ Page({
|
|
|
|
phoneDialog: false,
|
|
|
|
phoneDialog: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
wxLogin() {
|
|
|
|
wxLogin () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.login({
|
|
|
|
wx.login({
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
if (res.code) {
|
|
|
|
if (res.code) {
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
wxCode: res.code,
|
|
|
|
wxCode: res.code,
|
|
|
|
@ -136,7 +138,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
kefu(e) {
|
|
|
|
kefu (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
console.log('jobDetail', this.data.jobDetail);
|
|
|
|
console.log('jobDetail', this.data.jobDetail);
|
|
|
|
if (this.data.fromBocai) {
|
|
|
|
if (this.data.fromBocai) {
|
|
|
|
@ -167,10 +169,10 @@ Page({
|
|
|
|
// sendMessageTitle:'丸子吗喽你好呀',
|
|
|
|
// sendMessageTitle:'丸子吗喽你好呀',
|
|
|
|
// sendMessageImg:'../../assets/images/jbn.png',
|
|
|
|
// sendMessageImg:'../../assets/images/jbn.png',
|
|
|
|
corpId: 'wwc227639d3a136c8d',
|
|
|
|
corpId: 'wwc227639d3a136c8d',
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log('res', res);
|
|
|
|
console.log('res', res);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(err) {
|
|
|
|
fail (err) {
|
|
|
|
console.log('err', err);
|
|
|
|
console.log('err', err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@ -185,7 +187,7 @@ Page({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showImage(e) {
|
|
|
|
showImage (e) {
|
|
|
|
let resImg = e.currentTarget.dataset.src;
|
|
|
|
let resImg = e.currentTarget.dataset.src;
|
|
|
|
console.log(this.data.jobDetail.images);
|
|
|
|
console.log(this.data.jobDetail.images);
|
|
|
|
var imgArr = [];
|
|
|
|
var imgArr = [];
|
|
|
|
@ -206,7 +208,7 @@ Page({
|
|
|
|
urls: imgArr,
|
|
|
|
urls: imgArr,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showVideo(e) {
|
|
|
|
showVideo (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
console.log(wx.getSystemInfo());
|
|
|
|
console.log(wx.getSystemInfo());
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
@ -220,7 +222,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, 500);
|
|
|
|
}, 500);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fullScreen(e) {
|
|
|
|
fullScreen (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
if (!e.detail.fullScreen) {
|
|
|
|
if (!e.detail.fullScreen) {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
@ -229,7 +231,7 @@ Page({
|
|
|
|
this.videoContext.stop();
|
|
|
|
this.videoContext.stop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
shareVideo(e) {
|
|
|
|
shareVideo (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
wx.showLoading({
|
|
|
|
wx.showLoading({
|
|
|
|
title: "下载中...",
|
|
|
|
title: "下载中...",
|
|
|
|
@ -237,7 +239,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.downloadFile({
|
|
|
|
wx.downloadFile({
|
|
|
|
url: e.currentTarget.dataset.src, // 下载url
|
|
|
|
url: e.currentTarget.dataset.src, // 下载url
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
// 下载完成后转发
|
|
|
|
// 下载完成后转发
|
|
|
|
wx.hideLoading();
|
|
|
|
wx.hideLoading();
|
|
|
|
wx.showLoading({
|
|
|
|
wx.showLoading({
|
|
|
|
@ -246,7 +248,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
wx.shareVideoMessage({
|
|
|
|
wx.shareVideoMessage({
|
|
|
|
videoPath: res.tempFilePath,
|
|
|
|
videoPath: res.tempFilePath,
|
|
|
|
success() {
|
|
|
|
success () {
|
|
|
|
wx.hideLoading();
|
|
|
|
wx.hideLoading();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail: () => {
|
|
|
|
fail: () => {
|
|
|
|
@ -266,7 +268,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
renderToCanvas() {
|
|
|
|
renderToCanvas () {
|
|
|
|
const p1 = this.widget.renderToCanvas({
|
|
|
|
const p1 = this.widget.renderToCanvas({
|
|
|
|
wxml: wxml(that.data.wxml),
|
|
|
|
wxml: wxml(that.data.wxml),
|
|
|
|
style
|
|
|
|
style
|
|
|
|
@ -277,7 +279,7 @@ Page({
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
extraImage() {
|
|
|
|
extraImage () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
// return new Promise(function (resolve, reject) {
|
|
|
|
// return new Promise(function (resolve, reject) {
|
|
|
|
that.widget.renderToCanvas({
|
|
|
|
that.widget.renderToCanvas({
|
|
|
|
@ -294,7 +296,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onLoad(query) {
|
|
|
|
onLoad (query) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log(app.globalData.loginUserInfo);
|
|
|
|
console.log(app.globalData.loginUserInfo);
|
|
|
|
qqmapsdk = new QQMapWX({
|
|
|
|
qqmapsdk = new QQMapWX({
|
|
|
|
@ -331,7 +333,7 @@ Page({
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
pbtm: 40,
|
|
|
|
pbtm: 40,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} else {}
|
|
|
|
} else { }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
console.log(query);
|
|
|
|
console.log(query);
|
|
|
|
@ -398,12 +400,12 @@ Page({
|
|
|
|
this.getStoreJobDetailById();
|
|
|
|
this.getStoreJobDetailById();
|
|
|
|
}, 100);
|
|
|
|
}, 100);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goIndex() {
|
|
|
|
goIndex () {
|
|
|
|
wx.switchTab({
|
|
|
|
wx.switchTab({
|
|
|
|
url: '../firstBill/index',
|
|
|
|
url: '../firstBill/index',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getCode() {
|
|
|
|
getCode () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log('getCode');
|
|
|
|
console.log('getCode');
|
|
|
|
console.log(this.data.searchForm.storeJobId);
|
|
|
|
console.log(this.data.searchForm.storeJobId);
|
|
|
|
@ -428,7 +430,7 @@ Page({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getAgencyInfo(job) {
|
|
|
|
getAgencyInfo (job) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log(job);
|
|
|
|
console.log(job);
|
|
|
|
console.log("打印基本信息");
|
|
|
|
console.log("打印基本信息");
|
|
|
|
@ -471,7 +473,7 @@ Page({
|
|
|
|
// return agencyStr + '\n' + objAgency.returnFeeDesp;
|
|
|
|
// return agencyStr + '\n' + objAgency.returnFeeDesp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toMapChoice(e) {
|
|
|
|
toMapChoice (e) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
if (e.currentTarget.dataset.address.record.storeLat) {
|
|
|
|
if (e.currentTarget.dataset.address.record.storeLat) {
|
|
|
|
@ -521,13 +523,13 @@ Page({
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
changeMenu(e) {
|
|
|
|
changeMenu (e) {
|
|
|
|
let currentIndex = parseInt(e.currentTarget.dataset.id);
|
|
|
|
let currentIndex = parseInt(e.currentTarget.dataset.id);
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
currIndex: e.currentTarget.dataset.id,
|
|
|
|
currIndex: e.currentTarget.dataset.id,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getLocation() {
|
|
|
|
getLocation () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
wx.getSetting({
|
|
|
|
wx.getSetting({
|
|
|
|
@ -536,7 +538,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
|
|
if (res.authSetting.location) {
|
|
|
|
if (res.authSetting.location) {
|
|
|
|
wx.getLocation({
|
|
|
|
wx.getLocation({
|
|
|
|
success(res1) {
|
|
|
|
success (res1) {
|
|
|
|
console.log("获取位置");
|
|
|
|
console.log("获取位置");
|
|
|
|
console.log(res1);
|
|
|
|
console.log(res1);
|
|
|
|
|
|
|
|
|
|
|
|
@ -548,7 +550,7 @@ Page({
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
fail() {
|
|
|
|
fail () {
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
that.getStoreJobDetailById();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -607,7 +609,7 @@ Page({
|
|
|
|
// query: "?storeJobId=" + this.data.storeJobId,
|
|
|
|
// query: "?storeJobId=" + this.data.storeJobId,
|
|
|
|
// };
|
|
|
|
// };
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
getCanvas() {
|
|
|
|
getCanvas () {
|
|
|
|
const that = this;
|
|
|
|
const that = this;
|
|
|
|
|
|
|
|
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
return new Promise((resolve) => {
|
|
|
|
@ -628,7 +630,7 @@ Page({
|
|
|
|
// 绘制背景图片
|
|
|
|
// 绘制背景图片
|
|
|
|
wx.getImageInfo({
|
|
|
|
wx.getImageInfo({
|
|
|
|
src: that.data.shareDetailImg, //网络图片,如果不行请换一个
|
|
|
|
src: that.data.shareDetailImg, //网络图片,如果不行请换一个
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
var width = res.width;
|
|
|
|
var width = res.width;
|
|
|
|
var height = res.height;
|
|
|
|
var height = res.height;
|
|
|
|
@ -690,7 +692,7 @@ Page({
|
|
|
|
ctx.restore();
|
|
|
|
ctx.restore();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function roundRect1(ctx, x, y, w, h, r, color) {
|
|
|
|
function roundRect1 (ctx, x, y, w, h, r, color) {
|
|
|
|
//绘制圆角矩形(无填充色))
|
|
|
|
//绘制圆角矩形(无填充色))
|
|
|
|
ctx.save();
|
|
|
|
ctx.save();
|
|
|
|
ctx.fillStyle = color;
|
|
|
|
ctx.fillStyle = color;
|
|
|
|
@ -734,7 +736,7 @@ Page({
|
|
|
|
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
|
|
|
|
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
|
|
|
|
// src:"https://daotian.matripe.com.cn/image/jobs/4/storeJobId9227.jpg",
|
|
|
|
// src:"https://daotian.matripe.com.cn/image/jobs/4/storeJobId9227.jpg",
|
|
|
|
src: app.globalData.ip + that.data.currCode,
|
|
|
|
src: app.globalData.ip + that.data.currCode,
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
const img = canvas.createImage();
|
|
|
|
const img = canvas.createImage();
|
|
|
|
img.src = res.path;
|
|
|
|
img.src = res.path;
|
|
|
|
@ -751,7 +753,7 @@ Page({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
wx.getImageInfo({
|
|
|
|
wx.getImageInfo({
|
|
|
|
src: that.data.jobDetail.store.logo, //网络图片,如果不行请换一个
|
|
|
|
src: that.data.jobDetail.store.logo, //网络图片,如果不行请换一个
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
const img = canvas.createImage();
|
|
|
|
const img = canvas.createImage();
|
|
|
|
img.src = res.path;
|
|
|
|
img.src = res.path;
|
|
|
|
@ -764,13 +766,13 @@ Page({
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(err) {
|
|
|
|
fail (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(err) {
|
|
|
|
fail (err) {
|
|
|
|
console.log(err);
|
|
|
|
console.log(err);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -793,7 +795,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.store.districtStr.length > 9 ? that.data.jobDetail.store.districtStr.substring(0, 8) + '...' : that.data.jobDetail.store.districtStr, salaryClassifyValueLeft, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 省市
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.store.districtStr.length > 9 ? that.data.jobDetail.store.districtStr.substring(0, 8) + '...' : that.data.jobDetail.store.districtStr, salaryClassifyValueLeft, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 省市
|
|
|
|
|
|
|
|
|
|
|
|
fillTextLineBreak(ctx, "丨" + that.data.jobDetail.record.age, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.store.districtStr.length > 7 ? that.data.jobDetail.store.districtStr.substring(0, 8) + '...' : that.data.jobDetail.store.districtStr, ).width, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 年龄
|
|
|
|
fillTextLineBreak(ctx, "丨" + that.data.jobDetail.record.age, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.store.districtStr.length > 7 ? that.data.jobDetail.store.districtStr.substring(0, 8) + '...' : that.data.jobDetail.store.districtStr,).width, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 年龄
|
|
|
|
|
|
|
|
|
|
|
|
fillTextLineBreak(ctx, that.data.userInfo.agencyName, mycenter - ctx.measureText(that.data.userInfo.agencyName).width / 2, baseTop - fubiaotiTop, 400 * 2, 20, "#fff", monthlyPaySize, "600"); // 代理名称
|
|
|
|
fillTextLineBreak(ctx, that.data.userInfo.agencyName, mycenter - ctx.measureText(that.data.userInfo.agencyName).width / 2, baseTop - fubiaotiTop, 400 * 2, 20, "#fff", monthlyPaySize, "600"); // 代理名称
|
|
|
|
|
|
|
|
|
|
|
|
@ -811,14 +813,14 @@ Page({
|
|
|
|
.then(function () {
|
|
|
|
.then(function () {
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
wx.canvasToTempFilePath({
|
|
|
|
canvas: canvas,
|
|
|
|
canvas: canvas,
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
canvasImg: res.tempFilePath,
|
|
|
|
canvasImg: res.tempFilePath,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
resolve(res);
|
|
|
|
resolve(res);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(res) {
|
|
|
|
fail (res) {
|
|
|
|
wx.hideLoading();
|
|
|
|
wx.hideLoading();
|
|
|
|
|
|
|
|
|
|
|
|
wx.showToast({
|
|
|
|
wx.showToast({
|
|
|
|
@ -840,7 +842,7 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
sharePoster() {
|
|
|
|
sharePoster () {
|
|
|
|
wx.showLoading({
|
|
|
|
wx.showLoading({
|
|
|
|
title: "生成中...",
|
|
|
|
title: "生成中...",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -860,22 +862,22 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
hidedrawershow(e) {
|
|
|
|
hidedrawershow (e) {
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
[e.detail.type]: false
|
|
|
|
[e.detail.type]: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hidePoster() {
|
|
|
|
hidePoster () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
posterShow: false,
|
|
|
|
posterShow: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
saveToalbum() {
|
|
|
|
saveToalbum () {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
wx.saveImageToPhotosAlbum({
|
|
|
|
wx.saveImageToPhotosAlbum({
|
|
|
|
filePath: that.data.posterImg,
|
|
|
|
filePath: that.data.posterImg,
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
if (res.errMsg == "saveImageToPhotosAlbum:ok") {
|
|
|
|
if (res.errMsg == "saveImageToPhotosAlbum:ok") {
|
|
|
|
wx.showToast({
|
|
|
|
wx.showToast({
|
|
|
|
@ -885,7 +887,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(res) {
|
|
|
|
fail (res) {
|
|
|
|
console.log(res);
|
|
|
|
console.log(res);
|
|
|
|
wx.showToast({
|
|
|
|
wx.showToast({
|
|
|
|
title: "图片保存失败",
|
|
|
|
title: "图片保存失败",
|
|
|
|
@ -895,7 +897,7 @@ Page({
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getStoreJobDetailById() {
|
|
|
|
getStoreJobDetailById () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.showLoading({
|
|
|
|
wx.showLoading({
|
|
|
|
title: "加载中...",
|
|
|
|
title: "加载中...",
|
|
|
|
@ -928,6 +930,10 @@ Page({
|
|
|
|
// item.url = item.url.replaceAll('http:','https:')
|
|
|
|
// item.url = item.url.replaceAll('http:','https:')
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
result.record.genderRestrict = commonUtil.getGenderByMinAge(result.record);
|
|
|
|
result.record.genderRestrict = commonUtil.getGenderByMinAge(result.record);
|
|
|
|
|
|
|
|
// 更新时间
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.record.update = dateUtil.timeShowXXX2(result.record.updateTime);
|
|
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(title)) {
|
|
|
|
if (app.isNotEmptyCheck(title)) {
|
|
|
|
title = result.record.jobName;
|
|
|
|
title = result.record.jobName;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -1000,11 +1006,11 @@ Page({
|
|
|
|
that.data.jobDetail = result
|
|
|
|
that.data.jobDetail = result
|
|
|
|
that.showSexAge();
|
|
|
|
that.showSexAge();
|
|
|
|
|
|
|
|
|
|
|
|
result.record["jobDesp1"] = `\n${result.record.jobName}\n\n一、薪资明细\n${result.record.salaryDetail}\n\n二、招聘要求\n${(that.data.showSexAgeText + '\n' + result.record.workContent) || '-'}\n\n三、其他说明\n${ result.record.otherDesp}\n\n四、注意事项\n${result.record.notes}`
|
|
|
|
result.record["jobDesp1"] = `\n${result.record.jobName}\n\n一、薪资明细\n${result.record.salaryDetail}\n\n二、招聘要求\n${(that.data.showSexAgeText + '\n' + result.record.workContent) || '-'}\n\n三、其他说明\n${result.record.otherDesp}\n\n四、注意事项\n${result.record.notes}`
|
|
|
|
that.setData({
|
|
|
|
that.setData({
|
|
|
|
jobDetail: result,
|
|
|
|
jobDetail: result,
|
|
|
|
isMaskShow: !(result.record.recruitment == "1"),
|
|
|
|
isMaskShow: !(result.record.recruitment == "1"),
|
|
|
|
citys: citys || "-",
|
|
|
|
citys: citys ,
|
|
|
|
// addressNew: result.storeDistrict.replace(/,/g, "") + result.store.detailPosition,
|
|
|
|
// addressNew: result.storeDistrict.replace(/,/g, "") + result.store.detailPosition,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
that.data.jobDetail.record["storeName"] = that.data.jobDetail.storeName ? that.data.jobDetail.storeName : that.data.jobDetail.record["storeName"];
|
|
|
|
that.data.jobDetail.record["storeName"] = that.data.jobDetail.storeName ? that.data.jobDetail.storeName : that.data.jobDetail.record["storeName"];
|
|
|
|
@ -1028,7 +1034,7 @@ Page({
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
showSexAge() {
|
|
|
|
showSexAge () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
var manStr = "";
|
|
|
|
var manStr = "";
|
|
|
|
var womanStr = "";
|
|
|
|
var womanStr = "";
|
|
|
|
@ -1065,7 +1071,7 @@ Page({
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 处理后台返回的职位列表
|
|
|
|
* 处理后台返回的职位列表
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
disposeJobListData(jobDetail) {
|
|
|
|
disposeJobListData (jobDetail) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
// item["workType"] = commonUtil.getWorkTypeById(
|
|
|
|
// item["workType"] = commonUtil.getWorkTypeById(
|
|
|
|
@ -1158,7 +1164,7 @@ Page({
|
|
|
|
// jobDetail.record['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.record.jobRequestLabelNames);
|
|
|
|
// jobDetail.record['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.record.jobRequestLabelNames);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getJobSpecialLabelNamesArray(jobSpecialLabelNames) {
|
|
|
|
getJobSpecialLabelNamesArray (jobSpecialLabelNames) {
|
|
|
|
console.log('getJobSpecialLabelNamesArray', jobSpecialLabelNames);
|
|
|
|
console.log('getJobSpecialLabelNamesArray', jobSpecialLabelNames);
|
|
|
|
if (app.isNotEmptyCheck(jobSpecialLabelNames)) {
|
|
|
|
if (app.isNotEmptyCheck(jobSpecialLabelNames)) {
|
|
|
|
console.log('jobSpecialLabelNames.split(", ")', jobSpecialLabelNames.split(", "));
|
|
|
|
console.log('jobSpecialLabelNames.split(", ")', jobSpecialLabelNames.split(", "));
|
|
|
|
@ -1166,14 +1172,14 @@ Page({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getJobRequestLabelNamesArray(jobRequestLabelNames) {
|
|
|
|
getJobRequestLabelNamesArray (jobRequestLabelNames) {
|
|
|
|
console.log(jobRequestLabelNames);
|
|
|
|
console.log(jobRequestLabelNames);
|
|
|
|
if (app.isNotEmptyCheck(jobRequestLabelNames)) {
|
|
|
|
if (app.isNotEmptyCheck(jobRequestLabelNames)) {
|
|
|
|
return jobRequestLabelNames.split(", ");
|
|
|
|
return jobRequestLabelNames.split(", ");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
|
},
|
|
|
|
},
|
|
|
|
goSimilar() {
|
|
|
|
goSimilar () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
@ -1183,12 +1189,12 @@ Page({
|
|
|
|
url: "../similar/index?brandId=" + that.data.jobDetail.store.brandId + "&jobLabelId=" + that.data.jobDetail.record.jobLabelId + "&classify=99",
|
|
|
|
url: "../similar/index?brandId=" + that.data.jobDetail.store.brandId + "&jobLabelId=" + that.data.jobDetail.record.jobLabelId + "&classify=99",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
hideKefu() {
|
|
|
|
hideKefu () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
kefuShow: false
|
|
|
|
kefuShow: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
makePhoneCall(e) {
|
|
|
|
makePhoneCall (e) {
|
|
|
|
console.log('e', e);
|
|
|
|
console.log('e', e);
|
|
|
|
console.log(1);
|
|
|
|
console.log(1);
|
|
|
|
// return
|
|
|
|
// return
|
|
|
|
@ -1231,7 +1237,7 @@ Page({
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
textPaste() {
|
|
|
|
textPaste () {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
wx.setClipboardData({
|
|
|
|
wx.setClipboardData({
|
|
|
|
// data: that.data.jobDetail.assistantUserWechat,
|
|
|
|
// data: that.data.jobDetail.assistantUserWechat,
|
|
|
|
@ -1248,7 +1254,7 @@ Page({
|
|
|
|
title: "已复制微信号",
|
|
|
|
title: "已复制微信号",
|
|
|
|
content: "快去搜索添加经纪人好友吧",
|
|
|
|
content: "快去搜索添加经纪人好友吧",
|
|
|
|
showCancel: false,
|
|
|
|
showCancel: false,
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
if (res.confirm) {
|
|
|
|
if (res.confirm) {
|
|
|
|
console.log("用户点击确定");
|
|
|
|
console.log("用户点击确定");
|
|
|
|
} else if (res.cancel) {
|
|
|
|
} else if (res.cancel) {
|
|
|
|
@ -1284,7 +1290,7 @@ Page({
|
|
|
|
|
|
|
|
|
|
|
|
},*/
|
|
|
|
},*/
|
|
|
|
|
|
|
|
|
|
|
|
goNewEnroll(e) {
|
|
|
|
goNewEnroll (e) {
|
|
|
|
let that = this;
|
|
|
|
let that = this;
|
|
|
|
let argument;
|
|
|
|
let argument;
|
|
|
|
argument = JSON.stringify({
|
|
|
|
argument = JSON.stringify({
|
|
|
|
@ -1307,9 +1313,9 @@ Page({
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
// url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
emptyMethod() {},
|
|
|
|
emptyMethod () { },
|
|
|
|
|
|
|
|
|
|
|
|
getPhoneNumber(e) {
|
|
|
|
getPhoneNumber (e) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
console.log(e);
|
|
|
|
console.log(e);
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
@ -1328,7 +1334,7 @@ Page({
|
|
|
|
var iv = e.detail.iv;
|
|
|
|
var iv = e.detail.iv;
|
|
|
|
var encryptedData = e.detail.encryptedData;
|
|
|
|
var encryptedData = e.detail.encryptedData;
|
|
|
|
wx.checkSession({
|
|
|
|
wx.checkSession({
|
|
|
|
success() {
|
|
|
|
success () {
|
|
|
|
//session_key 未过期,并且在本生命周期一直有效
|
|
|
|
//session_key 未过期,并且在本生命周期一直有效
|
|
|
|
customRequest("/getWechatTel", {
|
|
|
|
customRequest("/getWechatTel", {
|
|
|
|
header: 'headers',
|
|
|
|
header: 'headers',
|
|
|
|
@ -1423,10 +1429,10 @@ Page({
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail() {
|
|
|
|
fail () {
|
|
|
|
// session_key 已经失效,需要重新执行登录流程
|
|
|
|
// session_key 已经失效,需要重新执行登录流程
|
|
|
|
wx.login({
|
|
|
|
wx.login({
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
if (res.code) {
|
|
|
|
if (res.code) {
|
|
|
|
console.log(res.code);
|
|
|
|
console.log(res.code);
|
|
|
|
//发起网络请求
|
|
|
|
//发起网络请求
|
|
|
|
@ -1538,7 +1544,7 @@ Page({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setCopy(e) {
|
|
|
|
setCopy (e) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
var contentInfo;
|
|
|
|
var contentInfo;
|
|
|
|
const query = wx.createSelectorQuery().in(this);
|
|
|
|
const query = wx.createSelectorQuery().in(this);
|
|
|
|
@ -1549,9 +1555,9 @@ Page({
|
|
|
|
contentInfo = res.dataset.info;
|
|
|
|
contentInfo = res.dataset.info;
|
|
|
|
wx.setClipboardData({
|
|
|
|
wx.setClipboardData({
|
|
|
|
data: e.currentTarget.dataset.content,
|
|
|
|
data: e.currentTarget.dataset.content,
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
wx.getClipboardData({
|
|
|
|
wx.getClipboardData({
|
|
|
|
success(res) {
|
|
|
|
success (res) {
|
|
|
|
console.log(res.data); // data
|
|
|
|
console.log(res.data); // data
|
|
|
|
wx.showToast({
|
|
|
|
wx.showToast({
|
|
|
|
title: "内容已复制",
|
|
|
|
title: "内容已复制",
|
|
|
|
@ -1565,13 +1571,13 @@ Page({
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.exec();
|
|
|
|
.exec();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeContact() {
|
|
|
|
changeContact () {
|
|
|
|
console.log(2123);
|
|
|
|
console.log(2123);
|
|
|
|
wx.navigateTo({
|
|
|
|
wx.navigateTo({
|
|
|
|
url: `/pages/configAnnunciate/index`,
|
|
|
|
url: `/pages/configAnnunciate/index`,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
collectPaste(e) {
|
|
|
|
collectPaste (e) {
|
|
|
|
console.log(1);
|
|
|
|
console.log(1);
|
|
|
|
var txt;
|
|
|
|
var txt;
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
@ -1599,7 +1605,7 @@ Page({
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
doCollected(collected, storeJobId) {
|
|
|
|
doCollected (collected, storeJobId) {
|
|
|
|
var that = this;
|
|
|
|
var that = this;
|
|
|
|
var url = "/user/collect/job/add";
|
|
|
|
var url = "/user/collect/job/add";
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
@ -1700,7 +1706,7 @@ Page({
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toggleprice(type) {
|
|
|
|
toggleprice (type) {
|
|
|
|
console.log(type);
|
|
|
|
console.log(type);
|
|
|
|
if (type.target.dataset.index == 1) {
|
|
|
|
if (type.target.dataset.index == 1) {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
@ -1712,7 +1718,7 @@ Page({
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
imageLoad() {
|
|
|
|
imageLoad () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
isLoading: false,
|
|
|
|
isLoading: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -1722,17 +1728,37 @@ Page({
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
modalMove() {
|
|
|
|
modalMove () {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showTobe() {
|
|
|
|
showTobe () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
iosDialogTobe: true,
|
|
|
|
iosDialogTobe: true,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeTobe() {
|
|
|
|
closeTobe () {
|
|
|
|
this.setData({
|
|
|
|
this.setData({
|
|
|
|
iosDialogTobe: false,
|
|
|
|
iosDialogTobe: false,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
showFee () {
|
|
|
|
|
|
|
|
let that = this
|
|
|
|
|
|
|
|
wx.showModal({
|
|
|
|
|
|
|
|
// title: "确认要转让创建人吗?",
|
|
|
|
|
|
|
|
content: that.data.jobDetail.record.returnFeeDesp,
|
|
|
|
|
|
|
|
contentColor: "#ccc",
|
|
|
|
|
|
|
|
confirmColor: "#1890ff",
|
|
|
|
|
|
|
|
confirmText: "确定",
|
|
|
|
|
|
|
|
showCancel: false,
|
|
|
|
|
|
|
|
success (res) {
|
|
|
|
|
|
|
|
// console.log(res);
|
|
|
|
|
|
|
|
// if (res.confirm) {
|
|
|
|
|
|
|
|
// wx.navigateTo({
|
|
|
|
|
|
|
|
// url: `/pages/sendCreatorCode/index?info=${JSON.stringify(data.data)}`,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|