cyl/dev
wangxia 1 year ago
parent 642295e23d
commit 4e89b85049

@ -105,7 +105,6 @@
}
],
"requiredPrivateInfos": [
"getLocation",
"chooseLocation",
"chooseAddress"
],

@ -283,29 +283,29 @@ page {
border: 1px solid #eee;
}
.bb1 {
border-bottom: 1rpx solid #eee;
border-bottom: 1px solid #eee;
}
.br1 {
border-right: 1rpx solid #eee;
border-right: 1px solid #eee;
}
.bt1 {
border-top: 1rpx solid #eee;
border-top: 1px solid #eee;
}
.bl1 {
border-left: 1rpx solid #eee;
border-left: 1px solid #eee;
}
.bbd1 {
border-bottom: 1rpx dotted #eee;
border-bottom: 1px dotted #eee;
}
.brd1 {
border-right: 1rpx dotted #eee;
border-right: 1px dotted #eee;
}
.btd1 {
border-top: 1rpx dotted #eee;
border-top: 1px dotted #eee;
}
.bld1 {
border-left: 1rpx dotted #eee;
border-left: 1px dotted #eee;
}
.f4 {
font-size: 4px;
@ -501,7 +501,7 @@ page {
}
.lineT {
height: 1rpx;
height: 1px;
width: calc(100vw - 40px);
margin: 0 auto;
background-color: rgba(0, 0, 0, 0.1);
@ -701,7 +701,7 @@ button[disabled][type="primary"] {
height: 50px;
margin-right: 6px;
border-radius: 4px;
/* border: 1rpx solid #ddd; */
/* border: 1px solid #ddd; */
}
.row-extra.c025 {
@ -860,8 +860,8 @@ button {
margin: 0 !important;
}
.wx-border-tb {
border-top: 1px solid #f3f3f3;
border-bottom: 1px solid #f3f3f3;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
.userImg {
@ -911,13 +911,7 @@ button::after {
justify-content: center;
}
.jobTitle {
font-size: 22px;
font-weight: 601;
color: rgba(0, 0, 0, 0.85);
line-height: 30px;
flex: 1;
}
[data-title*="null"] {
display: none;
@ -1026,7 +1020,7 @@ button::after {
padding-bottom: 16px;
padding-top: 16px;
box-sizing: border-box;
border-bottom: 1px solid #f3f3f3;
border-bottom: 1px solid #eee;
}
.staticTitle {
@ -1082,13 +1076,13 @@ button::after {
color: #787878;
line-height: 22px;
margin-bottom: 20px;
/* border-bottom: 1rpx solid #e2e2e2; */
/* border-bottom: 1px solid #e2e2e2; */
}
.weui-dialog__bd view {
/* padding-bottom: 20px; */
/* border-bottom: 1rpx solid #e2e2e2; */
/* border-bottom: 1px solid #e2e2e2; */
}
.weui-dialog__hd {
@ -1173,7 +1167,7 @@ button::after {
white-space: nowrap;
}
.servicePrice {
border: 1rpx solid var(--color-ysd);
border: 1px solid var(--color-ysd);
background-color: #ffeee7;
justify-content: space-between;
border-right-color: transparent;
@ -1245,7 +1239,7 @@ button::after {
padding-bottom: 10px;
margin-bottom: 60px;
padding-top: 32rpx;
border-top: 1px solid #f3f3f3;
border-top: 1px solid #eee;
}
.ui-step.ui-list > view {
@ -1411,7 +1405,7 @@ button::after {
padding-bottom: 10px;
margin-bottom: 60px;
padding-top: 32rpx;
border-top: 1px solid #f3f3f3;
border-top: 1px solid #eee;
}
.ui-step.ui-list > view {
@ -1481,7 +1475,7 @@ button.newBtn.mbtn-hover {
.topMenu {
display: flex;
padding: 12px 0;
border-bottom: 1px solid #f3f3f3;
border-bottom: 1px solid #eee;
background-color: #fff;
}
@ -1522,14 +1516,14 @@ button.newBtn.mbtn-hover {
line-height: 18px;
}
.loadMore {
border-top: 1rpx solid transparent;
border-bottom: 1rpx solid transparent;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
background-color: #fff;
}
.loadMore view {
width: 120px;
height: 28px;
border: 1px solid #f3f3f3;
border: 1px solid #eee;
border-radius: 20px;
font-size: 14px;
text-align: center;
@ -1698,7 +1692,7 @@ page {
}
.weui-loadmore_line {
border-top: 1px solid #f3f3f3;
border-top: 1px solid #eee;
}
.weui-grid4,
.weui-grid5 {

@ -6,20 +6,21 @@
<!-- <image style="width: 72px;height: 72px;position: absolute;right: 100px;" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/weishangxian.svg" wx:if="{{item.state == 0}}"></image> -->
<view class="display-flex">
<view class="flex-1 vsb">
<view class="display-flex">
<view class="fsa">
<view class="storeName">{{item.jobName || item.aliasName}}</view>
<!-- <view class="hourPay">{{item.salaryClassifyValue}}</view> -->
<view class="f14s c045">{{item.update}}</view>
</view>
<view class="v-center mt8 mb10">
<view class="f14s c045 flex-1">
<view class="overflowOmit mb8 fss">
<view class='oelps mr4' style="max-width:120px">
{{item.storeAddr ?item.storeAddr : ''}}
<view class='oelps' style="max-width:120px">
{{item.district }}
</view>
{{item.district ?'丨' :''}}
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">
{{item.distanceKm}}
</block>
<block wx:else>{{' | ' + item.age}}</block>
<block wx:else>{{item.genderRestrict + '丨' + item.age}}</block>
</view>
<scroll-view scroll-x="{{true}}" catchscroll="stoptap" bindtap="stoptap" class="tttg {{item.isTagShow==true ? 'isTagShow':''}}">
<!-- <view class="t-icon t-icon-ziying1 " wx:if="{{item.signType == 1}}" style="background-repeat:no-repeat"></view> -->

@ -147,7 +147,7 @@ Page({
this.getAllCityLevel2();
this.getAllProvinceLevel1();
// that.getProvinceLocation()
// that.getLocation()
that.getLocation()
},
leftMove (e) {
this.setData({

@ -1,5 +1,7 @@
const app = getApp();
const commonUtil = require("../../utils/commonUtil");
const dateUtil = require("../../utils/dateUtil");
const {
wxml,
style
@ -59,17 +61,17 @@ Page({
shareDetailImg: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/share.png",
posterImg: "",
},
showdialog() {
showdialog () {
this.setData({
iosDialog: true,
});
},
closeDialog() {
closeDialog () {
this.setData({
iosDialog: false,
});
},
onShow() {
onShow () {
var that = this;
this.setData({
isLogin: app.globalData.isLogin,
@ -122,10 +124,10 @@ Page({
phoneDialog: false,
});
},
wxLogin() {
wxLogin () {
var that = this;
wx.login({
success(res) {
success (res) {
if (res.code) {
that.setData({
wxCode: res.code,
@ -136,7 +138,7 @@ Page({
},
});
},
kefu(e) {
kefu (e) {
console.log(e);
console.log('jobDetail', this.data.jobDetail);
if (this.data.fromBocai) {
@ -167,10 +169,10 @@ Page({
// sendMessageTitle:'丸子吗喽你好呀',
// sendMessageImg:'../../assets/images/jbn.png',
corpId: 'wwc227639d3a136c8d',
success(res) {
success (res) {
console.log('res', res);
},
fail(err) {
fail (err) {
console.log('err', err);
}
})
@ -185,7 +187,7 @@ Page({
}
},
showImage(e) {
showImage (e) {
let resImg = e.currentTarget.dataset.src;
console.log(this.data.jobDetail.images);
var imgArr = [];
@ -206,7 +208,7 @@ Page({
urls: imgArr,
});
},
showVideo(e) {
showVideo (e) {
console.log(e);
console.log(wx.getSystemInfo());
var that = this;
@ -220,7 +222,7 @@ Page({
});
}, 500);
},
fullScreen(e) {
fullScreen (e) {
console.log(e);
if (!e.detail.fullScreen) {
this.setData({
@ -229,7 +231,7 @@ Page({
this.videoContext.stop();
}
},
shareVideo(e) {
shareVideo (e) {
console.log(e);
wx.showLoading({
title: "下载中...",
@ -237,7 +239,7 @@ Page({
});
wx.downloadFile({
url: e.currentTarget.dataset.src, // 下载url
success(res) {
success (res) {
// 下载完成后转发
wx.hideLoading();
wx.showLoading({
@ -246,7 +248,7 @@ Page({
});
wx.shareVideoMessage({
videoPath: res.tempFilePath,
success() {
success () {
wx.hideLoading();
},
fail: () => {
@ -266,7 +268,7 @@ Page({
},
});
},
renderToCanvas() {
renderToCanvas () {
const p1 = this.widget.renderToCanvas({
wxml: wxml(that.data.wxml),
style
@ -277,7 +279,7 @@ Page({
console.log(res);
});
},
extraImage() {
extraImage () {
var that = this;
// return new Promise(function (resolve, reject) {
that.widget.renderToCanvas({
@ -294,7 +296,7 @@ Page({
});
// });
},
onLoad(query) {
onLoad (query) {
var that = this;
console.log(app.globalData.loginUserInfo);
qqmapsdk = new QQMapWX({
@ -331,7 +333,7 @@ Page({
that.setData({
pbtm: 40,
});
} else {}
} else { }
},
});
console.log(query);
@ -398,12 +400,12 @@ Page({
this.getStoreJobDetailById();
}, 100);
},
goIndex() {
goIndex () {
wx.switchTab({
url: '../firstBill/index',
})
},
getCode() {
getCode () {
var that = this;
console.log('getCode');
console.log(this.data.searchForm.storeJobId);
@ -428,7 +430,7 @@ Page({
// }
// })
},
getAgencyInfo(job) {
getAgencyInfo (job) {
var that = this;
console.log(job);
console.log("打印基本信息");
@ -471,7 +473,7 @@ Page({
// return agencyStr + '\n' + objAgency.returnFeeDesp;
}
},
toMapChoice(e) {
toMapChoice (e) {
var that = this;
console.log(e);
if (e.currentTarget.dataset.address.record.storeLat) {
@ -521,13 +523,13 @@ Page({
// },
// });
// },
changeMenu(e) {
changeMenu (e) {
let currentIndex = parseInt(e.currentTarget.dataset.id);
this.setData({
currIndex: e.currentTarget.dataset.id,
});
},
getLocation() {
getLocation () {
var that = this;
wx.getSetting({
@ -536,7 +538,7 @@ Page({
if (res.authSetting.location) {
wx.getLocation({
success(res1) {
success (res1) {
console.log("获取位置");
console.log(res1);
@ -548,7 +550,7 @@ Page({
that.getStoreJobDetailById();
},
fail() {
fail () {
that.getStoreJobDetailById();
},
});
@ -607,7 +609,7 @@ Page({
// query: "?storeJobId=" + this.data.storeJobId,
// };
// },
getCanvas() {
getCanvas () {
const that = this;
return new Promise((resolve) => {
@ -628,7 +630,7 @@ Page({
// 绘制背景图片
wx.getImageInfo({
src: that.data.shareDetailImg, //网络图片,如果不行请换一个
success(res) {
success (res) {
console.log(res);
var width = res.width;
var height = res.height;
@ -690,7 +692,7 @@ Page({
ctx.restore();
};
function roundRect1(ctx, x, y, w, h, r, color) {
function roundRect1 (ctx, x, y, w, h, r, color) {
//绘制圆角矩形(无填充色))
ctx.save();
ctx.fillStyle = color;
@ -704,121 +706,121 @@ Page({
}
//使用:
new Promise((imgres) => {
// that.data.checkedList.forEach((item, index) => {
console.log(587);
let labelLeft = 0;
// ctx.arcTo()
let baseTop, logoLeft, logoSize, titleSize, ageTop, salaryClassifyValueLeft, salaryClassifyValueTop, monthlyPaySize, position, markTop, roundRectHeight, fubiaotiTop, bottomSloganTop, QRSize;
logoLeft = 56 * 2;
let baseMiddle = 248 * 2;
// if (that.data.checkedList.length == 1) {
baseTop = 2 * 370;
logoSize = 2 * 96;
QRSize = 2 * 260;
titleSize = 2 * 30;
roundRectHeight = 2 * 260;
ageTop = 2 * 110;
salaryClassifyValueLeft = 2 * 176;
salaryClassifyValueTop = 2 * 54;
monthlyPaySize = 2 * 24;
markTop = 2 * 145;
fubiaotiTop = 2 * 155;
bottomSloganTop = 2 * 355;
// roundRect1(ctx, x, y, w, h, r, color)
roundRect1(ctx, mycenter - 1104 / 2, baseTop - 100, 1104, roundRectHeight, 32, "#fff");
// roundRect1(ctx, mycenter - 600 / 2, baseTop + 750, 600, 560, 32, "#fff");
console.log(' that.data.currCode', that.data.currCode);
wx.getImageInfo({
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
// src:"https://daotian.matripe.com.cn/image/jobs/4/storeJobId9227.jpg",
src: app.globalData.ip + that.data.currCode,
success(res) {
console.log(res);
const img = canvas.createImage();
img.src = res.path;
img.onload = () => {
// (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r)
// roundRect(ctx, img, mycenter - res.width / 2 - 40, baseTop + 770, QRSize, QRSize, 32);
roundRect1(ctx, mycenter - 580 / 2, baseTop + 740, 580, 580, 0, "#fff");
roundRect(ctx, img, mycenter - res.width / 2 - 40, baseTop + 770, QRSize, QRSize, 0);
// if (index == that.data.checkedList.length - 1) {
// setTimeout(() => {
// imgres();
// }, 1000);
// }
wx.getImageInfo({
src: that.data.jobDetail.store.logo, //网络图片,如果不行请换一个
success(res) {
console.log(res);
const img = canvas.createImage();
img.src = res.path;
img.onload = () => {
roundRect(ctx, img, logoLeft, baseTop + 40, logoSize, logoSize, 8);
// if (index == that.data.checkedList.length - 1) {
setTimeout(() => {
imgres();
}, 200);
// }
};
},
fail(err) {
console.log(err);
},
});
};
},
fail(err) {
console.log(err);
},
});
that.data.jobDetail.record.jobSpecialLabelNames.forEach((item1, index) => {
console.log(item1);
// console.log(ctx.measureText(item1).width);
if (index <= 2) {
fillTextLineBreak(ctx, item1, 60 * 2 + labelLeft, baseTop + markTop + 30 * 2, 400 * 2, 20, "#333", monthlyPaySize); // 标签字符
roundRect1(ctx, 52 * 2 + labelLeft, baseTop + markTop, ctx.measureText(item1).width + 16 * 2, 40 * 2, 2 * 2, "#00000010");
labelLeft += ctx.measureText(item1).width + 32 * 2;
}
});
// that.data.checkedList.forEach((item, index) => {
console.log(587);
let labelLeft = 0;
// ctx.arcTo()
let baseTop, logoLeft, logoSize, titleSize, ageTop, salaryClassifyValueLeft, salaryClassifyValueTop, monthlyPaySize, position, markTop, roundRectHeight, fubiaotiTop, bottomSloganTop, QRSize;
logoLeft = 56 * 2;
let baseMiddle = 248 * 2;
// if (that.data.checkedList.length == 1) {
baseTop = 2 * 370;
logoSize = 2 * 96;
QRSize = 2 * 260;
titleSize = 2 * 30;
roundRectHeight = 2 * 260;
ageTop = 2 * 110;
salaryClassifyValueLeft = 2 * 176;
salaryClassifyValueTop = 2 * 54;
monthlyPaySize = 2 * 24;
markTop = 2 * 145;
fubiaotiTop = 2 * 155;
bottomSloganTop = 2 * 355;
// roundRect1(ctx, x, y, w, h, r, color)
roundRect1(ctx, mycenter - 1104 / 2, baseTop - 100, 1104, roundRectHeight, 32, "#fff");
// roundRect1(ctx, mycenter - 600 / 2, baseTop + 750, 600, 560, 32, "#fff");
console.log(' that.data.currCode', that.data.currCode);
wx.getImageInfo({
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
// src:"https://daotian.matripe.com.cn/image/jobs/4/storeJobId9227.jpg",
src: app.globalData.ip + that.data.currCode,
success (res) {
console.log(res);
const img = canvas.createImage();
img.src = res.path;
img.onload = () => {
// (ctx, img, bg_x, bg_y, bg_w, bg_h, bg_r)
// roundRect(ctx, img, mycenter - res.width / 2 - 40, baseTop + 770, QRSize, QRSize, 32);
roundRect1(ctx, mycenter - 580 / 2, baseTop + 740, 580, 580, 0, "#fff");
roundRect(ctx, img, mycenter - res.width / 2 - 40, baseTop + 770, QRSize, QRSize, 0);
// if (index == that.data.checkedList.length - 1) {
// setTimeout(() => {
// imgres();
// }, 1000);
// }
wx.getImageInfo({
src: that.data.jobDetail.store.logo, //网络图片,如果不行请换一个
success (res) {
console.log(res);
const img = canvas.createImage();
img.src = res.path;
img.onload = () => {
roundRect(ctx, img, logoLeft, baseTop + 40, logoSize, logoSize, 8);
// if (index == that.data.checkedList.length - 1) {
setTimeout(() => {
imgres();
}, 200);
// }
};
},
fail (err) {
console.log(err);
},
});
};
},
fail (err) {
console.log(err);
},
});
that.data.jobDetail.record.jobSpecialLabelNames.forEach((item1, index) => {
console.log(item1);
// console.log(ctx.measureText(item1).width);
if (index <= 2) {
fillTextLineBreak(ctx, item1, 60 * 2 + labelLeft, baseTop + markTop + 30 * 2, 400 * 2, 20, "#333", monthlyPaySize); // 标签字符
roundRect1(ctx, 52 * 2 + labelLeft, baseTop + markTop, ctx.measureText(item1).width + 16 * 2, 40 * 2, 2 * 2, "#00000010");
labelLeft += ctx.measureText(item1).width + 32 * 2;
}
});
fillTextLineBreak(ctx, that.data.jobDetail.record.jobName, logoLeft, baseTop, 500 * 2, 20, "#333", titleSize, "600"); // 岗位标题
fillTextLineBreak(ctx, that.data.jobDetail.record.jobName, logoLeft, baseTop, 500 * 2, 20, "#333", titleSize, "600"); // 岗位标题
fillTextLineBreak(ctx, that.data.jobDetail.record.salaryClassifyValueHaibao, salaryClassifyValueLeft, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#1890ff", titleSize, "600"); // 时薪
fillTextLineBreak(ctx, that.data.jobDetail.record.salaryClassifyValueHaibao, salaryClassifyValueLeft, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#1890ff", titleSize, "600"); // 时薪
fillTextLineBreak(ctx, that.data.jobDetail.record.monthlyPay, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.record.salaryClassifyValueHaibao + " ").width, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#1890ff", monthlyPaySize, "400"); // 月工资
// .slice(0, 7) + '...'
fillTextLineBreak(ctx, that.data.jobDetail.record.monthlyPay, salaryClassifyValueLeft + ctx.measureText(that.data.jobDetail.record.salaryClassifyValueHaibao + " ").width, baseTop + salaryClassifyValueTop, 400 * 2, 20, "#1890ff", monthlyPaySize, "400"); // 月工资
// .slice(0, 7) + '...'
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"); // 代理名称
fillTextLineBreak(ctx, "长按查看职位详情", mycenter - ctx.measureText("长按查看职位详情").width / 2, baseTop + bottomSloganTop - 20, 300 * 2, 20, "#fff", monthlyPaySize); // 底部slogan
fillTextLineBreak(ctx, "长按查看职位详情", mycenter - ctx.measureText("长按查看职位详情").width / 2, baseTop + bottomSloganTop - 20, 300 * 2, 20, "#fff", monthlyPaySize); // 底部slogan
fillTextLineBreak(ctx, "好工作 放心干", mycenter - ctx.measureText("好工作 放心干").width / 1.6, baseTop + bottomSloganTop + 700, 500 * 2, 20, "#fff", titleSize); // 底部slogan
// 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);
fillTextLineBreak(ctx, "好工作 放心干", mycenter - ctx.measureText("好工作 放心干").width / 1.6, baseTop + bottomSloganTop + 700, 500 * 2, 20, "#fff", titleSize); // 底部slogan
// 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);
// });
// setTimeout(() => {
// },500);
})
// });
// setTimeout(() => {
// },500);
})
.then(function () {
wx.canvasToTempFilePath({
canvas: canvas,
success(res) {
success (res) {
console.log(res);
that.setData({
canvasImg: res.tempFilePath,
});
resolve(res);
},
fail(res) {
fail (res) {
wx.hideLoading();
wx.showToast({
@ -840,7 +842,7 @@ Page({
*
*
*/
sharePoster() {
sharePoster () {
wx.showLoading({
title: "生成中...",
});
@ -860,22 +862,22 @@ Page({
*
*
*/
hidedrawershow(e) {
hidedrawershow (e) {
console.log(e);
this.setData({
[e.detail.type]: false
})
},
hidePoster() {
hidePoster () {
this.setData({
posterShow: false,
});
},
saveToalbum() {
saveToalbum () {
let that = this;
wx.saveImageToPhotosAlbum({
filePath: that.data.posterImg,
success(res) {
success (res) {
console.log(res);
if (res.errMsg == "saveImageToPhotosAlbum:ok") {
wx.showToast({
@ -885,7 +887,7 @@ Page({
});
}
},
fail(res) {
fail (res) {
console.log(res);
wx.showToast({
title: "图片保存失败",
@ -895,7 +897,7 @@ Page({
},
});
},
getStoreJobDetailById() {
getStoreJobDetailById () {
var that = this;
wx.showLoading({
title: "加载中...",
@ -928,6 +930,10 @@ Page({
// item.url = item.url.replaceAll('http:','https:')
// });
result.record.genderRestrict = commonUtil.getGenderByMinAge(result.record);
// 更新时间
result.record.update = dateUtil.timeShowXXX2(result.record.updateTime);
if (app.isNotEmptyCheck(title)) {
title = result.record.jobName;
} else {
@ -943,7 +949,7 @@ Page({
if (app.isNotEmptyCheck(result.record.calculationSalaryType)) {
result.record.calculationSalaryType = result.record.calculationSalaryType.split("#")[0];
}
// if (app.isNotEmptyCheck(result.record.jobDesp)) {
// result.record.jobDesp = result.record.jobDesp.replaceAll("*****", "").split("————————")[0];
// }
@ -999,17 +1005,17 @@ Page({
// city = city.replace(/,/g, " | ")
that.data.jobDetail = result
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({
jobDetail: result,
isMaskShow: !(result.record.recruitment == "1"),
citys: citys || "-",
citys: citys ,
// 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.getAgencyInfo(result.record);
@ -1028,7 +1034,7 @@ Page({
})
},
showSexAge() {
showSexAge () {
var that = this;
var manStr = "";
var womanStr = "";
@ -1065,7 +1071,7 @@ Page({
/**
* 处理后台返回的职位列表
*/
disposeJobListData(jobDetail) {
disposeJobListData (jobDetail) {
var that = this;
// item["workType"] = commonUtil.getWorkTypeById(
@ -1158,7 +1164,7 @@ Page({
// jobDetail.record['jobRequestLabelNames'] = that.getJobRequestLabelNamesArray(jobDetail.record.jobRequestLabelNames);
// }
},
getJobSpecialLabelNamesArray(jobSpecialLabelNames) {
getJobSpecialLabelNamesArray (jobSpecialLabelNames) {
console.log('getJobSpecialLabelNamesArray', jobSpecialLabelNames);
if (app.isNotEmptyCheck(jobSpecialLabelNames)) {
console.log('jobSpecialLabelNames.split(", ")', jobSpecialLabelNames.split(", "));
@ -1166,14 +1172,14 @@ Page({
}
return [];
},
getJobRequestLabelNamesArray(jobRequestLabelNames) {
getJobRequestLabelNamesArray (jobRequestLabelNames) {
console.log(jobRequestLabelNames);
if (app.isNotEmptyCheck(jobRequestLabelNames)) {
return jobRequestLabelNames.split(", ");
}
return [];
},
goSimilar() {
goSimilar () {
var that = this;
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",
});
},
hideKefu() {
hideKefu () {
this.setData({
kefuShow: false
})
},
makePhoneCall(e) {
makePhoneCall (e) {
console.log('e', e);
console.log(1);
// return
@ -1231,7 +1237,7 @@ Page({
// });
// }
},
textPaste() {
textPaste () {
var that = this;
wx.setClipboardData({
// data: that.data.jobDetail.assistantUserWechat,
@ -1248,7 +1254,7 @@ Page({
title: "已复制微信号",
content: "快去搜索添加经纪人好友吧",
showCancel: false,
success(res) {
success (res) {
if (res.confirm) {
console.log("用户点击确定");
} else if (res.cancel) {
@ -1284,7 +1290,7 @@ Page({
},*/
goNewEnroll(e) {
goNewEnroll (e) {
let that = this;
let argument;
argument = JSON.stringify({
@ -1307,9 +1313,9 @@ Page({
// url: `../newEnroll/enroll/index?applyType=1&info=${argument}`,
// });
},
emptyMethod() {},
emptyMethod () { },
getPhoneNumber(e) {
getPhoneNumber (e) {
var that = this;
console.log(e);
console.log(e.detail.errMsg);
@ -1328,7 +1334,7 @@ Page({
var iv = e.detail.iv;
var encryptedData = e.detail.encryptedData;
wx.checkSession({
success() {
success () {
//session_key 未过期,并且在本生命周期一直有效
customRequest("/getWechatTel", {
header: 'headers',
@ -1423,10 +1429,10 @@ Page({
// },
// });
},
fail() {
fail () {
// session_key 已经失效,需要重新执行登录流程
wx.login({
success(res) {
success (res) {
if (res.code) {
console.log(res.code);
//发起网络请求
@ -1538,7 +1544,7 @@ Page({
}
return false;
},
setCopy(e) {
setCopy (e) {
var that = this;
var contentInfo;
const query = wx.createSelectorQuery().in(this);
@ -1549,9 +1555,9 @@ Page({
contentInfo = res.dataset.info;
wx.setClipboardData({
data: e.currentTarget.dataset.content,
success(res) {
success (res) {
wx.getClipboardData({
success(res) {
success (res) {
console.log(res.data); // data
wx.showToast({
title: "内容已复制",
@ -1565,13 +1571,13 @@ Page({
})
.exec();
},
changeContact() {
changeContact () {
console.log(2123);
wx.navigateTo({
url: `/pages/configAnnunciate/index`,
});
},
collectPaste(e) {
collectPaste (e) {
console.log(1);
var txt;
var that = this;
@ -1599,7 +1605,7 @@ Page({
// })
// }
},
doCollected(collected, storeJobId) {
doCollected (collected, storeJobId) {
var that = this;
var url = "/user/collect/job/add";
if (collected - 1 == 0) {
@ -1700,7 +1706,7 @@ Page({
// },
// });
},
toggleprice(type) {
toggleprice (type) {
console.log(type);
if (type.target.dataset.index == 1) {
this.setData({
@ -1712,7 +1718,7 @@ Page({
});
}
},
imageLoad() {
imageLoad () {
this.setData({
isLoading: false,
});
@ -1722,17 +1728,37 @@ Page({
*
*
*/
modalMove() {
modalMove () {
return false;
},
showTobe() {
showTobe () {
this.setData({
iosDialogTobe: true,
});
},
closeTobe() {
closeTobe () {
this.setData({
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)}`,
// });
// }
},
});
}
});

@ -5,7 +5,7 @@
"navigationBarBackgroundColor":"#fff",
"navigationBarTextStyle" :"black",
"navigationBarTitleText": "",
"backgroundColor": "#fff"
"backgroundColor": "#f5f5f5"
}

@ -1,12 +1,8 @@
<view class="pb180 bt1">
<view class="pb180">
<!-- <canvas type="2d" style="position: absolute;left:-2000px; width: 425px; height: 350px; background: #fff;" id="canvasId"></canvas> -->
<view>
<view class="display-flex servicePrice mt12 p14" hover-class="none" hover-stop-propagation="false">
<!-- <view class="display-flex servicePrice mt12 p14" hover-class="none" hover-stop-propagation="false" wx:if="{{false}}">
<view class="left">
<!--<view class="display-flex">
<icon class="iconfont icon-zhuyi f14 ysd-base-color"></icon>
<view class="f14 color666">该区域内容转发后老乡不可见</view>
</view>-->
<view class="price ysd-base-f40">
服务费:
<span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span>
@ -20,249 +16,277 @@
<view class="right">
<icon wx:if="{{isAgency}}" class="iconfont {{isServicePriceShow ? 'icon-zhengyan1' : 'icon-biyan1'}} ysd-base-f40" size="23" color bindtap="toggleprice" data-index="{{isServicePriceShow ? 1 : 2}}" style="height: 18px; position: relative; top: -10px;"></icon>
</view>
</view>
</view>
<view class="p20 pb10" style="padding-top:10px" id="tocanvas">
<view class="v-center">
<view class="jobTitle">
<!-- {{jobDetail.store.aliasName}} {{jobDetail.record.jobName}} -->
{{jobDetail.record.jobName}}
<!-- <button open-type="share" class="sharebtn" style="width:unset;padding:0;font-weight:100">
<i class="iconfont icon-zhuanfa f20" style="color: #999;"></i>
</button>-->
</view>-->
<view class="bgf p16 br8">
<view class="fsa" hover-class="none" hover-stop-propagation="false">
<view class="fss" hover-class="none" hover-stop-propagation="false">
<view class="fw500 mr4">代理佣金</view>
<icon wx:if="{{isAgency}}" class="iconfont {{isServicePriceShow ? 'icon-zhengyan1' : 'icon-biyan1'}} ysd-base-f40 f22" color bindtap="toggleprice" data-index="{{isServicePriceShow ? 1 : 2}}"></icon>
</view>
<view class="fse" bindtap="showFee" hover-class="none" hover-stop-propagation="false">
<span class wx:if="{{isServicePriceShow}}">{{fuWuFei || '--'}}</span>
<span class wx:else>***</span>
<view class="iconfont icon-you f14 c045 ml4" hover-class="none" hover-stop-propagation="false"></view>
</view>
</view>
</view>
<view class="display-flex mt12 mb8">
<view class="display-flex flex-1">
<!-- <view>
<image class="tImage" wx:if="{{jobDetail.store.logo != null && jobDetail.store.logo != ''}}" mode="aspectFit" src="{{jobDetail.store.logo}}"></image>
<image class="tImage" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image>
</view>-->
<view class="flex-1 vsb">
<view class="f14s c045">
<!-- 深圳丨龙岗区丨16-35岁 -->
{{citys}}
<!-- {{jobDetail.store.distance}} -->
</view>
<view class="f14s c045">
<!-- 深圳丨龙岗区丨16-35岁 -->
<block>{{jobDetail.record.genderRestrict}}</block>
丨{{jobDetail.record.age}}
<!-- {{jobDetail.record.district}}{{jobDetail.record.age}} -->
<view wx:if="{{!isAgency}}" class>
<view class="display-flex">
<view class="f16" style="width:100px">佣金:</view>
<view class>
<span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span>
<span wx:elif="{{!isAgency}}" bindtap="showTobe">仅代理可见</span>
<span wx:else>
<span class wx:if="{{isServicePriceShow}}">{{fuWuFei || '--'}}</span>
<span class wx:else>***</span>
</span>
</view>
</view>
<view class="fss">
<view class="f16" style="width:100px">佣金详情:</view>
<view class="flex-1" style="min-height:32px" wx:if="{{isServicePriceShow}}">{{jobDetail.record.returnFeeDesp}}</view>
<span class wx:else>***</span>
</view>
</view>
<view class="tr">
<view class="jobMoney ysd-base-f40">
<!-- {{jobDetail.record.combiSalary}} -->
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 0}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/时</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 1}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/天</span>
<!-- <view wx:elif="{{!isLogin}}" class bindtap="goNewEnroll" hover-class="none" hover-stop-propagation="false">仅登录可见</view>
<view wx:else class bindtap="showTobe" hover-class="none" hover-stop-propagation="false">仅代理可见</view>-->
</view>
<view class="bgf mt10 br8 pb20" hover-class="none" hover-stop-propagation="false">
<view class="p20 pb10" style="padding-top:10px" id="tocanvas">
<view class="v-center">
<view class="jobTitle">
<!-- {{jobDetail.store.aliasName}} {{jobDetail.record.jobName}} -->
{{jobDetail.record.jobName}}
<!-- <button open-type="share" class="sharebtn" style="width:unset;padding:0;font-weight:100">
<i class="iconfont icon-zhuanfa f20" style="color: #999;"></i>
</button>-->
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 2}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">补</span>
<view class="f14 c045" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.update}}</view>
</view>
<view class="mb8">
<view class="fss c045">
<view class="f14s oelps" style="max-width:50%">
<!-- 深圳丨龙岗区丨16-35岁 -->
{{citys}}
<!-- {{jobDetail.store.distance}} -->
</view>
{{citys ? '丨' :''}}
<view class="f14s c045">
<!-- 深圳丨龙岗区丨16-35岁 -->
<block>{{jobDetail.record.genderRestrict}}</block>
丨{{jobDetail.record.age}}
<!-- {{jobDetail.record.district}}{{jobDetail.record.age}} -->
</view>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 3}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">返</span>
</view>
<view class="tabBox pb4">
<!-- <view wx:if="{{jobDetail.record.rebate != null}}" class='tagsLi spli'>
返费{{jobDetail.record.rebate}}
</view>-->
<view class="display-flex" hover-class="none" hover-stop-propagation="false">
<!-- <view class="t-icon t-icon-ziying1" wx:if="{{jobDetail.storeProjectSignType == 1}}"></view> -->
<view class="tagsLi" style="color:{{labelColor[index % labelColor.length]}};background-color:{{bgColor[index % bgColor.length]}};" wx:for="{{jobDetail.record.jobRequestLabelNames}}" wx:for-item="item1" wx:key="index">{{item1}}</view>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 4}}">计件</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 5}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">保底</span>
<view class="pr10 pt4 pb4 fsa cusFlexStart">
<view class="br2 fss" style="background: #f1faff;" wx:for="{{item.labelGroup}}" wx:key="itm" wx:for-item="itm">
<view class="f12 pl4 pr4" style="color:#646572" hover-class="none" hover-stop-propagation="false">{{itm || '-'}}</view>
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 6}}">面议</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 7}}">
<span class="f14">¥</span>
<span class="f18">{{jobDetail.record.monthlyPay}}</span>
<span class="f12">/月</span>
<view class="fss">
<view class="jobMoney ysd-base-f40 mr12">
<!-- {{jobDetail.record.combiSalary}} -->
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 0}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/时</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 1}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/天</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 2}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">补</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 3}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">返</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 4}}">计件</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 5}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">保底</span>
</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 6}}">面议</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 7}}">
<span class="f14">¥</span>
<span class="f20">{{jobDetail.record.monthlyPay}}</span>
<span class="f14">/月</span>
</view>
<!-- {{jobDetail.record.hourlyPay || '--'}} -->
</view>
<view class="f14s c045">
<!-- 5200-8400 -->
{{jobDetail.record.monthlyPay || '--'}}
</view>
</view>
<!-- {{jobDetail.record.hourlyPay || '--'}} -->
</view>
<view class="f14s c633 mt10 ysd-base-f40">
<!-- 5200-8400 -->
{{jobDetail.record.monthlyPay || '--'}}
</view>
</view>
</view>
<view class="bb1 tabBox pb4">
<!-- <view wx:if="{{jobDetail.record.rebate != null}}" class='tagsLi spli'>
返费{{jobDetail.record.rebate}}
</view>-->
<view class="display-flex" hover-class="none" hover-stop-propagation="false">
<!-- <view class="t-icon t-icon-ziying1" wx:if="{{jobDetail.storeProjectSignType == 1}}"></view> -->
<view class="tagsLi" style="color:{{labelColor[index % labelColor.length]}};background-color:{{bgColor[index % bgColor.length]}};" wx:for="{{jobDetail.record.jobRequestLabelNames}}" wx:for-item="item1" wx:key="index">{{item1}}</view>
</view>
</view>
<view class="pr10 pt4 pb4 fsa cusFlexStart">
<view class="br2 fss" style="background: #f1faff;" wx:for="{{item.labelGroup}}" wx:key="itm" wx:for-item="itm">
<view class="f12 pl4 pr4" style="color:#646572" hover-class="none" hover-stop-propagation="false">{{itm || '-'}}</view>
<view class="mg020 pb8 pt8 bb1 bt1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}" wx:if="{{jobDetail.record.storeLat}}">
<view>
<i class="iconfont icon-dizhi11 f18 mr4" style="color:#027AFF;"></i>
</view>
<view class="address oelps c3">{{(jobDetail.store.detailPosition ? jobDetail.store.detailPosition :jobDetail.record.storeAddr) || '暂无地址信息'}}</view>
<view>
<i class="iconfont icon-gengduo11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
</view>
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</view>
</view>
<view class="mg020 pb8 bb1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}">
<view>
<i class="iconfont icon-dizhi11 f18 mr4" style="color:#027AFF;"></i>
</view>
<view class="address oelps c3">{{(jobDetail.store.detailPosition ? jobDetail.store.detailPosition :jobDetail.record.storeAddr) || '暂无地址信息'}}</view>
<view>
<i class="iconfont icon-gengduo11 f14 ml18 dib pr c9" style="line-height:1;top:1px;"></i>
</view>
</view>
<view class="p020 fss">
<!-- <view class="storeTitle" data-title="{{jobDetail.record.storeName}}"> {{jobDetail.record.storeName}}</view> -->
<view class="p020 fss">
<!-- <view class="storeTitle" data-title="{{jobDetail.record.storeName}}"> {{jobDetail.record.storeName}}</view> -->
<scroll-view scroll-x="true" class="scroll-header bb1" wx:if="{{jobDetail.images && jobDetail.images.length != 0}}">
<view class="scrollImgBox" style="min-width:60px">
<image data-src="{{jobDetail.record.logo || jobDetail.store.logo}}" data-type="logo" wx:if="{{jobDetail.record.logo|| jobDetail.store.logo}}" src="{{jobDetail.record.logo|| jobDetail.store.logo}}" mode="aspecFill" class="scrollImg" bindtap="showImage"></image>
</view>
<view wx:for="{{jobDetail.images}}" class="scrollImgBox" wx:key="index">
<!-- <view wx:if="{{item.isImg}}" > -->
<scroll-view scroll-x="true" class="scroll-header bb1" wx:if="{{jobDetail.images && jobDetail.images.length != 0}}">
<view class="scrollImgBox" style="min-width:60px">
<image data-src="{{jobDetail.record.logo || jobDetail.store.logo}}" data-type="logo" wx:if="{{jobDetail.record.logo|| jobDetail.store.logo}}" src="{{jobDetail.record.logo|| jobDetail.store.logo}}" mode="aspecFill" class="scrollImg" bindtap="showImage"></image>
</view>
<view wx:for="{{jobDetail.images}}" class="scrollImgBox" wx:key="index">
<!-- <view wx:if="{{item.isImg}}" > -->
<image data-src="{{item.url}}" data-id="{{item.id}}" wx:if="{{item.isImg}}" src="{{item.url}}" mode="aspectFill" class="scrollImg" bindtap="showImage"></image>
<view class="videoContainer" data-id="{{item.id}}" bindtap="showVideo" hover-class="none" hover-stop-propagation="false" wx:if="{{!item.isImg && item.url}}" style="width:100%;height:100%">
<video class="theVideo" id="{{item.id}}" data-id="{{item.id}}" src="{{item.url}}" show-fullscreen-btn="{{false}}" show-play-btn="{{false}}" show-center-play-btn="{{false}}" enable-play-gesture="{{true}}" bindfullscreenchange="fullScreen">
<view wx:if="{{isShareShow}}" bindtap="shareVideo" custom-cache="{{false}}" data-src="{{item.url}}" class="t-icon t-icon-fenxiang" hover-class="none" hover-stop-propagation="false"></view>
</video>
</view>
<view bindtap="shareVideo" custom-cache="{{false}}" data-src="{{item.url}}" class="t-icon t-icon-fenxiang" hover-class="none" hover-stop-propagation="false"></view>
<!-- </view> -->
<!-- <view wx:if="{{!item.isImg}}">
<image data-src="{{item.url}}" data-id="{{item.id}}" wx:if="{{item.isImg}}" src="{{item.url}}" mode="aspectFill" class="scrollImg" bindtap="showImage"></image>
<view class="videoContainer" data-id="{{item.id}}" bindtap="showVideo" hover-class="none" hover-stop-propagation="false" wx:if="{{!item.isImg && item.url}}" style="width:100%;height:100%">
<video class="theVideo" id="{{item.id}}" data-id="{{item.id}}" src="{{item.url}}" show-fullscreen-btn="{{false}}" show-play-btn="{{false}}" show-center-play-btn="{{false}}" enable-play-gesture="{{true}}" bindfullscreenchange="fullScreen">
<view wx:if="{{isShareShow}}" bindtap="shareVideo" custom-cache="{{false}}" data-src="{{item.url}}" class="t-icon t-icon-fenxiang" hover-class="none" hover-stop-propagation="false"></view>
</video>
</view>
<view bindtap="shareVideo" custom-cache="{{false}}" data-src="{{item.url}}" class="t-icon t-icon-fenxiang" hover-class="none" hover-stop-propagation="false"></view>
<!-- </view> -->
<!-- <view wx:if="{{!item.isImg}}">
<view class="pr" class="scrollImgBox">
<video wx:key='{{index}}' id='a{{item.id}}' bindfullscreenchange="screenChange" src="{{item.url}}" controls="true" bindended="closeVideo" controls class="scrollImg"></video>
<view class="scrollImg" id="{{item.id}}" style="background-color: #787878;position: absolute;left: 0;opacity: 0;" catchtap='play'></view>
</view>
</view>-->
</view>
</scroll-view>
</view>
<view class="p020">
<view class="topMenu">
<view class="onMune {{currIndex == '1' ? 'active ysd-base-color' : ''}}" data-id="1" bindtap="changeMenu">
<view class="pr dib">
基本信息
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>-->
</view>
</scroll-view>
</view>
<!-- <view class="onMune {{currIndex == '2' ? 'active ysd-base-color' : ''}}" data-id="2" bindtap="changeMenu">
<view class="p020">
<view class="topMenu">
<view class="onMune {{currIndex == '1' ? 'active ysd-base-color' : ''}}" data-id="1" bindtap="changeMenu">
<view class="pr dib">
基本信息
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
<!-- <view class="onMune {{currIndex == '2' ? 'active ysd-base-color' : ''}}" data-id="2" bindtap="changeMenu">
<view class="pr dib">
对接信息
</view>
</view>-->
<!-- <view class="onMune {{currIndex == '3' ? 'active ysd-base-color' : ''}}" data-id="3" bindtap="changeMenu">
</view>-->
<!-- <view class="onMune {{currIndex == '3' ? 'active ysd-base-color' : ''}}" data-id="3" bindtap="changeMenu">
<view class="pr dib">
报名须知
</view>
</view>-->
<view class="onMune {{currIndex == '4' ? 'active ysd-base-color' : ''}}" data-id="4" bindtap="changeMenu">
</view>-->
<!-- <view class="onMune {{currIndex == '4' ? 'active ysd-base-color' : ''}}" data-id="4" bindtap="changeMenu">
<view class="pr dib">
财务结算
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
<!-- <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu" wx:if="{{isAgency}}"> -->
<view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu">
<view class="pr dib">
职位描述
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
</view>
<view class="f14">
<block wx:if="{{currIndex == '1'}}">
<view wx:if="{{jobDetail.record.notes}}">
<view class="detailH3">温馨提示</view>
<view class="pri ysd-base-f40 border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;text-align: justify;">{{jobDetail.record.notes}}</view>
</view>
<view class="detailH3">薪资待遇</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">薪资明细</view>
<view class="textb1">{{jobDetail.record.salaryDetail}}</view>
</view>
</view>
<view class="detailH3">招聘要求</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">性别年龄</view>
<view class="textb1">{{showSexAgeText}}</view>
</view>
</view>
<view class="detailH3">岗位说明</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">班次工时</view>
<view class="textb1">{{jobDetail.record.workClasses}}</view>
</view>
<view class="display-flex">
<view class="rb1">其他说明</view>
<view class="textb1">{{jobDetail.record.otherDesp}}</view>
</view>-->
<!-- <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu" wx:if="{{isAgency}}"> -->
<view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu">
<view class="pr dib">
职位描述
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
</view>
<view class="detailH3">对接信息</view>
<view class="outSp">
<view class="display-flex">
<view class hover-class="none" hover-stop-propagation="false" wx:if="{{fromBocai}}">
<view class="f14">
<block wx:if="{{currIndex == '1'}}">
<view wx:if="{{jobDetail.record.notes}}">
<view class="detailH3">温馨提示</view>
<view class="pri ysd-base-f40 border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;text-align: justify;">{{jobDetail.record.notes}}</view>
</view>
<view class="detailH3">薪资待遇</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1 sbb1">面试地点</view>
<view class="textb1 sbb1">{{jobDetail.record.interviewAddr}}</view>
<view class="rb1">薪资明细</view>
<view class="textb1">{{jobDetail.record.salaryDetail}}</view>
</view>
</view>
<view class="textb1" style="padding:0;" wx:else>
<view class="detailH3">招聘要求</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1 sbb1">面试地点</view>
<view class="textb1 sbb1">{{jobDetail.record.interviewAddr}}</view>
<view class="rb1">性别年龄</view>
<view class="textb1">{{showSexAgeText}}</view>
</view>
</view>
</view>
</view>
<view wx:if="{{jobDetail.record.OtherInfo}}">
<view class="detailH3">其它信息</view>
<view class="pri border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;color:#333">{{jobDetail.record.OtherInfo}}</view>
</view>
</block>
<block wx:if="{{currIndex == '2'}}">
<view class="detailH3">面试</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">面试时间</view>
<view class="textb1">{{jobDetail.record.interviewDuration}}</view>
</view>
<!-- <view class="display-flex">
<view class="detailH3">岗位说明</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">班次工时</view>
<view class="textb1">{{jobDetail.record.workClasses}}</view>
</view>
<view class="display-flex">
<view class="rb1">其他说明</view>
<view class="textb1">{{jobDetail.record.otherDesp}}</view>
</view>
</view>
<view class="detailH3">对接信息</view>
<view class="outSp">
<view class="display-flex">
<view class hover-class="none" hover-stop-propagation="false" wx:if="{{fromBocai}}">
<view class="display-flex">
<view class="rb1 sbb1">面试地点</view>
<view class="textb1 sbb1">{{jobDetail.record.interviewAddr}}</view>
</view>
</view>
<view class="textb1" style="padding:0;" wx:else>
<view class="display-flex">
<view class="rb1 sbb1">面试地点</view>
<view class="textb1 sbb1">{{jobDetail.record.interviewAddr}}</view>
</view>
</view>
</view>
</view>
<view wx:if="{{jobDetail.record.OtherInfo}}">
<view class="detailH3">其它信息</view>
<view class="pri border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;color:#333">{{jobDetail.record.OtherInfo}}</view>
</view>
</block>
<block wx:if="{{currIndex == '2'}}">
<view class="detailH3">面试</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">面试时间</view>
<view class="textb1">{{jobDetail.record.interviewDuration}}</view>
</view>
<!-- <view class="display-flex">
<view class="rb1">面试地点</view>
<view class="textb1">{{jobDetail.record.interviewAddr}}</view>
</view>-->
<!-- <view class="display-flex">
</view>-->
<!-- <view class="display-flex">
<view class="rb1">驻场信息</view>
<view class="textb1">{{jobDetail.record.onSiteInfo}}</view>
</view>-->
<view class="display-flex">
<view class="rb1">出行方式</view>
<view class="textb1">{{jobDetail.record.tripMode}}</view>
</view>
<!-- <view class="display-flex">
</view>-->
<view class="display-flex">
<view class="rb1">出行方式</view>
<view class="textb1">{{jobDetail.record.tripMode}}</view>
</view>
<!-- <view class="display-flex">
<view class="rb1">驻场信息1</view>
<view class="textb1">{{jobDetail.record.onSiteTransfers}}</view>
</view>-->
<view class="display-flex">
<view class="rb1">面试说明</view>
<view class="textb1">{{jobDetail.record.interviewDesp}}</view>
</view>
</view>
<view class="detailH3">入离职</view>
<view class="outSp">
<!-- <view class="display-flex">
</view>-->
<view class="display-flex">
<view class="rb1">面试说明</view>
<view class="textb1">{{jobDetail.record.interviewDesp}}</view>
</view>
</view>
<view class="detailH3">入离职</view>
<view class="outSp">
<!-- <view class="display-flex">
<view class="rb1">入职时间</view>
<view class="textb1">{{jobDetail.record.entryDuration}}</view>
</view>
@ -273,21 +297,21 @@
<view class="display-flex">
<view class="rb1">入职合同</view>
<view class="textb1">{{jobDetail.record.entryContracts}}</view>
</view>-->
<view class="display-flex">
<view class="rb1">入职说明</view>
<view class="textb1">{{jobDetail.record.entryDesp}}</view>
</view>
<view class="display-flex">
<view class="rb1">入职说明</view>
<view class="textb1">{{jobDetail.record.leaveRequire}}</view>
</view>
<view class="display-flex">
<view class="rb1">返厂</view>
<view class="textb1">{{jobDetail.record.leaveDesp}}</view>
</view>
</view>
<!-- <view class="detailH3">离职</view>
</view>-->
<view class="display-flex">
<view class="rb1">入职说明</view>
<view class="textb1">{{jobDetail.record.entryDesp}}</view>
</view>
<view class="display-flex">
<view class="rb1">入职说明</view>
<view class="textb1">{{jobDetail.record.leaveRequire}}</view>
</view>
<view class="display-flex">
<view class="rb1">返厂</view>
<view class="textb1">{{jobDetail.record.leaveDesp}}</view>
</view>
</view>
<!-- <view class="detailH3">离职</view>
<view class="outSp">
<view class="display-flex">
<view class="rb1">离职要求</view>
@ -297,73 +321,73 @@
<view class="rb1">补充说明</view>
<view class="textb1">{{jobDetail.record.leaveDesp}}</view>
</view>
</view>-->
</block>
<block wx:if="{{currIndex == '3'}}">
<view class="detailH3">报名须知</view>
<view class="pri border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;color:#333">{{jobDetail.record.agencyStatement}}</view>
<!-- <view class="detailH3">温馨提示</view>
</view>-->
</block>
<block wx:if="{{currIndex == '3'}}">
<view class="detailH3">报名须知</view>
<view class="pri border1" style="line-height:24px;padding:3px 8px;border-radius: 4px;color:#333">{{jobDetail.record.agencyStatement}}</view>
<!-- <view class="detailH3">温馨提示</view>
<view class="pri" style="border:1px solid #eee;line-height:24px;padding:3px 8px;border-radius: 4px;color:#1890ff">{{jobDetail.record.sweetTips}}
</view>-->
</block>
<block wx:if="{{currIndex == '4'}}">
<view class="detailH3">财务结算</view>
<view wx:if="{{isAgency}}" class="outSp">
<!-- <view class="display-flex" wx:if='{{managerRoleClassify}}'>
</view>-->
</block>
<block wx:if="{{currIndex == '4'}}">
<view class="detailH3">财务结算</view>
<view wx:if="{{isAgency}}" class="outSp">
<!-- <view class="display-flex" wx:if='{{managerRoleClassify}}'>
<view class="rb1">伯才利润</view>
<view class="textb1">{{jobDetail.record.boCaiProfit}}</view>
</view>-->
<view class="display-flex">
<view class="rb1">服务费</view>
<view class="textb1">
<span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span>
<span wx:elif="{{!isAgency}}" bindtap="showTobe">仅代理可见</span>
<span wx:else>
<span class wx:if="{{isServicePriceShow}}">{{fuWuFei || '--'}}</span>
<span class wx:else>***</span>
</span>
</view>
</view>
<!-- <view class="display-flex">
</view>-->
<view class="display-flex">
<view class="rb1">服务费</view>
<view class="textb1">
<span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span>
<span wx:elif="{{!isAgency}}" bindtap="showTobe">仅代理可见</span>
<span wx:else>
<span class wx:if="{{isServicePriceShow}}">{{fuWuFei || '--'}}</span>
<span class wx:else>***</span>
</span>
</view>
</view>
<!-- <view class="display-flex">
<view class="rb1">总利润</view>
<view class="textb1">{{jobDetail.record.totalProfit}}</view>
</view>-->
<!-- <view class="display-flex">
</view>-->
<!-- <view class="display-flex">
<view class="rb1">伯才利润</view>
<view class="textb1">{{jobDetail.record.boCaiProfit}}</view>
</view>-->
<!-- <view class="display-flex">
</view>-->
<!-- <view class="display-flex">
<view class="rb1">服务费</view>
<view class="textb1">{{jobDetail.record.returnFee}}</view>
</view>-->
<!-- <view class="display-flex">
</view>-->
<!-- <view class="display-flex">
<view class="rb1">代理利润</view>
<view class="textb1">{{jobDetail.record.agencyProfit}}</view>
</view>-->
<view class="display-flex">
<view class="rb1">服务费详情</view>
<view class="textb1">{{jobDetail.record.returnFeeDesp}}</view>
</view>
</view>
<view wx:elif="{{!isLogin}}" class bindtap="goNewEnroll" hover-class="none" hover-stop-propagation="false">仅登录可见</view>
<view wx:else class bindtap="showTobe" hover-class="none" hover-stop-propagation="false">仅代理可见</view>
</block>
<block wx:if="{{currIndex == '5'}}">
<view class="pri" style="line-height:24px;padding:5px 8px;border-radius: 4px;color:#333">
<view data-content="{{jobDetail.record.jobDesp1}}" catchtap="setCopy">
<!-- <icon class="iconfont icon-fuzhi mr4" style="font-size:16px;float: right;"></icon> -->
<span class="desp-copy">复制</span>
</view>
<!-- <rich-text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false" nodes="{{jobDetail.record.jobDesp1}}"></rich-text> -->
<text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.jobDesp1}}</text>
<view class="contactInfo" hover-class="none" data-info="{{jobDetail.record.jobDesp1}}" hover-stop-propagation="false"></view>
</view>
<!-- <view class="detailH3">温馨提示</view>
</view>-->
<view class="display-flex">
<view class="rb1">服务费详情</view>
<view class="textb1">{{jobDetail.record.returnFeeDesp}}</view>
</view>
</view>
<view wx:elif="{{!isLogin}}" class bindtap="goNewEnroll" hover-class="none" hover-stop-propagation="false">仅登录可见</view>
<view wx:else class bindtap="showTobe" hover-class="none" hover-stop-propagation="false">仅代理可见</view>
</block>
<block wx:if="{{currIndex == '5'}}">
<view class="pri" style="line-height:24px;padding:5px 8px;border-radius: 4px;color:#333">
<view data-content="{{jobDetail.record.jobDesp1}}" catchtap="setCopy">
<!-- <icon class="iconfont icon-fuzhi mr4" style="font-size:16px;float: right;"></icon> -->
<span class="desp-copy">复制</span>
</view>
<!-- <rich-text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false" nodes="{{jobDetail.record.jobDesp1}}"></rich-text> -->
<text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.jobDesp1}}</text>
<view class="contactInfo" hover-class="none" data-info="{{jobDetail.record.jobDesp1}}" hover-stop-propagation="false"></view>
</view>
<!-- <view class="detailH3">温馨提示</view>
<view class="pri" style="border:1px solid #eee;line-height:24px;padding:3px 8px;border-radius: 4px;color:#1890ff">{{jobDetail.record.sweetTips}}
</view>-->
</block>
</view>
<!-- <view wx:if="{{jobDetail.record.baseInfo != null && jobDetail.record.baseInfo != ''}}" class='display-flex pb20 mt20' style="border-bottom:1rpx solid #e2e2e2;">
</view>-->
</block>
</view>
<!-- <view wx:if="{{jobDetail.record.baseInfo != null && jobDetail.record.baseInfo != ''}}" class='display-flex pb20 mt20' style="border-bottom:1rpx solid #e2e2e2;">
<view class='flex-1 f14 c085'>
<view>利润政策</view>
<view style="white-space: pre-line;">{{bclr}}</view>
@ -371,7 +395,9 @@
<view style="margin-top: 20px;">对接信息</view>
<view style="white-space: pre-line;"> {{djxx}}</view>
</view>
</view>-->
</view>-->
</view>
</view>
</view>
</view>
<view class="bottomBtn" style="padding-bottom:{{pbtm}}px">

@ -2,7 +2,10 @@
page,
.pb180 {
padding-bottom: 180px;
background-color: #fff;
background-color: #f5f5f5;
}
page{
padding: 16px;
}
.p14 {
padding: 14px;
@ -13,6 +16,13 @@ page,
.pb10 {
padding-bottom: 10px;
}
.jobTitle {
font-size: 20px;
font-weight: 601;
color: rgba(0, 0, 0, 0.85);
line-height: 30px;
flex: 1;
}
.desp-copy {
color: #1890ff;
font-size: 12px;

@ -1,3 +1,4 @@
import dateUtil from './dateUtil.js'
/**
* 如果是null '' 'null' 'undefined'
* @param item
@ -1168,7 +1169,7 @@ export function setJobInfoPosition (pos) {
}
});
citys = citys.join(",").replace(/,/g, " | ");
return citys || "-";
return citys ;
}
/*
处理详情地址
@ -1255,7 +1256,7 @@ export const cutShareImg = (imgUrl) => {
*
*
*/
export function disposeJobListData (recordList) {
var that = this;
console.log(recordList);
@ -1278,6 +1279,11 @@ export function disposeJobListData (recordList) {
// console.log(item.salaryClassify, '=============', item.salaryClassifyValue);
item["salaryClassifyValueHaibao"] = getSalaryClassifyValue1(item.salaryClassify, item.salaryClassifyValue);
item["salaryClassifyValue"] = getSalaryClassifyValue(item.salaryClassify, item.salaryClassifyValue);
// x天前更新
item["update"] = dateUtil.timeShowXXX2(item.updateTime);
console.log('item["update"]',item["update"]);
item.genderRestrict = getGenderByMinAge(item);
// //时薪
// var hourlyPayStr = '';
// var hasHourlyPay = false;
@ -1319,9 +1325,9 @@ export function disposeJobListData (recordList) {
// }
item["monthlyPay"] = monthlyPayStr;
//地址深圳丨龙岗区丨
let citys = setJobListInfoPosition(item.district);
let citys = setJobInfoPosition(item.storeDistrict);
// console.log(citys);
console.log('citys',citys);
var districtStr = "";
if (isNotEmptyCheck(item.district)) {
var districtArr = item.district.split(",");

@ -786,24 +786,44 @@ function timeShow(val) {
return hour;
}
function timeShowXXX2(val) {
const now = Date.now();
const diff = now - val;
const seconds = Math.floor(diff / 1000);
const minutes = Math.floor(seconds / 60);
const hours = Math.floor(minutes / 60);
const days = Math.floor(hours / 24);
if (days < 2) {
if (hours > 0) {
return `${hours}小时前`;
} else if (minutes > 0) {
return `${minutes}分钟前`;
} else {
return `${seconds}秒前`;
}
} else {
return `${days}天前`;
}
}
function timeShowXXX(val) {
if (isEmptyCheck(val)) {
return "";
}
let date = "";
let differenceTime = new Date().getTime() - new Date(val).getTime();
var D = Math.floor(differenceTime / (24 * 60 * 60 * 1000));
var level1 = differenceTime % (24 * 3600 * 1000);
var H = Math.floor(level1 / (3600 * 1000));
var D = Math.floor(differenceTime / (48 * 60 * 60 * 1000));
var level1 = differenceTime % (48 * 3600 * 1000);
var H = Math.floor(level1 / ( 48 * 3600 * 1000));
var level2 = level1 % (3600 * 1000);
var M = Math.floor(level2 / (60 * 1000));
var level3 = level2 % (60 * 1000);
var S = Math.floor(level3 / 1000);
date = null;
if (D > 0 && D <= 100) {
if (D > 1 && D <= 100) {
date = D + "天前";
} else if (D > 0) {
} else if (D > 1) {
let date1 = new Date(val);
var y = date1.getFullYear();
var m = date1.getMonth() + 1;
@ -962,4 +982,5 @@ module.exports = {
getUserApplyOrderTypeByType,
splitRemark,
timeShow,
timeShowXXX2
};

Loading…
Cancel
Save