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

@ -586,5 +586,26 @@ App({
}; };
console.log('分享数据:', params) console.log('分享数据:', params)
return 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="display-flex">
<view class="flex-1 vsb"> <view class="flex-1 vsb">
<view class="fsa"> <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 class="f14s c045">{{item.update}}</view>
</view> </view>
<view class="v-center mt8 mb6"> <view class="v-center mt8 mb6">
<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' style="max-width:120px"> <view class="oelps" style="max-width:120px">{{item.district }}</view>
{{item.district }}
</view>
{{item.district ?'丨' :''}} {{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}}</block>
{{item.distanceKm}}
</block>
<block wx:else>{{item.genderRestrict + '丨' + 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> -->
<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="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"> <view class="f12 pl4 pr4" style="color:#646572;padding:4px;" hover-class="none" hover-stop-propagation="false">{{itm || '-'}}</view>
{{itm || '-'}}
</view>
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;padding:4px;" wx:if="{{item.labelGroup.length <= 0}}">
暂无特色
</view> </view>
<view class="f12 pl4 pr4" style="background: #f1faff;padding:4px;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</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}}"> <!-- <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}} {{item1}}
</view> --> </view>-->
</scroll-view> </scroll-view>
<!-- <view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> --> <!-- <view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> -->
</view> </view>
@ -80,12 +75,8 @@
<view class> <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> <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>
<view class style="font-size:13px" wx:if="{{!isLogin}}" hover-class="none" hover-stop-propagation="false"> <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 class style="font-size:13px" wx:else hover-class="none" hover-stop-propagation="false">
{{agencyStatus == 1 ? (item.fuWuFei ? item.fuWuFei : '-') : '仅代理可见'}}
</view>
</view> </view>
</view> </view>
</view> </view>
@ -97,7 +88,7 @@
{{itm || '-'}} {{itm || '-'}}
</view> </view>
</view> </view>
</view> --> </view>-->
</view> </view>
</view> </view>
</view> </view>

@ -12,9 +12,26 @@
padding: 10px 10px; padding: 10px 10px;
} }
.cusFlexStart{ .cusFlexStart {
justify-content: start; justify-content: start;
} }
.cusFlexStart .fss{ .cusFlexStart .fss {
margin-right: 6px; 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 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; 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,()=>{
wx.setClipboardData({ console.log(123123);
data: text,
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data); // data
that.close2(); that.close2();
},
}); })
}, // wx.setClipboardData({
}); // data: text,
// success (res) {
// wx.getClipboardData({
// success (res) {
// console.log(res.data); // data
// that.close2();
// },
// });
// },
// });
}, },
close2: function () { close2: function () {
console.log("close"); console.log("close");
@ -260,23 +264,27 @@ Page({
copyClose () { copyClose () {
var that = this; 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); 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,()=>{
wx.setClipboardData({ console.log(123123);
data: text,
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data); // data
wx.showToast({
title: "内容已复制",
icon: "none",
duration: 1500,
});
that.close1(); 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) { 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" /> <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 class="iconfont icon-qingchu1 biggerSize cccc" wx:if="{{inputVal}}" catchtap="clearInput"></view>
</view> </view>
</view> --> </view>-->
<view class wx:if="{{toped == '1'}}" hover-class="none" hover-stop-propagation="false"> <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> <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="p10200" id="top">
<view class="headTxt">当前城市</view> <view class="headTxt">当前城市</view>
<view class="container"> <view class="container">
@ -51,7 +51,7 @@
</scroll-view> </scroll-view>
</view> </view>
<view class wx:if="{{toped == '2'}}" hover-class="none" hover-stop-propagation="false"> <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="p10200" id="top">
<view class="headTxt">当前省份</view> <view class="headTxt">当前省份</view>
<view class="container"> <view class="container">

@ -879,7 +879,8 @@ Page({
// console.log("notLogin", that.data.isLogin); // console.log("notLogin", that.data.isLogin);
// commonUtil.fillTextLineBreak(ctx, "工价登录后查看", baseLeft + logoSize + 10, line3 - 40, 400, 20, "#ff4400", titleFontSize - 6, "400"); // 时薪 // commonUtil.fillTextLineBreak(ctx, "工价登录后查看", baseLeft + logoSize + 10, line3 - 40, 400, 20, "#ff4400", titleFontSize - 6, "400"); // 时薪
// } // }
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) => { that.data.jobDetail.record.jobRequestLabelNames.forEach((item1, index) => {
if (index <= 3) { if (index <= 3) {
commonUtil.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 12, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 commonUtil.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 12, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符
@ -894,6 +895,11 @@ Page({
labelLeft += ctx.measureText(item1).width + 32; 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 + (that.data.jobDetail.record.jobSpecialLabelNames.length > 3 ? 0 : -70), 712, 60, 4, "#fff6e8"); // 宣传标语背景
commonUtil.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景 commonUtil.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景
@ -1111,15 +1117,11 @@ Page({
that.setData({ that.setData({
fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.record.returnFeeType, result.record.returnFee ? result.record.returnFee / 100 : ''), fuWuFei: commonUtil.getReturnFeeTypeName1ById(result.record.returnFeeType, result.record.returnFee ? result.record.returnFee / 100 : ''),
}); });
} else {
that.setData({
fuWuFei: "-",
});
} }
console.log(result); console.log(result);
console.log(commonUtil); console.log(commonUtil);
let citys = commonUtil.setJobInfoPosition(result.record.storeDistrict); let citys = commonUtil.setJobInfoPositionv3(result.record.storeAddr);
// city = city.replace(/,/g, " | ") // city = city.replace(/,/g, " | ")
that.data.jobDetail = result that.data.jobDetail = result
that.showSexAge(); that.showSexAge();
@ -1670,26 +1672,15 @@ Page({
query query
.select(".contactInfo") .select(".contactInfo")
.boundingClientRect(function (res) { .boundingClientRect(function (res) {
console.log(res); let data = e.currentTarget.dataset.content + res.dataset.info
contentInfo = res.dataset.info; app.copyFun(data)
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,
});
},
});
},
});
}) })
.exec(); .exec();
}, },
getJobName (e) {
let data = e.currentTarget.dataset.content
app.copyFun(data)
},
changeContact () { changeContact () {
console.log(2123); console.log(2123);
wx.navigateTo({ wx.navigateTo({
@ -1877,10 +1868,18 @@ Page({
let that = this let that = this
// if (!this.data.isAgency) return false // if (!this.data.isAgency) return false
console.log('that.data.bclr', that.data.bclr); 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({ wx.showModal({
title: that.data.isAgency ? '佣金: ' + that.data.fuWuFei : '', title,
content: that.data.isAgency ? that.data.jobDetail.record.returnFeeDesp : '抱歉,您需先成为伯才代理以获得使用权限。', content,
// content: that.data.bclr,
contentColor: "#ccc", contentColor: "#ccc",
confirmColor: "#1890ff", confirmColor: "#1890ff",
confirmText: "确定", 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> <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>-->
<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="fsa" hover-class="none" hover-stop-propagation="false">
<view class="fss" hover-class="none" hover-stop-propagation="false" style="flex: none;"> <view class="fss" hover-class="none" hover-stop-propagation="false" style="flex: none;">
<view class="fw500 mr4 h67 g_flex_column_center">代理佣金</view> <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> <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>
<view class="fse h67" hover-class="none" hover-stop-propagation="false" style="flex: 1;"> <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> <span class wx:else>***</span>
<view class="iconfont icon-you f14 c045 ml4" hover-class="none" hover-stop-propagation="false"></view> <view class="iconfont icon-you f14 c045 ml4" hover-class="none" hover-stop-propagation="false"></view>
</view> </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>
<view class="bgf mt10 br8 pb20" hover-class="none" hover-stop-propagation="false"> <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="p16 pb10" style="padding-top:10px" id="tocanvas">
<view class="v-center"> <view class="v-center">
<view class="jobTitle"> <text class="jobTitle" selectable="{{true}}">{{jobDetail.record.jobName}}</text>
<!-- {{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>
<view class="f14 c045" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.update}}</view> <view class="f14 c045" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.update}}</view>
</view> </view>
<view class="mb8"> <view class="mb8">
@ -136,8 +126,11 @@
{{jobDetail.record.monthlyPay ? '丨' + jobDetail.record.monthlyPay : '--'}} {{jobDetail.record.monthlyPay ? '丨' + jobDetail.record.monthlyPay : '--'}}
</view> </view>
</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>
<view wx:if="{{jobDetail.record.askAgencyName}}" class="f14s c045 mt4" hover-class="none" hover-stop-propagation="false">代理:{{jobDetail.record.askAgencyName}}</view>
</view> </view>
</view> </view>
<view class="mg020 pb8 pt8 bt1 v-center" bindtap="chooseMap" data-address="{{jobDetail}}" wx:if="{{jobDetail.record.storeLat}}"> <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="display-flex">
<view class="rb1">面试地点</view> <view class="rb1">面试地点</view>
<view class="textb1 fsa flex-1"> <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> <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>
</view> </view>

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

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

@ -34,16 +34,16 @@
<!-- <view class="fsa " catchtouchmove="modalMove" style> --> <!-- <view class="fsa " catchtouchmove="modalMove" style> -->
<view class="fsa searchBar" style hover-class="none" hover-stop-propagation="false"> <view class="fsa searchBar" style hover-class="none" hover-stop-propagation="false">
<view class="fsa" 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 wx:for="{{tabGroup}}" class="tarbar" style="margin-right: 24px;" data-item="{{item}}" bindtap="collectChange">
<view class="tarbarText {{choiceCollect == '0'?'collectActive':''}}">最新</view> <view class="tarbarText {{choiceCollect == item.key?'collectActive':''}}">{{item.name}}</view>
<!-- <image wx:if="{{toped == '1'}}" src="../../assets/images/border-circle.svg" class="tarbarImg"></image> --> <!-- <image wx:if="{{toped == '1'}}" src="../../assets/images/border-circle.svg" class="tarbarImg"></image> -->
</view> </view>
<view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1"> <!-- <view class="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1">
<view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">工价</view> <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> </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="tarbar" style="margin-left: 24px;" bindtap="collectChange" data-id="1">
<view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">附近</view> <view class="tarbarText {{choiceCollect == '1'?'collectActive':''}}">附近</view>
</view> </view>
@ -56,7 +56,7 @@
</view> </view>
<view class="xgxg" id="menu"> <view class="xgxg" id="menu">
<view class="fsa" style="justify-content:space-beteween; height: 44px"> <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}} {{firstMenu}}
<!-- <i class="iconfont icon-shouqi f12 {{activez=='zuijin' ?'cf40':'c9'}} fst ml4" wx:if="{{whichOneShow == 'gj'}}"></i> <!-- <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>--> <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"> <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="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=='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 class="f16 fw500 p016 {{activez=='fuwufei'?'cf00 b1':''}}" data-id="fuwufei" bindtap="choiceFilter" style="line-height: 42px" hover-class="thover">佣金优先</view>
</view> </view>
</scroll-view> </scroll-view>

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

@ -1,7 +1,7 @@
<view class="container display-flex"> <view class="container display-flex">
<view class="logoContainer 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=""/> <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> <p class="">Version {{version}}</p>
</view> </view>
<view class="copyRight f12"> <view class="copyRight f12">

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

@ -1169,7 +1169,37 @@ export function setJobInfoPosition (pos) {
} }
}); });
citys = citys.join(",").replace(/,/g, "丨"); 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 '';
}
} }
/* /*
处理详情地址 处理详情地址
@ -1325,7 +1355,7 @@ export function disposeJobListData (recordList) {
// } // }
item["monthlyPay"] = monthlyPayStr; item["monthlyPay"] = monthlyPayStr;
//地址深圳丨龙岗区丨 //地址深圳丨龙岗区丨
let citys = setJobInfoPosition(item.storeDistrict); let citys = setJobInfoPositionv3(item.storeAddr);
// console.log('citys',citys); // console.log('citys',citys);
var districtStr = ""; var districtStr = "";

Loading…
Cancel
Save