cyl/dev
wangxia 1 year ago
parent 013d9b71a6
commit dc319d9875

@ -162,7 +162,7 @@ onShareAppMessage() {
sourceJson,
type,
};
customRequest("/agency/updateContactCfg", { header: 'headers', method: 'post', data: {} }).then((res) => {
customRequest("/agency/updateContactCfg", { header: 'headers', method: 'post', data }).then((res) => {
if (res.data.status == 200) {
app.globalData.loginUserInfo.noticeEndStr = res.data.data.noticeEndStr;
wx.showToast({

@ -73,12 +73,7 @@ Page({
},
onShow () {
var that = this;
this.setData({
isLogin: app.globalData.isLogin,
isLoading: true,
// userInfo:{...app.globalData.loginUserInfo, agencyStatus:0},
});
setTimeout(() => {
app.getLoginUserTokenInfo().then(() => {
that.setData({
isAgency: app.globalData.loginUserInfo.agencyStatus == 1 ? true : false,
corpUserFlag: app.globalData.loginUserInfo.corpUserFlag,
@ -90,10 +85,18 @@ Page({
that.setData({
// agencyStatus: app.globalData.agencyStatus,
userInfo: app.globalData.loginUserInfo,
isLogin: app.globalData.isLogin,
isLoading: true,
});
that.getCode();
}
}, 100);
});
// this.setData({
// isLogin: app.globalData.isLogin,
// isLoading: true,
// // userInfo:{...app.globalData.loginUserInfo, agencyStatus:0},
// });
// else {
// wx.setStorageSync("comeFromPage", "detail");
@ -142,23 +145,24 @@ Page({
console.log(e);
console.log('jobDetail', this.data.jobDetail);
app.vibrateShort()
if (this.data.fromBocai) {
if (this.data.jobDetail.customServiceUsers.length > 0) {
this.setData({
kefuShow: true
})
} else {
wx.showToast({
title: '该岗位暂无客服',
icon: 'none',
duration: 2000
})
}
// if (this.data.fromBocai) {
// if (this.data.jobDetail.customServiceUsers.length > 0) {
// this.setData({
// kefuShow: true
// })
// } else {
// wx.showToast({
// title: '该岗位暂无客服',
// icon: 'none',
// duration: 2000
// })
// }
} else {
// } else {
let url = e.currentTarget.dataset.customServiceUrl
// console.log('/pages/detail/index?storeJobId' + this.data.searchForm.storeJobId);
console.log('app.globalData.loginUserInfo.agencyId', app.globalData.loginUserInfo.agencyId);
if (e.currentTarget.dataset.customServiceUrl != '') {
wx.openCustomerServiceChat({
// extInfo: { url: 'https://work.weixin.qq.com/kfid/kfc84d8465f4c633511' },
@ -166,7 +170,7 @@ Page({
url: url || 'https://work.weixin.qq.com/kfid/kfc84d8465f4c633511'
},
showMessageCard: true,
sendMessagePath: `/pages/detail/index.html?storeJobId=${this.data.searchForm.storeJobId}&jobClassify=${this.data.searchForm.jobClassify}`,
sendMessagePath: `/pages/detail/index.html?storeJobId=${this.data.searchForm.storeJobId}&agencyId=${app.globalData.loginUserInfo.agencyId}`,
// sendMessageTitle:'丸子吗喽你好呀',
// sendMessageImg:'../../assets/images/jbn.png',
corpId: 'wwc227639d3a136c8d',
@ -185,7 +189,7 @@ Page({
})
}
}
// }
},
showImage (e) {
@ -299,7 +303,7 @@ Page({
},
onLoad (query) {
var that = this;
console.log(app.globalData.loginUserInfo);
console.log('app.globalData.loginUserInfo', app.globalData.loginUserInfo);
qqmapsdk = new QQMapWX({
key: "5PTBZ-YI7C6-MZGS3-ES7QN-4T5O2-EJFVR",
});
@ -342,25 +346,16 @@ Page({
if (query.storeJobId) {
this.data.searchForm.storeJobId = query.storeJobId;
this.data.searchForm.jobClassify = query.jobClassify || 1;
let fromBocai = false
if (this.data.searchForm.jobClassify == 2) {
fromBocai = true
}
this.setData({
fromBocai
})
if (query.agencyId) {
this.data.searchForm.agencyId = query.agencyId;
}
// this.data.wxCode = query.wxCode;
// this.getLocation();
// that.setData({
// wxCode: that.data.wxCode
// })
wx.setStorageSync({
key: "storeJobId",
data: query.storeJobId,
});
wx.setStorageSync("storeJobId", query.storeJobId);
let agencyUserId = query.agencyUserId;
if (agencyUserId) {
@ -381,7 +376,8 @@ Page({
console.log(app.globalData.isLogin);
console.log("sceneJson===", sceneJson);
this.data.searchForm.storeJobId = sceneJson.storeJobId;
this.data.searchForm.jobClassify = sceneJson.jobClassify || 1;
this.data.searchForm.agencyId = sceneJson.agencyId || '';
// this.data.searchForm.jobClassify = sceneJson.jobClassify || 1;
if (!app.globalData.isLogin) {
wx.setStorageSync("comeFromPage", "detail");
// wx.setStorageSync("comeFromPageParam", { storeJobId: that.data.searchForm.storeJobId });
@ -1677,7 +1673,7 @@ Page({
console.log(res);
contentInfo = res.dataset.info;
wx.setClipboardData({
data: e.currentTarget.dataset.content,
data: e.currentTarget.dataset.content + contentInfo,
success (res) {
wx.getClipboardData({
success (res) {

@ -18,16 +18,10 @@
</view>
</view>-->
<view class="bgf p16 br8" 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="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 class="fse h67" hover-class="none" hover-stop-propagation="false" style="flex: 1;">
<span class wx:if="{{isServicePriceShow && isAgency}}">{{fuWuFei || '--'}}</span>
@ -62,6 +56,7 @@
<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>-->
@ -97,7 +92,8 @@
</view>
<view class="f12 pl4 pr4" style="background: #f1faff;" wx:if="{{item.labelGroup.length <= 0}}">暂无特色</view>
</view>
<view class="fss" style="align-items:flex-end">
<view class="fsa" style="align-items:flex-end">
<view class="fss" hover-class="none" hover-stop-propagation="false">
<view class="jobMoney ysd-base-f40">
<!-- {{jobDetail.record.combiSalary}} -->
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 0}}">
@ -130,7 +126,7 @@
<view class="hourPay" wx:if="{{jobDetail.record.salaryClassify == 7}}">
<!-- <span class="f14">¥</span>
<span class="f20">{{jobDetail.record.monthlyPay}}</span>
<span class="f14">/月</span> -->
<span class="f14">/月</span>-->
月薪
</view>
<!-- {{jobDetail.record.hourlyPay || '--'}} -->
@ -141,6 +137,8 @@
</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 class="mg020 pb8 pt8 bt1 v-center" bindtap="chooseMap" data-address="{{jobDetail}}" wx:if="{{jobDetail.record.storeLat}}">
<view>
@ -208,6 +206,12 @@
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
<view wx:if="{{corpUserFlag}}" class="onMune {{currIndex == '6' ? 'active ysd-base-color' : ''}}" data-id="6" bindtap="changeMenu">
<view class="pr dib">
原始通告
<!-- <view class="menuBorder ysd-basebg-color"></view> -->
</view>
</view>
</view>
<view class="f14">
<block wx:if="{{currIndex == '1'}}">
@ -379,12 +383,23 @@
</view>
<!-- <rich-text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false" nodes="{{jobDetail.record.jobDesp1}}"></rich-text> -->
<text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.jobInfoWithoutReturnFee}}</text>
<view class="contactInfo" hover-class="none" data-info="{{jobDetail.record.jobInfoWithoutReturnFee}}" hover-stop-propagation="false"></view>
<!-- <view class="contactInfo" hover-class="none" data-info="{{jobDetail.record.jobInfoWithoutReturnFee}}" hover-stop-propagation="false"></view> -->
</view>
<view class="contactInfo" style="white-space: pre-line" hover-class="none" data-info="{{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : (serviceInfo.userName + ' ' + (serviceInfo.workPhone || '-'))}}" hover-stop-propagation="false">{{userInfo.agencyStatus == 1 ? (userInfo.noticeEndStr ? userInfo.noticeEndStr : ('详情咨询:' + userInfo.tel)) : ('详情咨询:' + serviceInfo.aliasName + (serviceInfo.workPhone || '-'))}}</view>
<view class="f14 tac mt16" wx:if="{{userInfo.agencyStatus == 1}}" hover-class="none" hover-stop-propagation="false">
以上联系人,可以
<span class="fw500" bindtap="changeContact" style="color:#576B95;text-decoration:underline">改成我的</span>
</view>
<!-- <view class="detailH3">温馨提示</view>
<view class="pri" style="border:1px solid #eee;line-height:24px;padding:3px 8px;border-radius: 4px;color:#1890ff">{{jobDetail.record.sweetTips}}
</view>-->
</block>
<block wx:if="{{currIndex == '6'}}">
<view class="pri" style="line-height:24px;padding:5px 8px;border-radius: 4px;color:#333">
<rich-text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false" nodes="{{jobDetail.record.lastNotice}}"></rich-text>
<!-- <text class style="text-align: justify;" hover-class="none" hover-stop-propagation="false">{{jobDetail.record.lastNotice}}</text> -->
</view>
</block>
</view>
<!-- <view wx:if="{{jobDetail.record.baseInfo != null && jobDetail.record.baseInfo != ''}}" class='display-flex pb20 mt20' style="border-bottom:1px solid #e2e2e2;">
<view class='flex-1 f14 c085'>
@ -556,7 +571,7 @@
<!-- <image class="kefuBox" catchtap="kefu" data-custom-service-url="{{jobDetail.record.customServiceUrl}}" data-collected="{{jobDetail.record.collected}}" data-jobid="{{jobDetail.record.id}}" src="../../assets/images/customer-service.png" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image> -->
<bottom-drawer show="{{kefuShow}}" drawerType="kefuShow" catchtouchmove="modalMove" bindhidedrawer="hidedrawershow" class="bottomDrawer" touchClose="{{true}}" cancerShow="{{false}}">
<view class="tac" style="height:56px;line-height:56px" wx:for="{{jobDetail.customServiceUsers}}" data-tel="{{item.tel}}" bindtap="makePhoneCall">
<view class="tac" style="height:56px;line-height:56px" wx:for="{{jobDetail.customServiceUsers}}" wx:key="item" data-tel="{{item.tel}}" bindtap="makePhoneCall">
<i class="iconfont icon-shouji cf40 mr4 f14"></i>
{{item.aliasName + ' ' + item.tel}}
</view>

@ -4,7 +4,7 @@ page,
padding-bottom: 180px;
background-color: #f5f5f5;
}
page{
page {
padding: 16px;
}
.p14 {
@ -596,6 +596,6 @@ button.collectBtn {
bottom: 182px;
}
.h67{
.h67 {
height: 67px;
}

@ -4545,12 +4545,16 @@ Page({
});
},
showLeft () {
this.getTabBar().setData({
isShow: false,
});
this.setData({
leftShow: true,
wx.navigateTo({
url: `/pages/listSharePage/index`,
});
// this.getTabBar().setData({
// isShow: false,
// });
// this.setData({
// leftShow: true,
// });
},
hideLeft () {
this.setData({

@ -14,11 +14,7 @@
<view class="fss g_flex_1" hover-class="none" hover-stop-propagation="false" style="position: relative;">
<i class="iconfont icon-sousuo11 mr4"></i>
<view style="position: absolute;left: 18px;top: 0;width: 90%;" wx:if="{{isSwiper}}">
<swiper class="c9 f14 ml4"
style="height: 40px;width:70px;line-height:42px"
bindchange="getSwiperIndex"
autoplay
circular vertical interval="{{5000}}" duration="{{600}}">
<swiper class="c9 f14 ml4" style="height: 40px;width:70px;line-height:42px" bindchange="getSwiperIndex" autoplay circular vertical interval="{{5000}}" duration="{{600}}">
<block wx:for="{{swiperTextList}}" wx:key="index">
<swiper-item catchtouchmove="modalMove">
<view data-item="{{item}}" class="single-word color-gray">{{item}}</view>
@ -26,20 +22,7 @@
</block>
</swiper>
</view>
<input type="text"
value="{{inputVal}}"
class="f14"
bindinput="inputTyping"
bindconfirm="bindconfirm"
placeholder=""
catchblur
placeholder-class="f14"
confirm-type="search"
style="position: absolute;left: 18px;top: 0;width: 90%;height: 100%;"
bindfocus="swiperToggleT"
bindblur="swiperToggleF"
maxlength="12"
/>
<input type="text" value="{{inputVal}}" class="f14" bindinput="inputTyping" bindconfirm="bindconfirm" catchblur placeholder-class="f14" confirm-type="search" style="position: absolute;left: 18px;top: 0;width: 90%;height: 100%;" bindfocus="swiperToggleT" bindblur="swiperToggleF" maxlength="12" />
<view class="iconfont icon-guanbi11 f10 c9 biggerSize" wx:if="{{chaShowed}}" style="color:#333;left: 80%;" catchtap="clearInput"></view>
</view>
@ -798,19 +781,7 @@
</view>
</view>
</view>
<view class="pabtm" wx:if="{{!whichOneShow && false}}" style="top:{{(systemInfo.windowHeight - 200)}}px">
<view class="typeChange" catchtap="choosenTop" data-id="{{toped == 2 ? 1 : 2}}" hover-class="none" hover-stop-propagation="false">
<image class style="border-radius: 70px;width:36px;height:28px;display:{{toped == 1 ? 'block' : 'none'}}" src="{{'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/biao1.svg'}}" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<image class style="border-radius: 70px;width:36px;height:28px;display:{{toped == 2 ? 'block' : 'none'}}" src="{{'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/jian1.svg'}}" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
</view>
<!-- catchtap="golistSharePage" -->
<view class="typeChange vsb mt8" bindtap="showLeft">
<image class src="../../assets/images/znpp.svg" wx:if="{{!smartSearch}}" style="width:22px;height:22px;" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<image class src="../../assets/images/znpp1.svg" wx:else style="width:22px;height:22px;" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<view class="f10 lh1 mb2" selectable="false" space="false" decode="false">批量</view>
<view class="f10 lh1" hover-class="none" hover-stop-propagation="false">分享</view>
</view>
</view>
<!-- 智能匹配左侧弹出按钮 -->
<view class="leftButton dn {{halfHide ? 'halfHide' :''}} {{leftShow ? 'buttonShow':''}}" bindtap="showLeft" style="top:{{(systemInfo.windowHeight * 55) / 100}}px;background-color:{{innerFilter?'rgba(255, 68, 0,.6)':'rbga(0,0,0,.6)'}}">
<view class="column" hover-class="none" style="word-wrap: break-word;" hover-stop-propagation="false">智能匹配</view>
@ -1104,4 +1075,17 @@
</view>
</view>
</view>
<view class="pabtm" wx:if="{{!whichOneShow && false}}" style="top:{{(systemInfo.windowHeight - 200)}}px">
<!-- <view class="typeChange" catchtap="choosenTop" data-id="{{toped == 2 ? 1 : 2}}" hover-class="none" hover-stop-propagation="false">
<image class style="border-radius: 70px;width:36px;height:28px;display:{{toped == 1 ? 'block' : 'none'}}" src="{{'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/biao1.svg'}}" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<image class style="border-radius: 70px;width:36px;height:28px;display:{{toped == 2 ? 'block' : 'none'}}" src="{{'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/jian1.svg'}}" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
</view>-->
<!-- catchtap="golistSharePage" -->
<view class="typeChange vsb" bindtap="showLeft">
<!-- <image class src="../../assets/images/znpp.svg" wx:if="{{!smartSearch}}" style="width:22px;height:22px;" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>
<image class src="../../assets/images/znpp1.svg" wx:else style="width:22px;height:22px;" mode="aspectFit|aspectFill|widthFix" binderror bindload></image>-->
<view class="f10 lh1 mb2" selectable="false" space="false" decode="false">批量</view>
<view class="f10 lh1" hover-class="none" hover-stop-propagation="false">分享</view>
</view>
</view>
</view>

@ -1643,14 +1643,15 @@ Page({
// });
// index++;
// }, 5000);
console.log('this.data.templateList', app.globalData.templateList);
if (app.globalData.templateList) {
app.globalData.templateList.forEach((element) => {
console.log(element);
if (element.title == "伯才小程序首页海报分享封面") {
if (element.title == "稻田小程序首页海报分享封面") {
this.setData({
sharelImg: element.img,
});
console.log(this.data.sharelImg);
console.log('this.data.sharelImg', this.data.sharelImg);
}
});
}
@ -2019,9 +2020,9 @@ Page({
console.log(that.data.storeJobListSearchForm);
// /yishoudan/store/job/platform/list
// /overall/store/job/list
customRequest("/yishoudan/store/job/platform/list", { header: 'headers', method: 'POST', data: that.data.storeJobListSearchForm }).then((res) => {
console.log('res',res);
let data = res.data.data.pageBean
customRequest("/yishoudan/custom/job/listV2", { header: 'headers', method: 'POST', data: that.data.storeJobListSearchForm }).then((res) => {
console.log('res', res);
let data = res.data.data
that.setData({
totalPage: data.pageCount,
currPage: data.currentPage,
@ -2032,6 +2033,49 @@ Page({
triggered: false,
});
}, 1000);
data.recordList.forEach((item, index) => {
console.log('item,item', item);
if (app.isNotEmptyCheck(item.logo)) {
item["logo"] = item.logo.indexOf("https") > -1 ? item.logo : item.logo.replace("http:", "https:");
}
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee / 100);
} else {
item["fuWuFei"] = "";
}
item.minMonthlyPay = item.minMonthlyPay / 100
item.maxMonthlyPay = item.maxMonthlyPay / 100
if (item.jobSpecialLabelNames && item.jobSpecialLabelNames.length > 0) {
item.labelGroup = item.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
return inx < 6
}).map(itm => {
return itm
})
} else {
item.labelGroup = [];
}
// 简版弹窗通告显示
// if (item.id == that.data.currentJobDrawer.id) {
// item["jobDesp"] = item.jobDesp.replace(/\*\*\*\*\*/g, "").split("————————")[0];
// 展示用字段
// item["jobDesp1"] = item.jobDesp.replace("⚠", "<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
// item["jobDesp1"] = item.jobDesp1.replace("[红包]", "<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
that.data.currentJobDrawer = { ...item, index: that.data.currentJobDrawer.index ? that.data.currentJobDrawer.index : null };
// }
// if (index == 0 || index == 1 || index == 2) {
// that.data.checkedList.push(item);
// }
try {
that.data.checkedList.forEach((item1, index1) => {
if (item1.id == item.id) {
item.checked = true;
throw Error;
} else {
item.checked = false;
}
});
} catch (error) { }
});
if (data.recordList == null || data.recordList.length == 0 || data.recordList.length < that.data.storeJobListSearchForm.pageSize) {
var jobListTemp = commonUtil.disposeJobListData(data.recordList);
that.data.recordList = that.data.recordList.concat(jobListTemp);
@ -2060,38 +2104,7 @@ Page({
resolve();
that.getTag();
that.data.recordList.forEach((item, index) => {
// console.log(item);
if (app.isNotEmptyCheck(item.logo)) {
item["logo"] = item.logo.indexOf("https") > -1 ? item.logo : item.logo.replace("http:", "https:");
}
if (app.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == "0" || item.returnFee == "0") {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee);
} else {
item["fuWuFei"] = "";
}
// 简版弹窗通告显示
// if (item.id == that.data.currentJobDrawer.id) {
item["jobDesp"] = item.jobDesp.replace(/\*\*\*\*\*/g, "").split("————————")[0];
// 展示用字段
item["jobDesp1"] = item.jobDesp.replace("⚠", "<i class='t-icon t-icon-zhuyi' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
item["jobDesp1"] = item.jobDesp1.replace("[红包]", "<i class='t-icon t-icon-hongbao' style='margin-bottom:-2px;width:17px;height:17px;background-repeat:no-repeat;background-size:100% 100%'></i>");
that.data.currentJobDrawer = { ...item, index: that.data.currentJobDrawer.index ? that.data.currentJobDrawer.index : null };
// }
// if (index == 0 || index == 1 || index == 2) {
// that.data.checkedList.push(item);
// }
try {
that.data.checkedList.forEach((item1, index1) => {
if (item1.id == item.id) {
item.checked = true;
throw Error;
} else {
item.checked = false;
}
});
} catch (error) { }
});
that.setData({
recordList: that.data.recordList,
currentJobDrawer: that.data.currentJobDrawer,
@ -2263,7 +2276,7 @@ Page({
titleSize = 40;
roundRectHeight = 156;
ageTop = 62;
salaryClassifyValueLeft = 56;
salaryClassifyValueLeft = 6;
salaryClassifyValueTop = 10;
monthlyPaySize = 32;
console.log(123);
@ -2323,11 +2336,12 @@ Page({
monthlyPaySize = 2 * 24;
markTop = 2 * 115;
console.log(123);
console.log('app.globalData.ip + that.data.currCode', app.globalData.ip + that.data.currCode);
wx.getImageInfo({
// src: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/qrcode.png", //网络图片,如果不行请换一个
src: app.globalData.ip + that.data.currCode,
success (res) {
// console.log(res);
console.log('setShareImg', res);
const img = canvas.createImage();
img.src = res.path;
img.onload = () => {
@ -2339,38 +2353,33 @@ Page({
funObj.roundRect1(ctx, QRLeft - 10, baseTop + QRTop - 10, QRSize + 20, QRSize + 20, 0, "#fff");
funObj.roundRect(ctx, img, QRLeft, baseTop + QRTop, QRSize, QRSize, 0);
}
// if (index == that.data.checkedList.length - 1) {
// setTimeout(() => {
// imgres();
// }, 200);
// }
};
},
fail (err) {
},
});
that.data.checkedList.forEach((item, index) => {
let labelLeft = 0;
funObj.roundRect1(ctx, 24 * 2, baseTop - 100 + baseMiddle * index, 1104, roundRectHeight, 32, "#fff");
if (item.jobSpecialLabelNameArray.length > 0) {
item.jobSpecialLabelNameArray.forEach((item1) => {
funObj.fillTextLineBreak(ctx, item1, 60 * 2 + labelLeft, baseTop + markTop + 30 * 2 + baseMiddle * index, 400 * 2, 20, "#333", monthlyPaySize); // 标签字符
funObj.roundRect1(ctx, 52 * 2 + labelLeft, baseTop + markTop + baseMiddle * index, ctx.measureText(item1).width + 16 * 2, 40 * 2, 2 * 2, "#00000010"); // 标签背景色
labelLeft += ctx.measureText(item1).width + 32 * 2;
});
} else {
funObj.fillTextLineBreak(ctx, '暂无特色', 60 * 2, baseTop + markTop + 30 * 2 + baseMiddle * index, 400 * 2, 20, "#333", monthlyPaySize); // 标签字符
funObj.roundRect1(ctx, 52 * 2, baseTop + markTop + baseMiddle * index, ctx.measureText('暂无特色').width + 16 * 2, 40 * 2, 2 * 2, "#00000010"); //
}
funObj.fillTextLineBreak(ctx, item.jobName, logoLeft, baseTop + baseMiddle * index, 500 * 2, 20, "#333", titleSize, "600"); // 岗位标题
funObj.fillTextLineBreak(ctx, item.salaryClassifyValueHaibao, salaryClassifyValueLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#1890ff", titleSize - 4, "600"); // 时薪
funObj.fillTextLineBreak(ctx, item.salaryClassifyValueHaibao, logoLeft, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#1890ff", titleSize - 4, "600"); // 时薪
// setTimeout(() => {
funObj.fillTextLineBreak(ctx, item.monthlyPay, salaryClassifyValueLeft + ctx.measureText(item.salaryClassifyValueHaibao + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#1890ff", monthlyPaySize, "400"); // 月工资
funObj.fillTextLineBreak(ctx, item.monthlyPay, logoLeft + ctx.measureText(item.salaryClassifyValueHaibao + " ").width, baseTop + salaryClassifyValueTop + baseMiddle * index, 400 * 2, 20, "#1890ff", monthlyPaySize, "400"); // 月工资
// }, 0);
funObj.fillTextLineBreak(ctx, item.district, salaryClassifyValueLeft, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); // 省市
funObj.fillTextLineBreak(ctx, item.district, logoLeft, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); // 省市
funObj.fillTextLineBreak(ctx, " | " + item.age, salaryClassifyValueLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); // 年龄
funObj.fillTextLineBreak(ctx, " | " + item.age, logoLeft + ctx.measureText(item.district).width, baseTop + ageTop + baseMiddle * index, 500 * 2, 20, "#333", monthlyPaySize); // 年龄
funObj.fillTextLineBreak(ctx, that.data.userInfo.agencyName, mycenter - ctx.measureText(that.data.userInfo.agencyName).width / 2, fubiaotiTop, 400 * 2, 20, "#fff", monthlyPaySize, "600"); // 代理名称
@ -2383,30 +2392,51 @@ Page({
funObj.fillTextLineBreak(ctx, "好工作 放心干", bottomSloganLeft1, baseTop + bottomSloganTop1, 500 * 2, 20, "#fff", titleSize); // 底部slogan
}
//生成logo图片
wx.getImageInfo({
src: item.logo, //网络图片,如果不行请换一个
success (res) {
// console.log(res);
const img = canvas.createImage();
// console.log(ctx);
img.src = res.path;
img.onload = () => {
// setTimeout(() => {
funObj.roundRect(ctx, img, logoLeft, baseTop + 40 + baseMiddle * index, logoSize, logoSize, 8);
// }, 500);
if (index == that.data.checkedList.length - 1) {
setTimeout(() => {
imgres(canvas);
}, 100);
}
}, 200);
}
// wx.getImageInfo({
// src: item.logo, //网络图片,如果不行请换一个
// success (res) {
// // console.log(res);
// const img = canvas.createImage();
// // console.log(ctx);
// img.src = res.path;
// img.onload = () => {
// // setTimeout(() => {
// funObj.roundRect(ctx, img, logoLeft, baseTop + 40 + baseMiddle * index, logoSize, logoSize, 8);
// // }, 500);
// if (index == that.data.checkedList.length - 1) {
// setTimeout(() => {
// imgres(canvas);
// }, 100);
// }
// };
// },
// fail (err) {
// console.log(err);
// },
// });
});
// if (index == that.data.checkedList.length - 1) {
// setTimeout(() => {
// imgres();
// }, 200);
// }
};
},
fail (err) {
console.log(err);
console.log('err', err);
wx.showToast({
title: '生成失败,请重试',
icon: 'none'
})
},
});
});
// setTimeout(() => {
// },500);

@ -283,55 +283,34 @@
<view class="jcenter br8">
<view class="listcontainer" style="border-top: 1px solid #f3f3f3;">
<view class="jobOne" wx:for="{{recordList}}" hover-start-time="50" hover-stay-time="0" data-info="{{item}}" data-id="{{item.id}}" bindtap="goDetail" wx:key="index" hover-class="{{item.recruitment == '1' ? 'ahover':''}}" style="background-color:{{item.recruitment == '1' ? '#fff':'#f5f5f5'}};border-bottom: {{item.recruitment == '1' ? '':'1px solid #ddd'}};">
<view class hover-class="none">
<view class="jobIn" hover-class="none">
<image style="width: 80px;height: 80px;position: absolute;right: 100px;z-index:99" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" wx:if="{{item.state == 1 && item.recruitment == 2}}"></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="p1020 jobIn" hover-class="none">
<image style="width: 80px;height: 80px;position: absolute;right: 100px;z-index:99" src="http://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/tingzhao.svg" wx:if="{{ item.recruitment == 2}}"></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="prImg">
<view class="por" wx:if="{{item.logo}}">
<span class="f10 ysd-basebg-color tac fw500" style="width:24px;padding:2px;line-height:14px;background: linear-gradient(142deg,#ff7900 10%, #1890ff);position:absolute;right:0;top:4px;border-radius:2px 0 0 2px" hover-class="none" wx:if="{{item.hotJob == 1}}" hover-stop-propagation="false">
<!-- <i class="iconfont icon-dianzan1 f10 cf mr4"></i> -->
<span class="cf">主推</span>
</span>
<image src="{{item.logo || 'https://matripe.oss-cn-beijing.aliyuncs.com/default.png'}}" mode="aspectFit" class="logoClass" alt></image>
</view>
<view class="br4 f14 fsa" wx:else style="width:50px;height:50px;background:#d85043;color:#fff;text-align:center;white-specing:wrap">{{item.brandName}}</view>
<!-- <image class="logoClass" wx:else mode="aspectFit" src="https://matripe.oss-cn-beijing.aliyuncs.com/default.png"></image> -->
<button wx:if="{{isLogin && hasUserInfo - 0 == 0}}" class="collect biggerSize2 v-center {{item.collected - 1 == 0 ? 'collectred':''}}" open-type="getUserInfo" catchtap="getUserInfoBtn" data-type="4" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang lh12" style="color: #888" wx:if="{{item.collected - 2 == 0}}"></icon>
<icon class="iconfont icon-yishoucang lh12 ysd-base-color" style wx:else></icon>
<text class="f10 {{item.collected - 1 == 0 ? 'ysd-base-color':'c8'}}" style="line-height: 36px; margin-left: 2px">{{item.collected - 2 == 0 ? '收藏' : '已收藏'}}</text>
</button>
<button wx:if="{{isLogin && hasUserInfo - 1 == 0}}" class="collect biggerSize v-center {{item.collected - 1 == 0 ? 'collectred':''}}" catchtap="collectPaste" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang lh12" style="color: #888" wx:if="{{item.collected - 2 == 0}}"></icon>
<icon class="iconfont icon-yishoucang lh12 ysd-base-color" style wx:else></icon>
<text class="f10 {{item.collected - 1 == 0 ? 'ysd-base-color':'c8'}}" style="line-height: 12px; margin-left: 2px">{{item.collected - 2 == 0 ? '收藏' : '已收藏'}}</text>
</button>
<button wx:if="{{!isLogin}}" class="collect biggerSize" open-type="getPhoneNumber" catchgetphonenumber="getPhoneNumber" catchtap="stoptap" data-collected="{{item.collected}}" data-jobid="{{item.id}}" hover-stop-propagation>
<icon class="iconfont icon-shoucang" style="color: #888"></icon>
<text class="f10 c8" style="line-height: 18px; margin-left: 2px">收藏</text>
</button>
</view>
<view class="flex-1 vsb">
<view class="display-flex">
<view class="fsa">
<view class="storeName">{{item.jobName || item.aliasName}}</view>
<!-- <view class="hourPay">{{item.salaryClassifyValue}}</view> -->
<view class="f14s c045" style="margin-right:32px">{{item.update}}</view>
</view>
<view class="v-center mt8 mb10">
<view class="v-center mt8 mb6">
<view class="f14s c045 flex-1">
<view class="overflowOmit mb8" style="max-width:200px">
{{item.district == "" ?'':item.district + ' | ' }}
<view class="overflowOmit mb8 fss">
<view class="oelps" style="max-width:120px">{{item.district }}</view>
{{item.district ?'丨' :''}}
<block wx:if="{{item.distance != null && item.distance != '' && storeJobListSearchForm.sortTag == 2}}">{{item.distanceKm}}</block>
<block wx:else>{{item.age}}</block>
<block wx:else>{{item.genderRestrict + '丨' + item.age}}</block>
</view>
<scroll-view scroll-x="{{true}}" catchscroll="stoptap" bindtap="stoptap" class="tttg {{item.isTagShow==true ? 'isTagShow':''}}">
<!-- <view class="t-icon t-icon-ziying1 " wx:if="{{item.signType == 1}}" style="background-repeat:no-repeat"></view> -->
<view class="tagsLi" wx:for="{{item.jobSpecialLabelNameArray}}" wx:for-item="item1" wx:key="index" wx:if="{{(item.hotJob == 1 && index <= 1) || item.hotJob ==2}}">{{item1}}</view>
<view class="tagsLi" wx:if="{{item.jobSpecialLabelNameArray.length <= 0}}">暂无特色</view>
<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>
</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>-->
</scroll-view>
<!-- <view class="fr f14s c633 fw400">{{item.monthlyPay}}</view> -->
</view>
@ -340,59 +319,49 @@
<view class>
<view class="hourPay" wx:if="{{item.salaryClassify == 0}}">
<span class="f14">¥</span>
<span class="f18">{{item.salaryClassifyValue}}</span>
<span class="f22">{{item.salaryClassifyValue}}</span>
<span class="f12">/时</span>
</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 1}}">
<span class="f14">¥</span>
<span class="f18">{{item.salaryClassifyValue}}</span>
<span class="f22">{{item.salaryClassifyValue}}</span>
<span class="f12">/天</span>
</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 2}}">
<span class="f14">¥</span>
<span class="f18">{{item.salaryClassifyValue}}</span>
<span class="f22">{{item.salaryClassifyValue}}</span>
<span class="f12">补</span>
</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 3}}">
<span class="f14">¥</span>
<span class="f18">{{item.salaryClassifyValue}}</span>
<span class="f22">{{item.salaryClassifyValue}}</span>
<span class="f12">返</span>
</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 4}}">计件</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 5}}">
<span class="f14">¥</span>
<span class="f18">{{item.salaryClassifyValue}}</span>
<span class="f22">{{item.salaryClassifyValue}}</span>
<span class="f12">保底</span>
</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 6}}">面议</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 7}}">{{'¥'+item.monthlyPay}}</view>
<view class="hourPay" wx:if="{{item.salaryClassify == 7}}">
<span class="f14">¥</span>
<span class="f22">{{item.monthlyPay}}</span>
<span class="f12">/月</span>
</view>
<view class="fsa f12 pr4" style="background: linear-gradient(138deg,#fde0ad 22%, #fac474); border-radius:2px;color:#754300" wx:if="{{!isLogin}}" catchtap="goLogin">
<image class="mr2" style="width:18px;height:16px" src="../../assets/images/fee.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>登录查看
</view>
<view class="fsa f12 pr4" style="background: linear-gradient(138deg,#fde0ad 22%, #fac474); border-radius:2px;color:#754300" wx:else>
<view class="fsa f12 pr4" style="background: linear-gradient(138deg,#fde0ad 22%, #fac474); border-radius:2px;color:#754300;line-height:20px">
<view class>
<image class="mr4" style="width:18px;height:16px" src="../../assets/images/fee.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
</view>
{{agencyStatus == 1 ? (item.fuWuFei ? item.fuWuFei : '-') : '仅代理可见'}}
</view>
</view>
</view>
</view>
<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="pt8 pb8 pl10 pr10 fsa">
<view class="br2 fss" style="background: #f1faff;">
<view class="tac" style="width:33px;height:22px">
<image class style="width:100%;height:100%" src="../../assets/images/xmf.svg" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror bindload></image>
<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="f12 pl4 pr4" style="color:#646572" hover-class="none" hover-stop-propagation="false">{{item.agencyName || '-'}}</view>
</view>
<view class="fse" hover-class="none" hover-stop-propagation="false">
<!-- <view class="ml8" wx:for="{{4}}" style="background:pink;width:18px;height:18px" hover-class="none" hover-stop-propagation="false"></view> -->
</view>
</view>
</view>
<view class="checkbox" style="" hover-class="none" hover-stop-propagation="false">
<view class="checkbox" style hover-class="none" hover-stop-propagation="false">
<!-- disabled="{{checkedList.length >= 3 && !item.checked}}" -->
<checkbox class="biggerSize2" data-item="{{item}}" catchtap="checkJob" style="transform: scale(0.8,0.8)" value="{{item.age}}" color="var(--color-ysd)" checked="{{item.checked}}" />
</view>

@ -1135,6 +1135,7 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
}
.drawer.showDrawer {
/* position: relative; */
opacity: 1;
border-radius: 8px 8px 0 0;
width: 100vw;
height: 92vh;

@ -263,5 +263,5 @@
]
}
},
"libVersion": "2.33.0"
"libVersion": "3.7.8"
}
Loading…
Cancel
Save