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

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

@ -283,29 +283,29 @@ page {
border: 1px solid #eee; border: 1px solid #eee;
} }
.bb1 { .bb1 {
border-bottom: 1rpx solid #eee; border-bottom: 1px solid #eee;
} }
.br1 { .br1 {
border-right: 1rpx solid #eee; border-right: 1px solid #eee;
} }
.bt1 { .bt1 {
border-top: 1rpx solid #eee; border-top: 1px solid #eee;
} }
.bl1 { .bl1 {
border-left: 1rpx solid #eee; border-left: 1px solid #eee;
} }
.bbd1 { .bbd1 {
border-bottom: 1rpx dotted #eee; border-bottom: 1px dotted #eee;
} }
.brd1 { .brd1 {
border-right: 1rpx dotted #eee; border-right: 1px dotted #eee;
} }
.btd1 { .btd1 {
border-top: 1rpx dotted #eee; border-top: 1px dotted #eee;
} }
.bld1 { .bld1 {
border-left: 1rpx dotted #eee; border-left: 1px dotted #eee;
} }
.f4 { .f4 {
font-size: 4px; font-size: 4px;
@ -501,7 +501,7 @@ page {
} }
.lineT { .lineT {
height: 1rpx; height: 1px;
width: calc(100vw - 40px); width: calc(100vw - 40px);
margin: 0 auto; margin: 0 auto;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
@ -701,7 +701,7 @@ button[disabled][type="primary"] {
height: 50px; height: 50px;
margin-right: 6px; margin-right: 6px;
border-radius: 4px; border-radius: 4px;
/* border: 1rpx solid #ddd; */ /* border: 1px solid #ddd; */
} }
.row-extra.c025 { .row-extra.c025 {
@ -860,8 +860,8 @@ button {
margin: 0 !important; margin: 0 !important;
} }
.wx-border-tb { .wx-border-tb {
border-top: 1px solid #f3f3f3; border-top: 1px solid #eee;
border-bottom: 1px solid #f3f3f3; border-bottom: 1px solid #eee;
} }
.userImg { .userImg {
@ -911,13 +911,7 @@ button::after {
justify-content: center; 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"] { [data-title*="null"] {
display: none; display: none;
@ -1026,7 +1020,7 @@ button::after {
padding-bottom: 16px; padding-bottom: 16px;
padding-top: 16px; padding-top: 16px;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 1px solid #f3f3f3; border-bottom: 1px solid #eee;
} }
.staticTitle { .staticTitle {
@ -1082,13 +1076,13 @@ button::after {
color: #787878; color: #787878;
line-height: 22px; line-height: 22px;
margin-bottom: 20px; margin-bottom: 20px;
/* border-bottom: 1rpx solid #e2e2e2; */ /* border-bottom: 1px solid #e2e2e2; */
} }
.weui-dialog__bd view { .weui-dialog__bd view {
/* padding-bottom: 20px; */ /* padding-bottom: 20px; */
/* border-bottom: 1rpx solid #e2e2e2; */ /* border-bottom: 1px solid #e2e2e2; */
} }
.weui-dialog__hd { .weui-dialog__hd {
@ -1173,7 +1167,7 @@ button::after {
white-space: nowrap; white-space: nowrap;
} }
.servicePrice { .servicePrice {
border: 1rpx solid var(--color-ysd); border: 1px solid var(--color-ysd);
background-color: #ffeee7; background-color: #ffeee7;
justify-content: space-between; justify-content: space-between;
border-right-color: transparent; border-right-color: transparent;
@ -1245,7 +1239,7 @@ button::after {
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 60px; margin-bottom: 60px;
padding-top: 32rpx; padding-top: 32rpx;
border-top: 1px solid #f3f3f3; border-top: 1px solid #eee;
} }
.ui-step.ui-list > view { .ui-step.ui-list > view {
@ -1411,7 +1405,7 @@ button::after {
padding-bottom: 10px; padding-bottom: 10px;
margin-bottom: 60px; margin-bottom: 60px;
padding-top: 32rpx; padding-top: 32rpx;
border-top: 1px solid #f3f3f3; border-top: 1px solid #eee;
} }
.ui-step.ui-list > view { .ui-step.ui-list > view {
@ -1481,7 +1475,7 @@ button.newBtn.mbtn-hover {
.topMenu { .topMenu {
display: flex; display: flex;
padding: 12px 0; padding: 12px 0;
border-bottom: 1px solid #f3f3f3; border-bottom: 1px solid #eee;
background-color: #fff; background-color: #fff;
} }
@ -1522,14 +1516,14 @@ button.newBtn.mbtn-hover {
line-height: 18px; line-height: 18px;
} }
.loadMore { .loadMore {
border-top: 1rpx solid transparent; border-top: 1px solid transparent;
border-bottom: 1rpx solid transparent; border-bottom: 1px solid transparent;
background-color: #fff; background-color: #fff;
} }
.loadMore view { .loadMore view {
width: 120px; width: 120px;
height: 28px; height: 28px;
border: 1px solid #f3f3f3; border: 1px solid #eee;
border-radius: 20px; border-radius: 20px;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
@ -1698,7 +1692,7 @@ page {
} }
.weui-loadmore_line { .weui-loadmore_line {
border-top: 1px solid #f3f3f3; border-top: 1px solid #eee;
} }
.weui-grid4, .weui-grid4,
.weui-grid5 { .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> --> <!-- <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="display-flex">
<view class="flex-1 vsb"> <view class="flex-1 vsb">
<view class="display-flex"> <view class="fsa">
<view class="storeName">{{item.jobName || item.aliasName}}</view> <view class="storeName">{{item.jobName || item.aliasName}}</view>
<!-- <view class="hourPay">{{item.salaryClassifyValue}}</view> --> <view class="f14s c045">{{item.update}}</view>
</view> </view>
<view class="v-center mt8 mb10"> <view class="v-center mt8 mb10">
<view class="f14s c045 flex-1"> <view class="f14s c045 flex-1">
<view class="overflowOmit mb8 fss"> <view class="overflowOmit mb8 fss">
<view class='oelps mr4' style="max-width:120px"> <view class='oelps' style="max-width:120px">
{{item.storeAddr ?item.storeAddr : ''}} {{item.district }}
</view> </view>
{{item.district ?'丨' :''}}
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}"> <block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">
{{item.distanceKm}} {{item.distanceKm}}
</block> </block>
<block wx:else>{{' | ' + item.age}}</block> <block wx:else>{{item.genderRestrict + '丨' + item.age}}</block>
</view> </view>
<scroll-view scroll-x="{{true}}" catchscroll="stoptap" bindtap="stoptap" class="tttg {{item.isTagShow==true ? 'isTagShow':''}}"> <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> --> <!-- <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.getAllCityLevel2();
this.getAllProvinceLevel1(); this.getAllProvinceLevel1();
// that.getProvinceLocation() // that.getProvinceLocation()
// that.getLocation() that.getLocation()
}, },
leftMove (e) { leftMove (e) {
this.setData({ this.setData({

@ -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)}`,
// });
// }
},
});
}
}); });

@ -5,7 +5,7 @@
"navigationBarBackgroundColor":"#fff", "navigationBarBackgroundColor":"#fff",
"navigationBarTextStyle" :"black", "navigationBarTextStyle" :"black",
"navigationBarTitleText": "", "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> --> <!-- <canvas type="2d" style="position: absolute;left:-2000px; width: 425px; height: 350px; background: #fff;" id="canvasId"></canvas> -->
<view> <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="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"> <view class="price ysd-base-f40">
服务费: 服务费:
<span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span> <span wx:if="{{!isLogin}}" bindtap="goNewEnroll">仅登录可见</span>
@ -20,8 +16,41 @@
<view class="right"> <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> <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="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 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> </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 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="p20 pb10" style="padding-top:10px" id="tocanvas">
<view class="v-center"> <view class="v-center">
<view class="jobTitle"> <view class="jobTitle">
@ -31,19 +60,16 @@
<i class="iconfont icon-zhuanfa f20" style="color: #999;"></i> <i class="iconfont icon-zhuanfa f20" style="color: #999;"></i>
</button>--> </button>-->
</view> </view>
<view class="f14 c045" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.update}}</view>
</view> </view>
<view class="display-flex mt12 mb8"> <view class="mb8">
<view class="display-flex flex-1"> <view class="fss c045">
<!-- <view> <view class="f14s oelps" style="max-width:50%">
<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岁 --> <!-- 深圳丨龙岗区丨16-35岁 -->
{{citys}} {{citys}}
<!-- {{jobDetail.store.distance}} --> <!-- {{jobDetail.store.distance}} -->
</view> </view>
{{citys ? '丨' :''}}
<view class="f14s c045"> <view class="f14s c045">
<!-- 深圳丨龙岗区丨16-35岁 --> <!-- 深圳丨龙岗区丨16-35岁 -->
<block>{{jobDetail.record.genderRestrict}}</block> <block>{{jobDetail.record.genderRestrict}}</block>
@ -52,66 +78,65 @@
</view> </view>
</view> </view>
</view> </view>
<view class="tr"> <view class="tabBox pb4">
<view class="jobMoney ysd-base-f40"> <!-- <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="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="fss">
<view class="jobMoney ysd-base-f40 mr12">
<!-- {{jobDetail.record.combiSalary}} --> <!-- {{jobDetail.record.combiSalary}} -->
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 0}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 0}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span> <span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/时</span> <span class="f14">/时</span>
</view> </view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 1}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 1}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span> <span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f14">/天</span> <span class="f14">/天</span>
</view> </view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 2}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 2}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span> <span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">补</span> <span class="f14">补</span>
</view> </view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 3}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 3}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span> <span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">返</span> <span class="f14">返</span>
</view> </view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 4}}">计件</view> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 4}}">计件</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 5}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 5}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.hourlyPay}}</span> <span class="f20">{{jobDetail.record.hourlyPay}}</span>
<span class="f12">保底</span> <span class="f14">保底</span>
</view> </view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 6}}">面议</view> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 6}}">面议</view>
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 7}}"> <view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 7}}">
<span class="f14">¥</span> <span class="f14">¥</span>
<span class="f18">{{jobDetail.record.monthlyPay}}</span> <span class="f20">{{jobDetail.record.monthlyPay}}</span>
<span class="f12">/月</span> <span class="f14">/月</span>
</view> </view>
<!-- {{jobDetail.record.hourlyPay || '--'}} --> <!-- {{jobDetail.record.hourlyPay || '--'}} -->
</view> </view>
<view class="f14s c633 mt10 ysd-base-f40"> <view class="f14s c045">
<!-- 5200-8400 --> <!-- 5200-8400 -->
{{jobDetail.record.monthlyPay || '--'}} {{jobDetail.record.monthlyPay || '--'}}
</view> </view>
</view> </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>
<view class="f12 pl4 pr4" style="background: #f1faff;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</view> </view>
</view> <view class="mg020 pb8 pt8 bb1 bt1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}" wx:if="{{jobDetail.record.storeLat}}">
<view class="mg020 pb8 bb1 v-center" bindtap="toMapChoice" data-address="{{jobDetail}}">
<view> <view>
<i class="iconfont icon-dizhi11 f18 mr4" style="color:#027AFF;"></i> <i class="iconfont icon-dizhi11 f18 mr4" style="color:#027AFF;"></i>
</view> </view>
@ -165,12 +190,11 @@
报名须知 报名须知
</view> </view>
</view>--> </view>-->
<view class="onMune {{currIndex == '4' ? 'active ysd-base-color' : ''}}" data-id="4" bindtap="changeMenu"> <!-- <view class="onMune {{currIndex == '4' ? 'active ysd-base-color' : ''}}" data-id="4" bindtap="changeMenu">
<view class="pr dib"> <view class="pr dib">
财务结算 财务结算
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</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" wx:if="{{isAgency}}"> -->
<view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu"> <view class="onMune {{currIndex == '5' ? 'active ysd-base-color' : ''}}" data-id="5" bindtap="changeMenu">
<view class="pr dib"> <view class="pr dib">
@ -373,6 +397,8 @@
</view> </view>
</view>--> </view>-->
</view> </view>
</view>
</view>
</view> </view>
<view class="bottomBtn" style="padding-bottom:{{pbtm}}px"> <view class="bottomBtn" style="padding-bottom:{{pbtm}}px">
<view class="norecruit" wx:if="{{isMaskShow}}">该职位暂时停招</view> <view class="norecruit" wx:if="{{isMaskShow}}">该职位暂时停招</view>

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

@ -1,3 +1,4 @@
import dateUtil from './dateUtil.js'
/** /**
* 如果是null '' 'null' 'undefined' * 如果是null '' 'null' 'undefined'
* @param item * @param item
@ -1168,7 +1169,7 @@ export function setJobInfoPosition (pos) {
} }
}); });
citys = citys.join(",").replace(/,/g, " | "); citys = citys.join(",").replace(/,/g, " | ");
return citys || "-"; return citys ;
} }
/* /*
处理详情地址 处理详情地址
@ -1278,6 +1279,11 @@ export function disposeJobListData (recordList) {
// console.log(item.salaryClassify, '=============', item.salaryClassifyValue); // console.log(item.salaryClassify, '=============', item.salaryClassifyValue);
item["salaryClassifyValueHaibao"] = getSalaryClassifyValue1(item.salaryClassify, item.salaryClassifyValue); item["salaryClassifyValueHaibao"] = getSalaryClassifyValue1(item.salaryClassify, item.salaryClassifyValue);
item["salaryClassifyValue"] = getSalaryClassifyValue(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 hourlyPayStr = '';
// var hasHourlyPay = false; // var hasHourlyPay = false;
@ -1319,9 +1325,9 @@ export function disposeJobListData (recordList) {
// } // }
item["monthlyPay"] = monthlyPayStr; item["monthlyPay"] = monthlyPayStr;
//地址深圳丨龙岗区丨 //地址深圳丨龙岗区丨
let citys = setJobListInfoPosition(item.district); let citys = setJobInfoPosition(item.storeDistrict);
// console.log(citys); console.log('citys',citys);
var districtStr = ""; var districtStr = "";
if (isNotEmptyCheck(item.district)) { if (isNotEmptyCheck(item.district)) {
var districtArr = item.district.split(","); var districtArr = item.district.split(",");

@ -786,24 +786,44 @@ function timeShow(val) {
return hour; 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) { function timeShowXXX(val) {
if (isEmptyCheck(val)) { if (isEmptyCheck(val)) {
return ""; return "";
} }
let date = ""; let date = "";
let differenceTime = new Date().getTime() - new Date(val).getTime(); let differenceTime = new Date().getTime() - new Date(val).getTime();
var D = Math.floor(differenceTime / (24 * 60 * 60 * 1000)); var D = Math.floor(differenceTime / (48 * 60 * 60 * 1000));
var level1 = differenceTime % (24 * 3600 * 1000); var level1 = differenceTime % (48 * 3600 * 1000);
var H = Math.floor(level1 / (3600 * 1000)); var H = Math.floor(level1 / ( 48 * 3600 * 1000));
var level2 = level1 % (3600 * 1000); var level2 = level1 % (3600 * 1000);
var M = Math.floor(level2 / (60 * 1000)); var M = Math.floor(level2 / (60 * 1000));
var level3 = level2 % (60 * 1000); var level3 = level2 % (60 * 1000);
var S = Math.floor(level3 / 1000); var S = Math.floor(level3 / 1000);
date = null; date = null;
if (D > 0 && D <= 100) { if (D > 1 && D <= 100) {
date = D + "天前"; date = D + "天前";
} else if (D > 0) { } else if (D > 1) {
let date1 = new Date(val); let date1 = new Date(val);
var y = date1.getFullYear(); var y = date1.getFullYear();
var m = date1.getMonth() + 1; var m = date1.getMonth() + 1;
@ -962,4 +982,5 @@ module.exports = {
getUserApplyOrderTypeByType, getUserApplyOrderTypeByType,
splitRemark, splitRemark,
timeShow, timeShow,
timeShowXXX2
}; };

Loading…
Cancel
Save