|
|
|
|
@ -1,43 +1,12 @@
|
|
|
|
|
const app = getApp();
|
|
|
|
|
const commonUtil = require("../../utils/commonUtil");
|
|
|
|
|
const dateUtil = require("../../utils/dateUtil");
|
|
|
|
|
const { wxml, style } = require("./demo.js");
|
|
|
|
|
var QQMapWX = require("../../utils/qqmap-wx-jssdk.min.js");
|
|
|
|
|
var qqmapsdk;
|
|
|
|
|
|
|
|
|
|
Page({
|
|
|
|
|
data: {
|
|
|
|
|
text:`【郑州港区富士康ID小时工】
|
|
|
|
|
|
|
|
|
|
🔥短期高价小时工
|
|
|
|
|
🔥紧跟市场最高价
|
|
|
|
|
🔥恒温车间、工时稳定
|
|
|
|
|
|
|
|
|
|
🚻男女 18-48,简单识字,会写自己名字,认识26个字母,需要身份证原件,纹身烟疤需提前确认
|
|
|
|
|
|
|
|
|
|
💰薪资待遇:
|
|
|
|
|
【制造部门-关键工站】
|
|
|
|
|
23元/H(含税)
|
|
|
|
|
【制造部门-一般工站】
|
|
|
|
|
22.5元/H(含税)
|
|
|
|
|
【非制造部门】
|
|
|
|
|
22元/H(含税)
|
|
|
|
|
差价补贴至2024/2/29,自2024/3/1起,仅享有同工同酬,次月25号在职享有上月差价,28号发放(发放时无需在职),每月7号发同工同酬(发放上月1-30日薪资),次月25号在职享有上月差价,28号发放(发放时无需在职),无押金
|
|
|
|
|
|
|
|
|
|
📣生产苹果手机,岗位有打螺丝、小零件的组装、质检岗位等
|
|
|
|
|
⏰早晚8:00-8:00,两班倒,一个月倒一次班,有站有坐,随机分配,需要过安检,恒温车间,静电衣
|
|
|
|
|
❇️缴纳商保68元/月,面试通过后,厂区统一体检50元
|
|
|
|
|
|
|
|
|
|
🍱厂区餐厅,吃饭自费,可刷卡吃饭,刷多少扣多少
|
|
|
|
|
🏠住宿150元/月,6-8人间,空调、热水俱全
|
|
|
|
|
|
|
|
|
|
注意:
|
|
|
|
|
1. 面试不要穿奇装异服
|
|
|
|
|
2. 申请报名: 身份证正反面+个人实名手机号
|
|
|
|
|
3. 员工工作不满七天无工资
|
|
|
|
|
|
|
|
|
|
————————
|
|
|
|
|
服务费:费用待定,入职后出利润名单,含税5%
|
|
|
|
|
`,
|
|
|
|
|
isLogin: false,
|
|
|
|
|
statusBarHeight: wx.getStorageSync("statusBarHeight"), // 状态栏高度
|
|
|
|
|
|
|
|
|
|
@ -52,8 +21,6 @@ Page({
|
|
|
|
|
//职位ID
|
|
|
|
|
searchForm: {
|
|
|
|
|
storeJobId: "",
|
|
|
|
|
lng: "",
|
|
|
|
|
lat: "",
|
|
|
|
|
},
|
|
|
|
|
fullScreen: false,
|
|
|
|
|
bclr: "",
|
|
|
|
|
@ -197,98 +164,7 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
onLoad (query) {
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// let systemInfo = wx.getSystemInfoSync();
|
|
|
|
|
// let rect = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null; //胶囊按钮位置信息
|
|
|
|
|
// wx.getMenuButtonBoundingClientRect();
|
|
|
|
|
// let navBarHeight = (function() { //导航栏高度
|
|
|
|
|
// let gap = rect.top - systemInfo.statusBarHeight; //动态计算每台手机状态栏到胶囊按钮间距
|
|
|
|
|
// return 2 * gap + rect.height;
|
|
|
|
|
// })();
|
|
|
|
|
|
|
|
|
|
console.log((wx.getMenuButtonBoundingClientRect().top - wx.getWindowInfo().statusBarHeight) * 2 + wx.getMenuButtonBoundingClientRect().height + wx.getWindowInfo().statusBarHeight);
|
|
|
|
|
|
|
|
|
|
console.log(wx.getWindowInfo().screenTop)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(app.globalData.loginUserInfo);
|
|
|
|
|
qqmapsdk = new QQMapWX({
|
|
|
|
|
key: "5PTBZ-YI7C6-MZGS3-ES7QN-4T5O2-EJFVR",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
isAgency: app.globalData.loginUserInfo.agencyStatus == 1 ? true : false,
|
|
|
|
|
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
|
|
|
|
|
managerRoleClassify: app.globalData.loginUserInfo.managerRoleClassify,
|
|
|
|
|
userInfo: app.globalData.loginUserInfo,
|
|
|
|
|
});
|
|
|
|
|
that.widget = that.selectComponent(".widget");
|
|
|
|
|
wx.getSystemInfo({
|
|
|
|
|
success: (res) => {
|
|
|
|
|
console.log("手机信息res" + res.model);
|
|
|
|
|
let modelmes = res.model;
|
|
|
|
|
console.log(modelmes.search("iPhone X"));
|
|
|
|
|
if (modelmes.search("iPhone 12 Pro") != -1 || modelmes.search("iPhone X") != -1 || modelmes.search("iPhone XR") != -1 || modelmes.search("iPhone XS max") != -1 || modelmes.search("iPhone 11") != -1) {
|
|
|
|
|
that.setData({
|
|
|
|
|
pbtm: 40,
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
console.log(query);
|
|
|
|
|
if (app.isNotEmptyCheck(query.fromShoucangOrBaoming)) {
|
|
|
|
|
that.setData({
|
|
|
|
|
fromShoucangOrBaoming: query.fromShoucangOrBaoming
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
console.log("HHHHHHHHHHHHH" + query.storeJobId);
|
|
|
|
|
if (app.isNotEmptyCheck(query.storeJobId)) {
|
|
|
|
|
console.log("HHHHHHHHHHHHH");
|
|
|
|
|
this.data.searchForm.storeJobId = query.storeJobId;
|
|
|
|
|
} else if (app.isNotEmptyCheck(query.scene)) {
|
|
|
|
|
console.log("XXXXXXXXXXXX")
|
|
|
|
|
//扫小程序码携带参数
|
|
|
|
|
var sceneStr = decodeURIComponent(query.scene);
|
|
|
|
|
var sceneJson = commonUtil.sceneToJson(sceneStr);
|
|
|
|
|
console.log("sceneJson===", sceneJson);
|
|
|
|
|
let arr = sceneJson.i.split('_')
|
|
|
|
|
if (arr[0] > 0) {
|
|
|
|
|
wx.setStorageSync("applyUserId", arr[0]);
|
|
|
|
|
}
|
|
|
|
|
if (arr[1] > 0) {
|
|
|
|
|
wx.setStorageSync("agencyId", arr[1]);
|
|
|
|
|
app.globalData.agencyId = arr[1]
|
|
|
|
|
}
|
|
|
|
|
if (arr[2] > 0) {
|
|
|
|
|
this.data.searchForm.storeJobId = arr[2];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wx.setStorageSync("agencyId", sceneJson.agencyId);
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
fromScene: true
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (app.isNotEmptyCheck(query.from)) {
|
|
|
|
|
that.setData({
|
|
|
|
|
fromScene: true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.data.wxCode = query.wxCode;
|
|
|
|
|
// this.getLocation();
|
|
|
|
|
this.data.searchForm.storeJobId = query.storeJobId;
|
|
|
|
|
this.getStoreJobDetailById();
|
|
|
|
|
// that.setData({
|
|
|
|
|
// wxCode: that.data.wxCode
|
|
|
|
|
@ -298,12 +174,7 @@ Page({
|
|
|
|
|
data: query.storeJobId,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let agencyUserId = query.agencyUserId;
|
|
|
|
|
if (agencyUserId) {
|
|
|
|
|
wx.setStorageSync("storageSyncAgencyUserId", agencyUserId);
|
|
|
|
|
console.log("agencyUserId", agencyUserId);
|
|
|
|
|
app.globalData.isCommission = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
backIndex () {
|
|
|
|
|
wx.switchTab({
|
|
|
|
|
@ -729,7 +600,7 @@ Page({
|
|
|
|
|
roundRect1(ctx, 24 * 2, baseTop - 100, 1104, roundRectHeight, 32, "#fff");
|
|
|
|
|
console.log(that.data.jobDetail.store);
|
|
|
|
|
|
|
|
|
|
that.data.jobDetail.storeJob.jobSpecialLabelNames.forEach((item1, index) => {
|
|
|
|
|
that.data.jobDetail.jobSpecialLabelNames.forEach((item1, index) => {
|
|
|
|
|
// console.log(item1);
|
|
|
|
|
// console.log(ctx.measureText(item1).width);
|
|
|
|
|
if (index <= 2) {
|
|
|
|
|
@ -743,10 +614,10 @@ Page({
|
|
|
|
|
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.store.aliasName, logoLeft, baseTop, 500 * 2, 20, "#333", titleSize, "600"); // 岗位标题
|
|
|
|
|
console.log(630);
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.storeJob.hourlyPay, salaryClassifyValueLeft, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#ff4400", titleSize, "600"); // 时薪
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.storeJob.monthlyPay, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.storeJob.monthlyPay).width, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#ff4400", monthlyPaySize, "400"); // 月工资
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.hourlyPay, salaryClassifyValueLeft, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#ff4400", titleSize, "600"); // 时薪
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.monthlyPay, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.monthlyPay).width, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#ff4400", monthlyPaySize, "400"); // 月工资
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.store.districtStr + "丨", salaryClassifyValueLeft, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 省市年龄
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.storeJob.age, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.store.districtStr + "丨").width, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 省市年龄
|
|
|
|
|
fillTextLineBreak(ctx, that.data.jobDetail.age, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.store.districtStr + "丨").width, baseTop + ageTop, 300 * 2, 20, "#333", monthlyPaySize); // 省市年龄
|
|
|
|
|
// let src
|
|
|
|
|
// src = that.data.jobDetail.store.logo.indexOf("https") > -1 ? that.data.jobDetail.store.logo : that.data.jobDetail.store.logo.replace("http", "https")
|
|
|
|
|
console.log(that.data.jobDetail.store.logo);
|
|
|
|
|
@ -867,125 +738,61 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
wx.request({
|
|
|
|
|
// url: app.globalData.ip + "/store/job/getStoreJobDetailById?storeJobId=" + that.data.searchForm.storeJobId,
|
|
|
|
|
url: app.globalData.ip + "/overall/store/job/getStoreJobDetailById?storeJobId=" + that.data.searchForm.storeJobId,
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: app.globalData.ip + "/assistant/job/get/" + that.data.searchForm.storeJobId,
|
|
|
|
|
method: "get",
|
|
|
|
|
header: app.globalData.headers,
|
|
|
|
|
data: that.data.searchForm,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res);
|
|
|
|
|
if (res.data.status == 200) {
|
|
|
|
|
var result = res.data.data;
|
|
|
|
|
var title = result.storeJob.jobName;
|
|
|
|
|
// var title1 = result.store.aliasName;
|
|
|
|
|
// that.data.logo2
|
|
|
|
|
// wx.setStorageSync({
|
|
|
|
|
// key: "onSiteRemark",
|
|
|
|
|
// data: result.storeJob.onSiteRemark,
|
|
|
|
|
// })
|
|
|
|
|
var title = result.job.jobName;
|
|
|
|
|
|
|
|
|
|
console.log(title)
|
|
|
|
|
that.setData({
|
|
|
|
|
shareTitle: title,
|
|
|
|
|
onSiteRemark: result.storeJob.onSiteRemark,
|
|
|
|
|
onSiteRemark: result.job.onSiteRemark,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
let regs = /\.(jpg|jpeg|png)(\?.*)?$/;
|
|
|
|
|
res.data.data.storeImage.forEach((item) => {
|
|
|
|
|
item.isImg = regs.test(item.url.toLowerCase());
|
|
|
|
|
});
|
|
|
|
|
result.storeJob.genderRestrict = commonUtil.getGenderByMinAge(result.storeJob);
|
|
|
|
|
if (app.isNotEmptyCheck(title)) {
|
|
|
|
|
title = result.storeJob.jobName;
|
|
|
|
|
} else {
|
|
|
|
|
title = result.store.aliasName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// wx.setNavigationBarTitle({
|
|
|
|
|
// title,
|
|
|
|
|
// res.data.data.storeImage.forEach((item) => {
|
|
|
|
|
// item.isImg = regs.test(item.url.toLowerCase());
|
|
|
|
|
// });
|
|
|
|
|
result.job.genderRestrict = commonUtil.getGenderByMinAge(result.job);
|
|
|
|
|
result.job.updateTime = dateUtil.timeShowXXX(result.job.updateTime)
|
|
|
|
|
// if (app.isNotEmptyCheck(title)) {
|
|
|
|
|
// title = result.storeJob.jobName;
|
|
|
|
|
// } else {
|
|
|
|
|
// title = result.store.aliasName;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
result.storeJob.workType = commonUtil.getWorkTypeById(result.storeJob.workTypeMulti);
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.calculationSalaryType)) {
|
|
|
|
|
result.storeJob.calculationSalaryType = result.storeJob.calculationSalaryType.split("#")[0];
|
|
|
|
|
}
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.jobDesp)) {
|
|
|
|
|
result.storeJob.jobDesp = result.storeJob.jobDesp.replaceAll("*****", "").split("————————")[0];
|
|
|
|
|
result.storeJob["jobDesp1"] = result.storeJob.jobDesp.replace("⚠", "<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
|
|
|
|
|
result.storeJob["jobDesp1"] = result.storeJob.jobDesp1.replace("[红包]", "<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.paymentSalaryType)) {
|
|
|
|
|
result.storeJob.paymentSalaryType = result.storeJob.paymentSalaryType.split(",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.salaryDesp)) {
|
|
|
|
|
result.storeJob.salaryDesp = result.storeJob.salaryDesp.split(";");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.workDurationDesp)) {
|
|
|
|
|
result.storeJob.workDurationDesp = result.storeJob.workDurationDesp.split(";");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.probationDesp)) {
|
|
|
|
|
result.storeJob.probationDesp = result.storeJob.probationDesp.split(";");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.workingLunchDesp)) {
|
|
|
|
|
result.storeJob.workingLunchDesp = result.storeJob.workingLunchDesp.split(";");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.dormitoryDesp)) {
|
|
|
|
|
result.storeJob.dormitoryDesp = result.storeJob.dormitoryDesp.split(";");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.foregift)) {
|
|
|
|
|
result.storeJob.foregift = result.storeJob.foregift.split(";");
|
|
|
|
|
var arrTemp = [];
|
|
|
|
|
result.storeJob.foregift.forEach((item) => {
|
|
|
|
|
var arr = item.split(",");
|
|
|
|
|
// // wx.setNavigationBarTitle({
|
|
|
|
|
// // title,
|
|
|
|
|
// // });
|
|
|
|
|
|
|
|
|
|
if (app.length > 0) {
|
|
|
|
|
arrTemp.push({
|
|
|
|
|
item0: arr[0].split("#")[0],
|
|
|
|
|
item1: arr[1].split("#")[0],
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
result.storeJob.foregift = arrTemp;
|
|
|
|
|
} else {
|
|
|
|
|
result.storeJob.foregift = "无押金";
|
|
|
|
|
}
|
|
|
|
|
// result.storeJob.workType = commonUtil.getWorkTypeById(result.storeJob.workTypeMulti);
|
|
|
|
|
|
|
|
|
|
result.store.distance = commonUtil.getDistanceName(result.store.distance);
|
|
|
|
|
if (app.isNotEmptyCheck(result.store.distance)) {
|
|
|
|
|
result.store.distance = "丨" + result.store.distance;
|
|
|
|
|
// if (app.isNotEmptyCheck(result.storeJob.calculationSalaryType)) {
|
|
|
|
|
// result.storeJob.calculationSalaryType = result.storeJob.calculationSalaryType.split("#")[0];
|
|
|
|
|
// }
|
|
|
|
|
if (app.isNotEmptyCheck(result.job.jobDesp)) {
|
|
|
|
|
result.job.jobDesp = result.job.jobDesp.replaceAll("*****", "").split("————————")[0].replace("⚠", "<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>").replace("[红包]", "<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*if (app.isNotEmptyCheck(result.store.district)) {
|
|
|
|
|
var tempArr = result.store.district.split(",");
|
|
|
|
|
|
|
|
|
|
if (tempArr.length == 1) {
|
|
|
|
|
result.store.district = tempArr[0];
|
|
|
|
|
} else if (tempArr.length == 2) {
|
|
|
|
|
result.store.district = tempArr[0] + "" + tempArr[1];
|
|
|
|
|
} else if (tempArr.length > 2) {
|
|
|
|
|
result.store.district = tempArr[1] + "" + tempArr[2];
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
// getStoreAddress
|
|
|
|
|
|
|
|
|
|
that.disposeJobListData(result);
|
|
|
|
|
if (app.isNotEmptyCheck(result.store.logo)) {
|
|
|
|
|
result["logo2"] = result.store.logo.replace("http:", "https:");
|
|
|
|
|
result.store.logo.indexOf("https") > -1 ? result.store.logo : result.store.logo.replace("http", "https")
|
|
|
|
|
} else {
|
|
|
|
|
result["logo2"] = "";
|
|
|
|
|
}
|
|
|
|
|
// console.log(result.job)
|
|
|
|
|
that.disposeJobListData(result.job);
|
|
|
|
|
// if (app.isNotEmptyCheck(result.job.logo)) {
|
|
|
|
|
// result.job["logo2"] = result.job.logo.replace("http:", "https:");
|
|
|
|
|
// result.job.logo.indexOf("https") > -1 ? result.job.logo : result.logo.replace("http", "https")
|
|
|
|
|
// } else {
|
|
|
|
|
// result.job["logo2"] = "";
|
|
|
|
|
// }
|
|
|
|
|
// console.log(commonUtil.getReturnFeeTypeName1ById(result.storeJob.returnFeeType, result.storeJob.returnFee));
|
|
|
|
|
console.log("isout");
|
|
|
|
|
if (app.isNotEmptyCheck(result.storeJob.returnFeeType) || result.storeJob.returnFeeType == "0" || result.storeJob.returnFee == "0") {
|
|
|
|
|
if (app.isNotEmptyCheck(result.job.returnFeeType) || result.job.returnFeeType == "0" || result.job.returnFee == "0") {
|
|
|
|
|
that.setData({
|
|
|
|
|
fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.storeJob.returnFeeType, result.storeJob.returnFee),
|
|
|
|
|
fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.job.returnFeeType, result.job.returnFee),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// else if (result.storeJob.returnFeeType == 7) {
|
|
|
|
|
@ -999,35 +806,19 @@ Page({
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(result);
|
|
|
|
|
console.log(res.data.data.collected);
|
|
|
|
|
console.log(commonUtil);
|
|
|
|
|
let citys = commonUtil.setJobInfoPosition(result.store.district);
|
|
|
|
|
// city = city.replace(/,/g, " | ")
|
|
|
|
|
result.storeImage.splice(0, 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.job['collected'] = result.collected ? 1 : 2
|
|
|
|
|
|
|
|
|
|
that.setData({
|
|
|
|
|
jobDetail: result,
|
|
|
|
|
isMaskShow: !(result.storeJob.recruitment == "1"),
|
|
|
|
|
citys: citys || "-",
|
|
|
|
|
addressNew: result.store.district.replace(/,/g, "") + result.store.detailPosition,
|
|
|
|
|
jobDetail: result.job,
|
|
|
|
|
// isMaskShow: !(result.storeJob.recruitment == "1"),
|
|
|
|
|
// citys: citys || "-",
|
|
|
|
|
// addressNew: result.store.district.replace(/,/g, "") + result.store.detailPosition,
|
|
|
|
|
});
|
|
|
|
|
that.data.jobDetail.storeJob["storeName"] = that.data.jobDetail.store.storeName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.showSexAge();
|
|
|
|
|
|
|
|
|
|
// that.getAgencyInfo(res.data.data.storeJob);
|
|
|
|
|
|
|
|
|
|
if (app.isEmptyCheck(res.data.data.storeJob.handoverInfo)) {
|
|
|
|
|
that.setData({
|
|
|
|
|
djxx: "暂无对接信息",
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
that.setData({
|
|
|
|
|
djxx: res.data.data.storeJob.handoverInfo,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
|
}
|
|
|
|
|
wx.hideLoading();
|
|
|
|
|
@ -1040,25 +831,25 @@ Page({
|
|
|
|
|
var manStr = "";
|
|
|
|
|
var womanStr = "";
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeMan) || app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeMan)) {
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.minAgeMan) || app.isNotEmptyCheck(that.data.jobDetail.maxAgeMan)) {
|
|
|
|
|
manStr = "男 ";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeMan)) {
|
|
|
|
|
manStr = manStr + that.data.jobDetail.storeJob.minAgeMan;
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.minAgeMan)) {
|
|
|
|
|
manStr = manStr + that.data.jobDetail.minAgeMan;
|
|
|
|
|
}
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeMan)) {
|
|
|
|
|
manStr = manStr + "-" + that.data.jobDetail.storeJob.maxAgeMan;
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.maxAgeMan)) {
|
|
|
|
|
manStr = manStr + "-" + that.data.jobDetail.maxAgeMan;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeWoman) || app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeWoman)) {
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.minAgeWoman) || app.isNotEmptyCheck(that.data.jobDetail.maxAgeWoman)) {
|
|
|
|
|
womanStr = "女 ";
|
|
|
|
|
}
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.minAgeWoman)) {
|
|
|
|
|
womanStr = womanStr + that.data.jobDetail.storeJob.minAgeWoman;
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.minAgeWoman)) {
|
|
|
|
|
womanStr = womanStr + that.data.jobDetail.minAgeWoman;
|
|
|
|
|
}
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.storeJob.maxAgeWoman)) {
|
|
|
|
|
womanStr = womanStr + "-" + that.data.jobDetail.storeJob.maxAgeWoman;
|
|
|
|
|
if (app.isNotEmptyCheck(that.data.jobDetail.maxAgeWoman)) {
|
|
|
|
|
womanStr = womanStr + "-" + that.data.jobDetail.maxAgeWoman;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (womanStr != "") {
|
|
|
|
|
@ -1086,79 +877,79 @@ Page({
|
|
|
|
|
// }
|
|
|
|
|
//年龄
|
|
|
|
|
var ageStr = "";
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.storeJob.minAge) && app.isNotEmptyCheck(jobDetail.storeJob.maxAge)) {
|
|
|
|
|
ageStr = jobDetail.storeJob.minAge + "-" + jobDetail.storeJob.maxAge + "岁";
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.storeJob.minAge)) {
|
|
|
|
|
ageStr = jobDetail.storeJob.minAge + "岁以上";
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.storeJob.maxAge)) {
|
|
|
|
|
ageStr = jobDetail.storeJob.maxAge + "岁以下";
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.minAge) && app.isNotEmptyCheck(jobDetail.maxAge)) {
|
|
|
|
|
ageStr = jobDetail.minAge + "-" + jobDetail.maxAge + "岁";
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.minAge)) {
|
|
|
|
|
ageStr = jobDetail.minAge + "岁以上";
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.maxAge)) {
|
|
|
|
|
ageStr = jobDetail.maxAge + "岁以下";
|
|
|
|
|
}
|
|
|
|
|
jobDetail.storeJob["age"] = ageStr;
|
|
|
|
|
jobDetail["age"] = ageStr;
|
|
|
|
|
//时薪
|
|
|
|
|
// var hourlyPayStr = "";
|
|
|
|
|
var hasHourlyPay = true;
|
|
|
|
|
console.log(jobDetail.storeJob);
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.storeJob.hourlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.hourlyPay + "元/小时";
|
|
|
|
|
console.log(jobDetail);
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.hourlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.hourlyPay + "元/小时";
|
|
|
|
|
// hasHourlyPay = true;
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.storeJob.dayPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.dayPay + "元/日";
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.dayPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.dayPay + "元/日";
|
|
|
|
|
// hasHourlyPay = true;
|
|
|
|
|
// } else {
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) {
|
|
|
|
|
// if (jobDetail.storeJob.minMonthlyPay == jobDetail.storeJob.maxMonthlyPay) {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.minMonthlyPay;
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.maxMonthlyPay)) {
|
|
|
|
|
// if (jobDetail.minMonthlyPay == jobDetail.maxMonthlyPay) {
|
|
|
|
|
// hourlyPayStr = jobDetail.minMonthlyPay;
|
|
|
|
|
// } else {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.minMonthlyPay + "-" + jobDetail.storeJob.maxMonthlyPay;
|
|
|
|
|
// hourlyPayStr = jobDetail.minMonthlyPay + "-" + jobDetail.maxMonthlyPay;
|
|
|
|
|
// }
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.minMonthlyPay;
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.storeJob.maxMonthlyPay;
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.minMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.minMonthlyPay;
|
|
|
|
|
// } else if (app.isNotEmptyCheck(jobDetail.maxMonthlyPay)) {
|
|
|
|
|
// hourlyPayStr = jobDetail.maxMonthlyPay;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.storeJob.dayPay)){
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.dayPay)){
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.storeJob.salaryClassify) && app.isNotEmptyCheck(jobDetail.storeJob.salaryClassifyValue)) {
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.salaryClassify) && app.isNotEmptyCheck(jobDetail.salaryClassifyValue)) {
|
|
|
|
|
|
|
|
|
|
jobDetail.storeJob["hourlyPay"] = commonUtil.getSalaryClassifyValue(jobDetail.storeJob.salaryClassify, jobDetail.storeJob.salaryClassifyValue);
|
|
|
|
|
jobDetail["hourlyPay"] = commonUtil.getSalaryClassifyValue(jobDetail.salaryClassify, jobDetail.salaryClassifyValue);
|
|
|
|
|
// }
|
|
|
|
|
//月薪
|
|
|
|
|
var monthlyPayStr = "";
|
|
|
|
|
if (hasHourlyPay) {
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) {
|
|
|
|
|
if (jobDetail.storeJob.minMonthlyPay == jobDetail.storeJob.maxMonthlyPay) {
|
|
|
|
|
monthlyPayStr = jobDetail.storeJob.minMonthlyPay;
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.minMonthlyPay) && app.isNotEmptyCheck(jobDetail.maxMonthlyPay)) {
|
|
|
|
|
if (jobDetail.minMonthlyPay == jobDetail.maxMonthlyPay) {
|
|
|
|
|
monthlyPayStr = jobDetail.minMonthlyPay/100;
|
|
|
|
|
} else {
|
|
|
|
|
monthlyPayStr = jobDetail.storeJob.minMonthlyPay + "-" + jobDetail.storeJob.maxMonthlyPay;
|
|
|
|
|
monthlyPayStr = jobDetail.minMonthlyPay/100 + "-" + jobDetail.maxMonthlyPay/100;
|
|
|
|
|
}
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.storeJob.minMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = jobDetail.storeJob.minMonthlyPay;
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.storeJob.maxMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = jobDetail.storeJob.maxMonthlyPay;
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.minMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = jobDetail.minMonthlyPay/100;
|
|
|
|
|
} else if (app.isNotEmptyCheck(jobDetail.maxMonthlyPay)) {
|
|
|
|
|
monthlyPayStr = jobDetail.maxMonthlyPay/100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
jobDetail.storeJob["monthlyPay"] = monthlyPayStr;
|
|
|
|
|
jobDetail["monthlyPay"] = monthlyPayStr;
|
|
|
|
|
//地址深圳丨龙岗区丨
|
|
|
|
|
var districtStr = "";
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.store.district)) {
|
|
|
|
|
var districtArr = jobDetail.store.district.split(",");
|
|
|
|
|
if (districtArr.length < 3) {
|
|
|
|
|
districtStr = districtArr[districtArr.length - 1];
|
|
|
|
|
} else {
|
|
|
|
|
districtStr = districtArr[1] + "丨" + districtArr[2];
|
|
|
|
|
}
|
|
|
|
|
//districtStr = districtArr[1] + '丨' + districtArr[2];
|
|
|
|
|
}
|
|
|
|
|
jobDetail.store["districtStr"] = districtStr;
|
|
|
|
|
jobDetail.storeJob["districtDetail"] = commonUtil.getStoreAddress(jobDetail.storeJob.district, jobDetail.storeJob.detailPosition);
|
|
|
|
|
//职位特色
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.storeJob.jobSpecialLabelNames)) {
|
|
|
|
|
jobDetail.storeJob["jobSpecialLabelNames"] = that.getJobSpecialLabelNamesArray(jobDetail.storeJob.jobSpecialLabelNames);
|
|
|
|
|
// var districtStr = "";
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.store.district)) {
|
|
|
|
|
// var districtArr = jobDetail.store.district.split(",");
|
|
|
|
|
// if (districtArr.length < 3) {
|
|
|
|
|
// districtStr = districtArr[districtArr.length - 1];
|
|
|
|
|
// } else {
|
|
|
|
|
// districtStr = districtArr[1] + "丨" + districtArr[2];
|
|
|
|
|
// }
|
|
|
|
|
// //districtStr = districtArr[1] + '丨' + districtArr[2];
|
|
|
|
|
// }
|
|
|
|
|
// jobDetail.store["districtStr"] = districtStr;
|
|
|
|
|
// jobDetail["districtDetail"] = commonUtil.getStoreAddress(jobDetail.district, jobDetail.detailPosition);
|
|
|
|
|
// //职位特色
|
|
|
|
|
if (app.isNotEmptyCheck(jobDetail.jobSpecialLabelNames)) {
|
|
|
|
|
jobDetail["jobSpecialLabelNames"] = that.getJobSpecialLabelNamesArray(jobDetail.jobSpecialLabelNames);
|
|
|
|
|
}
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.storeJob.jobRequestLabelNames)) {
|
|
|
|
|
// jobDetail.storeJob['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.storeJob.jobRequestLabelNames);
|
|
|
|
|
// if (app.isNotEmptyCheck(jobDetail.jobRequestLabelNames)) {
|
|
|
|
|
// jobDetail['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.jobRequestLabelNames);
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
getJobSpecialLabelNamesArray (jobSpecialLabelNames) {
|
|
|
|
|
@ -1178,10 +969,10 @@ Page({
|
|
|
|
|
var that = this;
|
|
|
|
|
|
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
|
console.log(that.data.jobDetail.storeJob.jobLabelId);
|
|
|
|
|
console.log(that.data.jobDetail.jobLabelId);
|
|
|
|
|
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: "../similar/index?brandId=" + that.data.jobDetail.store.brandId + "&jobLabelId=" + that.data.jobDetail.storeJob.jobLabelId + "&classify=99",
|
|
|
|
|
url: "../similar/index?brandId=" + that.data.jobDetail.store.brandId + "&jobLabelId=" + that.data.jobDetail.jobLabelId + "&classify=99",
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -1288,7 +1079,7 @@ Page({
|
|
|
|
|
console.log(this.data.recordBillShow);
|
|
|
|
|
return
|
|
|
|
|
let argument;
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail.storeJob).replace(/\=|\&/g, "3D");
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail).replace(/\=|\&/g, "3D");
|
|
|
|
|
|
|
|
|
|
if (!app.globalData.isLogin) {
|
|
|
|
|
wx.setStorageSync("comeFromPage", "detailBaoming");
|
|
|
|
|
@ -1325,12 +1116,12 @@ Page({
|
|
|
|
|
var that = this;
|
|
|
|
|
console.log(e);
|
|
|
|
|
console.log(e.detail.errMsg);
|
|
|
|
|
console.log(that.data.jobDetail.storeJob);
|
|
|
|
|
console.log(that.data.jobDetail);
|
|
|
|
|
/*wx.setStorageSync({
|
|
|
|
|
key: "jobDetailStorage",
|
|
|
|
|
data: that.data.jobDetail.storeJob,
|
|
|
|
|
data: that.data.jobDetail,
|
|
|
|
|
});*/
|
|
|
|
|
wx.setStorageSync("jobDetailStorage", that.data.jobDetail.storeJob);
|
|
|
|
|
wx.setStorageSync("jobDetailStorage", that.data.jobDetail);
|
|
|
|
|
// console.log(e);
|
|
|
|
|
// console.log(e.detail.errMsg)
|
|
|
|
|
console.log(e.detail.iv);
|
|
|
|
|
@ -1371,7 +1162,7 @@ Page({
|
|
|
|
|
});*/
|
|
|
|
|
promise.then((res) => {
|
|
|
|
|
let argument;
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail.storeJob).replace(/\=|\&/g, "3D");
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail).replace(/\=|\&/g, "3D");
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
});
|
|
|
|
|
@ -1424,7 +1215,7 @@ Page({
|
|
|
|
|
} else {
|
|
|
|
|
promise.then((res) => {
|
|
|
|
|
let argument;
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail.storeJob).replace(/\=|\&/g, "3D");
|
|
|
|
|
argument = JSON.stringify(that.data.jobDetail).replace(/\=|\&/g, "3D");
|
|
|
|
|
wx.navigateTo({
|
|
|
|
|
url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
|
|
|
|
|
});
|
|
|
|
|
@ -1531,28 +1322,23 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
doCollected (collected, storeJobId) {
|
|
|
|
|
var that = this;
|
|
|
|
|
var url = "/user/collect/job/add";
|
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
|
url = "/user/collect/job/remove";
|
|
|
|
|
}
|
|
|
|
|
// console.log(app.globalData.headers);
|
|
|
|
|
var url = "/assistant/job/collect/"+storeJobId;
|
|
|
|
|
//发起网络请求
|
|
|
|
|
wx.request({
|
|
|
|
|
url: app.globalData.ip + url,
|
|
|
|
|
data: {
|
|
|
|
|
storeJobId: storeJobId,
|
|
|
|
|
},
|
|
|
|
|
header: app.globalData.headers,
|
|
|
|
|
method: "GET",
|
|
|
|
|
success: function (res) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
|
|
var txt;
|
|
|
|
|
if (collected - 1 == 0) {
|
|
|
|
|
//取消收藏
|
|
|
|
|
that.data.jobDetail.storeJob.collected = 2;
|
|
|
|
|
that.data.jobDetail.collected = 2;
|
|
|
|
|
txt = "取消收藏";
|
|
|
|
|
} else {
|
|
|
|
|
//收藏
|
|
|
|
|
that.data.jobDetail.storeJob.collected = 1;
|
|
|
|
|
that.data.jobDetail.collected = 1;
|
|
|
|
|
txt = "收藏成功";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|