cyl/dev
wangxia 1 year ago
parent dc319d9875
commit 3c8513c992

@ -586,5 +586,26 @@ App({
};
console.log('分享数据:', params)
return params;
},
copyFun (data, callBack) {
wx.setClipboardData({
data,
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data); // data
if (callBack) {
callBack();
} else {
wx.showToast({
title: "内容已复制",
icon: "none",
duration: 1500,
});
}
},
});
},
});
}
});

@ -7,36 +7,31 @@
<view class="display-flex">
<view class="flex-1 vsb">
<view class="fsa">
<view class="storeName">{{item.jobName || item.aliasName}}</view>
<view class="fss">
<view class="markTag {{item.picked ? 'zhenxuan' : 'sanfang'}}">{{item.picked ? '甄选' : '三方'}}</view>
<view class="storeName fss">{{item.jobName || item.aliasName}}</view>
</view>
<view class="f14s c045">{{item.update}}</view>
</view>
<view class="v-center mt8 mb6">
<view class="f14s c045 flex-1">
<view class="overflowOmit mb8 fss">
<view class='oelps' style="max-width:120px">
{{item.district }}
</view>
<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:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</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> -->
<view class="pr10 pt4 fsa cusFlexStart" style="max-width:80%;flex-wrap:wrap;height:22px;overflow:hidden">
<view class="pr10 pt4 fsa cusFlexStart" style="max-width:80%;flex-wrap:wrap;height:22px;overflow:hidden">
<view class="br2 fss mb4" style="background: #f1faff;height:20px" wx:for="{{item.labelGroup}}" wx:key="itm" wx:for-item="itm">
<view class="f12 pl4 pr4" style="color:#646572;padding:4px;" hover-class="none" hover-stop-propagation="false">
{{itm || '-'}}
</view>
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;padding:4px;" wx:if="{{item.labelGroup.length <= 0}}">
暂无特色
<view class="f12 pl4 pr4" style="color:#646572;padding:4px;" hover-class="none" hover-stop-propagation="false">{{itm || '-'}}</view>
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;padding:4px;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</view>
<!-- <view class="tagsLi" wx:for="{{item.labelGroup}}" wx:for-item="item1" wx:key="index" wx:if="{{(item.hotJob == 1 && index <= 1) || item.hotJob ==2}}">
{{item1}}
</view> -->
</view>-->
</scroll-view>
<!-- <view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> -->
</view>
@ -80,12 +75,8 @@
<view class>
<image class="mr4" style="width:20px;height:20px;display:block" src="https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/fee.svg" mode="aspecFill" lazy-load="false"></image>
</view>
<view class style="font-size:13px" wx:if="{{!isLogin}}" hover-class="none" hover-stop-propagation="false">
登录查看
</view>
<view class style="font-size:13px" wx:else hover-class="none" hover-stop-propagation="false">
{{agencyStatus == 1 ? (item.fuWuFei ? item.fuWuFei : '-') : '仅代理可见'}}
</view>
<view class style="font-size:13px" wx:if="{{!isLogin}}" hover-class="none" hover-stop-propagation="false">登录查看</view>
<view class style="font-size:13px" wx:else hover-class="none" hover-stop-propagation="false">{{agencyStatus == 1 ? (item.fuWuFei ? item.fuWuFei : '详询客服') : '仅代理可见'}}</view>
</view>
</view>
</view>
@ -97,7 +88,7 @@
{{itm || '-'}}
</view>
</view>
</view> -->
</view>-->
</view>
</view>
</view>
</view>

@ -12,9 +12,26 @@
padding: 10px 10px;
}
.cusFlexStart{
.cusFlexStart {
justify-content: start;
}
.cusFlexStart .fss{
.cusFlexStart .fss {
margin-right: 6px;
}
}
.markTag {
height: 14px;
padding: 2px 4px;
font-size: 12px;
line-height: 14px;
border-radius: 4px;
margin-right: 4px;
}
.sanfang {
border: 1px solid #666;
color: #333;
}
.zhenxuan {
border: 1px solid #1677ff;
background-color: #1677ff;
color: #fff;
}

@ -88,18 +88,22 @@ Page({
var that = this;
var text = "姓名:" + that.data.recordDetail.userName + "/" + (that.data.recordDetail.sex == 1 ? "男" : "女") + "/" + that.data.recordDetail.age + "岁" + (that.data.recordDetail.nation == "族" ? "" : "/" + that.data.recordDetail.nation) + "\n电话" + (that.data.recordDetail.tel == "" || that.data.recordDetail.tel == undefined || that.data.recordDetail.tel == null ? "-" : that.data.recordDetail.tel) + "\n身份证号" + (that.data.recordDetail.idCard == "" ? "-" : that.data.recordDetail.idCard) + "\n家庭地址" + (that.data.recordDetail.address == "" || that.data.recordDetail.address == undefined || that.data.recordDetail.address == null ? "-" : that.data.recordDetail.address) + "\n报名岗位" + that.data.recordDetail.storeJobName + "\n员工薪资" + (that.data.recordDetail.employeeSalary || '-') + "\n代理政策" + that.data.recordDetail.policy;
app.copyFun(text,()=>{
console.log(123123);
that.close2();
wx.setClipboardData({
data: text,
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data); // data
that.close2();
},
});
},
});
})
// wx.setClipboardData({
// data: text,
// success (res) {
// wx.getClipboardData({
// success (res) {
// console.log(res.data); // data
// that.close2();
// },
// });
// },
// });
},
close2: function () {
console.log("close");
@ -260,23 +264,27 @@ Page({
copyClose () {
var that = this;
var text = "姓名:" + that.data.userinfo.userName + "/" + (that.data.userinfo.sex == 1 ? "男" : "女") + "/" + that.data.userinfo.age + "岁" + (that.data.userinfo.nation == "族" ? "" : "/" + that.data.userinfo.nation) + "\n身份证号" + (that.data.userinfo.idCard == "" ? "-" : that.data.userinfo.idCard) + "\n企业岗位" + that.data.userinfo.storeJobName + "\n面试时间" + that.data.interviewTime + "\n电话" + (that.data.userinfo.tel == "" ? "-" : that.data.userinfo.tel);
app.copyFun(text,()=>{
console.log(123123);
that.close1();
wx.setClipboardData({
data: text,
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data); // data
wx.showToast({
title: "内容已复制",
icon: "none",
duration: 1500,
});
that.close1();
},
});
},
});
})
// wx.setClipboardData({
// data: text,
// success (res) {
// wx.getClipboardData({
// success (res) {
// console.log(res.data); // data
// wx.showToast({
// title: "内容已复制",
// icon: "none",
// duration: 1500,
// });
// that.close1();
// },
// });
// },
// });
},
showImgs (e) {

@ -15,11 +15,11 @@
<input type="text" class="weui-search-bar__input" style placeholder-style="color:#999;" value="{{inputVal}}" placeholder="{{placeholderText}}" bindinput="inputTyping" bindconfirm="searchKey" confirm-type="search" />
<view class="iconfont icon-qingchu1 biggerSize cccc" wx:if="{{inputVal}}" catchtap="clearInput"></view>
</view>
</view> -->
</view>-->
<view class wx:if="{{toped == '1'}}" hover-class="none" hover-stop-propagation="false">
<view class="positionLetter" style="top:{{pltop}}px" wx:if="{{plShow}}">{{alpha}}</view>
<scroll-view scroll-y="true" style="height: 100vh;" scroll-into-view="{{toView}}" bindscroll="leftMove">
<scroll-view scroll-y="true" style="height: calc(100vh - 97px);" scroll-into-view="{{toView}}" bindscroll="leftMove">
<view class="p10200" id="top">
<view class="headTxt">当前城市</view>
<view class="container">
@ -51,7 +51,7 @@
</scroll-view>
</view>
<view class wx:if="{{toped == '2'}}" hover-class="none" hover-stop-propagation="false">
<scroll-view scroll-y="true" style="height: 100vh;" scroll-into-view="{{toView}}" bindscroll="leftMove">
<scroll-view scroll-y="true" style="height: calc(100vh - 97px);" scroll-into-view="{{toView}}" bindscroll="leftMove">
<view class="p10200" id="top">
<view class="headTxt">当前省份</view>
<view class="container">

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

@ -17,50 +17,40 @@
<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 class="bgf p16 br8" style="padding-top:0rpx;padding-bottom:0rpx" bindtap="showFee">
<view wx:if="{{corpUserFlag}}" class="bgf pl16 pr16 br8" hover-class="none" hover-stop-propagation="false">
<view wx:if="{{jobDetail.record.askAgencyName}}" class="fsa h45 bb1" hover-class="none" hover-stop-propagation="false">
<view class="fss" hover-class="none" hover-stop-propagation="false" style="flex: none;">
<view class="fw500 mr4 g_flex_column_center">来源</view>
</view>
<view class="c6 mt4" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.askAgencyName}}</view>
</view>
<view class="fsa h45" hover-class="none" hover-stop-propagation="false">
<view class="fss" hover-class="none" hover-stop-propagation="false" style="flex: none;">
<view class="fw500 mr4 g_flex_column_center">项目方</view>
</view>
<view class="fse" hover-class="none" hover-stop-propagation="false" style="flex: 1;">
<span class="c6" selectable="false" space="false" decode="false">{{jobDetail.record.supplier.supplierName}}</span>
</view>
</view>
</view>
<view class="bgf p16 br8 mt8" style="padding-top:0rpx;padding-bottom:0rpx" bindtap="showFee">
<view class="fsa" hover-class="none" hover-stop-propagation="false">
<view class="fss" hover-class="none" hover-stop-propagation="false" style="flex: none;">
<view class="fw500 mr4 h67 g_flex_column_center">代理佣金</view>
<icon class="iconfont {{isServicePriceShow ? 'icon-zhengyan1' : 'icon-biyan1'}} ysd-base-f40 f22 h67 g_flex_column_center" color data-index="{{isServicePriceShow ? 1 : 2}}" wx:if="{{isAgency}}" catchtap="toggleprice" style="width: 67px;"></icon>
</view>
<view class="fse h67" hover-class="none" hover-stop-propagation="false" style="flex: 1;">
<span class wx:if="{{isServicePriceShow && isAgency}}">{{fuWuFei || '--'}}</span>
<span class wx:if="{{isServicePriceShow && isAgency}}">{{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 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="p16 pb10" style="padding-top:10px" id="tocanvas">
<view class="v-center">
<view class="jobTitle">
<!-- {{jobDetail.store.aliasName}} {{jobDetail.record.jobName}} -->
{{jobDetail.record.jobName}}
<span wx:if="{{corpUserFlag}}" class="f14 c6" selectable="false" space="false" decode="false">@{{jobDetail.record.supplier.supplierName}}</span>
<!-- <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>
<text class="jobTitle" selectable="{{true}}">{{jobDetail.record.jobName}}</text>
<view class="f14 c045" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.update}}</view>
</view>
<view class="mb8">
@ -136,8 +126,11 @@
{{jobDetail.record.monthlyPay ? '丨' + jobDetail.record.monthlyPay : '--'}}
</view>
</view>
<view wx:if="{{corpUserFlag}}" data-content="{{jobDetail.record.jobName+'@'+jobDetail.record.supplier.supplierName}}" catchtap="getJobName">
<!-- <icon class="iconfont icon-fuzhi mr4" style="font-size:16px;float: right;"></icon> -->
<span class="f14 c6 biggerSize">复制</span>
</view>
</view>
<view wx:if="{{jobDetail.record.askAgencyName}}" class="f14s c045 mt4" hover-class="none" hover-stop-propagation="false">代理:{{jobDetail.record.askAgencyName}}</view>
</view>
</view>
<view class="mg020 pb8 pt8 bt1 v-center" bindtap="chooseMap" data-address="{{jobDetail}}" wx:if="{{jobDetail.record.storeLat}}">
@ -249,7 +242,7 @@
<view class="display-flex">
<view class="rb1">面试地点</view>
<view class="textb1 fsa flex-1">
<view class>{{jobDetail.record.interviewAddr}}</view>
<view class>{{jobDetail.record.interviewAddr || '-'}}</view>
<i wx:if="{{jobDetail.record.interviewLat}}" class="iconfont icon-dizhi11 f16 mr4 biggerSize" style="color:#027AFF;" bindtap="chooseMap" data-address="{{jobDetail}}" data-type="interview"></i>
</view>
</view>

@ -599,3 +599,6 @@ button.collectBtn {
.h67 {
height: 67px;
}
.h45 {
height: 45px;
}

@ -10,10 +10,27 @@ import {
} from '../../utils/request.js'
Page({
data: {
isSwiper:true,
isSwiper: true,
toped: "1",
jobNum: 0, // 48小时更新职位数
currCode: '',
tabGroup: [
{
name: '全部',
key: '0',
picked: ''
},
{
name: '甄选',
key: '1',
picked: '1'
},
{
name: '三方',
key: '2',
picked: '0'
},
],
anchorList: [
{
id: 'age',
@ -661,7 +678,7 @@ Page({
this.data.storeJobListSearchForm.keys = "";
this.getJobList('search');
},
bindconfirm: function (e){
bindconfirm: function (e) {
if (!this.data.isLogin) {
wx.navigateTo({
url: "../login/index",
@ -1826,12 +1843,12 @@ Page({
// this.getJobList();
},
swiperToggleT(){
swiperToggleT () {
this.setData({
isSwiper:false
isSwiper: false
})
},
swiperToggleF(){
swiperToggleF () {
this.setData({
// isSwiper:true,
// inputVal:''
@ -2654,10 +2671,10 @@ Page({
}).then((res) => {
console.log("职位列表↓↓↓↓");
console.log(res);
if($type == 'search'){
if ($type == 'search') {
that.setData({
isSwiper:true,
inputVal:''
isSwiper: true,
inputVal: ''
})
}
let data = res.data.data
@ -2720,16 +2737,13 @@ Page({
that.setData({
isCity: that.data.searchCityParamStorage.isCity,
});
wx.hideLoading({
success: (res) => { },
});
that.setData({
loading: false,
pageShow: true,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
resolve();
that.getTag();
that.data.recordList.forEach((item, index) => {
// console.log(item);
@ -2772,6 +2786,11 @@ Page({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
});
wx.hideLoading({
success: (res) => { },
});
resolve();
that.getTag();
// if (that.data.recordList.length < data.recordCount) {
// that.setData({
// hasMoreData: true,
@ -4241,14 +4260,13 @@ Page({
*/
collectChange (e) {
let that = this;
if (
that.data.isLogin ||
(!that.data.isLogin && e.currentTarget.dataset.id == 0)
) {
if (e.currentTarget.dataset.id) {
that.data.choiceCollect = e.currentTarget.dataset.id;
// if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.item.key == 0)) {
if (e.currentTarget.dataset.item) {
let item = e.currentTarget.dataset.item
that.data.choiceCollect = item.key;
// that.data.storeJobListSearchForm.ucj = e.currentTarget.dataset.id;
that.data.storeJobListSearchForm.sortTag = e.currentTarget.dataset.id;
that.data.storeJobListSearchForm.sortTag = item.key;
that.data.storeJobListSearchForm.picked = item.picked;
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
choiceCollect: that.data.choiceCollect,
@ -4258,14 +4276,14 @@ Page({
});
that.getJobList();
}
} else {
// if(e.currentTarget.dataset.id == 1){
that.setData({
recordList: [],
choiceCollect: 1,
});
// }
}
// } else {
// // if(e.currentTarget.dataset.id == 1){
// that.setData({
// recordList: [],
// choiceCollect: 1,
// });
// // }
// }
},
choiceFilter (e) {
var that = this;
@ -4545,8 +4563,8 @@ Page({
});
},
showLeft () {
wx.navigateTo({
url: `/pages/listSharePage/index`,
wx.navigateTo({
url: `/pages/listSharePage/index`,
});
// this.getTabBar().setData({
@ -4829,9 +4847,10 @@ Page({
url: "/pages/filterPage/index",
});
},
// 获取48小时内职位更新数
getJobNum () {
// 获取48小时内职位更新数
customRequest("/yishoudan/custom/job/countUpdateNumByHour/48", {
// let url = this.data.choiceCollect ==
customRequest("/yishoudan/custom/job/countUpdateNumByHourV3/48", {
header: 'headers',
method: 'get',
}).then((res) => {

@ -34,16 +34,16 @@
<!-- <view class="fsa " catchtouchmove="modalMove" style> -->
<view class="fsa searchBar" style hover-class="none" hover-stop-propagation="false">
<view class="fsa" hover-class="none" hover-stop-propagation="false">
<view class="tarbar" bindtap="collectChange" data-id="0">
<view class="tarbarText {{choiceCollect == '0'?'collectActive':''}}">最新</view>
<view wx:for="{{tabGroup}}" class="tarbar" style="margin-right: 24px;" data-item="{{item}}" bindtap="collectChange">
<view class="tarbarText {{choiceCollect == item.key?'collectActive':''}}">{{item.name}}</view>
<!-- <image wx:if="{{toped == '1'}}" src="../../assets/images/border-circle.svg" class="tarbarImg"></image> -->
</view>
<view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1">
<view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">工价</view>
</view>
<view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="3">
<view class="tarbarText {{choiceCollect == '3'?'collectActive':''}}">佣金</view>
<!-- <view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1">
<view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">甄选</view>
</view>
<view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="2">
<view class="tarbarText {{choiceCollect == '2'?'collectActive':''}}">三方</view>
</view>-->
<!-- <view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1">
<view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">附近</view>
</view>
@ -56,7 +56,7 @@
</view>
<view class="xgxg" id="menu">
<view class="fsa" style="justify-content:space-beteween; height: 44px">
<view class="csbf f14 c6 {{whichOneShow == 'gj' ?'active':''}}" catchtap="chooseNl" data-type="gj" wx:if="{{false}}">
<view class="csbf f14 c6 {{whichOneShow == 'gj' ?'active':''}}" catchtap="chooseNl" data-type="gj" wx:if="{{true}}">
{{firstMenu}}
<!-- <i class="iconfont icon-shouqi f12 {{activez=='zuijin' ?'cf40':'c9'}} fst ml4" wx:if="{{whichOneShow == 'gj'}}"></i>
<i class="iconfont icon-zhankai f12 {{activez=='zuijin' ?'cf40':'c9'}} fst ml4" wx:else data-type="gj"></i>-->
@ -64,7 +64,7 @@
<scroll-view class="gjFixed" wx:if="{{ whichOneShow == 'gj' }}" catchtouchmove="cc">
<view class="bgf tl c3 por filter filterprice sort {{whichOneShow == 'gj' ? 'activeWindow' : ''}}" catchtap style="height:240px">
<view class="f16 fw500 p016 {{activez=='zuigao'?'cf00 b1 ':''}}" data-id="zuigao" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">工价优先</view>
<view class="f16 fw500 p016 {{activez=='zuijin'?'cf00 b1':''}}" data-id="zuijin" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">距离优先</view>
<!-- <view class="f16 fw500 p016 {{activez=='zuijin'?'cf00 b1':''}}" data-id="zuijin" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">距离优先</view> -->
<view class="f16 fw500 p016 {{activez=='fuwufei'?'cf00 b1':''}}" data-id="fuwufei" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">佣金优先</view>
</view>
</scroll-view>

@ -28,7 +28,7 @@
<navigator class target url="../versionPage/index" hover-class="hcb" open-type="navigate">
<view class="gender fsa">
<view>关于伯才</view>
<view>关于伯才供应链</view>
<view class="fsa c9">
<view class hover-class="none" hover-stop-propagation="false">版本{{version}}</view>
<view class="iconfont icon-gengduo11 ml8"></view>

@ -1,7 +1,7 @@
<view class="container display-flex">
<view class="logoContainer display-flex">
<image class="" src="https://matripe.oss-cn-beijing.aliyuncs.com/bcgyl.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload=""/>
<p class=" mt24 mb8">伯才</p>
<p class=" mt24 mb8">伯才供应链</p>
<p class="">Version {{version}}</p>
</view>
<view class="copyRight f12">

@ -8,6 +8,13 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "pages/billDetail/index",
"pathName": "pages/billDetail/index",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "pages/workBench/index",
"pathName": "pages/workBench/index",

@ -1,4 +1,4 @@
import dateUtil from './dateUtil.js'
import dateUtil from './dateUtil.js'
/**
* 如果是null '' 'null' 'undefined'
* @param item
@ -1169,7 +1169,37 @@ export function setJobInfoPosition (pos) {
}
});
citys = citys.join(",").replace(/,/g, "丨");
return citys ;
return citys;
}
export function setJobInfoPositionv3 (str) {
var reg = /.+?(省|市|自治区|自治州|县|区)/g; // 省市区的正则
let result = '';
if (str) {
if (str.match(reg)) {
if (str.match(reg).length == 1) {
result = str.match(reg)[0];
} else if (str.match(reg).length == 2) {
result = str
.match(reg)
.map((item) => {
return item;
})
.join(" | ");
} else if (str.match(reg).length == 3) {
result = str
.match(reg)
.filter((item, index) => {
return item;
})
.join(" | ");
}
} else {
result = str;
}
return result;
} else {
return '';
}
}
/*
处理详情地址
@ -1256,7 +1286,7 @@ export const cutShareImg = (imgUrl) => {
*
*
*/
export function disposeJobListData (recordList) {
var that = this;
console.log(recordList);
@ -1325,7 +1355,7 @@ export function disposeJobListData (recordList) {
// }
item["monthlyPay"] = monthlyPayStr;
//地址深圳丨龙岗区丨
let citys = setJobInfoPosition(item.storeDistrict);
let citys = setJobInfoPositionv3(item.storeAddr);
// console.log('citys',citys);
var districtStr = "";
@ -1416,39 +1446,39 @@ export function query (id, fn) {
query.exec(fn);
}
export function policyNumToHanZi (i) {
export function policyNumToHanZi (i) {
let pickerStr;
if (i <= 9) {
switch (i) {
case 1:
pickerStr = "政策一";
pickerStr = "政策一";
break;
case 2:
pickerStr = "政策二";
pickerStr = "政策二";
break;
case 3:
pickerStr = "政策三";
pickerStr = "政策三";
break;
case 4:
pickerStr = "政策四";
pickerStr = "政策四";
break;
case 5:
pickerStr = "政策五";
pickerStr = "政策五";
break;
case 6:
pickerStr = "政策六";
pickerStr = "政策六";
break;
case 7:
pickerStr = "政策七";
pickerStr = "政策七";
break;
case 8:
pickerStr = "政策八";
pickerStr = "政策八";
break;
case 9:
pickerStr = "政策九";
pickerStr = "政策九";
break;
case 10:
pickerStr = "政策十";
pickerStr = "政策十";
break;
default:
pickerStr = "政策" + (i + 1);

Loading…
Cancel
Save