伯才工作添加我的页面职位

cyl/develop
wangxia 1 year ago
parent 2ebca03d50
commit 7bce7ab052

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1741599346258" class="icon" viewBox="0 0 2184 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="15491" xmlns:xlink="http://www.w3.org/1999/xlink" width="136.5" height="64"><path d="M341.333333 0h1843.2v682.666667c0 188.5184-152.814933 341.333333-341.333333 341.333333H0V341.333333C0 152.814933 152.814933 0 341.333333 0z" fill="#FF000D" p-id="15492"></path><path d="M342.698667 281.941333l4.096-34.816h-90.112l12.288-91.136h425.984L682.666667 247.125333h-107.52l-4.096 34.816h90.112l-36.864 262.144H493.226667l-7.168 50.176h129.024l-13.312 97.28H472.746667l-8.192 62.464h147.456l-13.312 98.304H170.666667l13.312-98.304h126.976l8.192-62.464h-104.448l13.312-97.28h104.448l7.168-50.176h-109.568l36.864-262.144h75.776z m523.264 589.824l65.536-464.896H826.026667l-17.408 87.04h95.232l-11.264 155.648h-99.328l7.168-113.664-45.056 226.304 108.544-9.216-14.336 100.352-245.76 17.408 114.688-614.4h-20.48l14.336-98.304h391.168l-14.336 98.304H855.722667l-11.264 60.416h228.352l-63.488 455.68h14.336L1042.090667 750.933333l-17.408 120.832h-158.72zM541.354667 378.197333l-10.24 70.656h35.84l10.24-70.656h-35.84z m-125.952 70.656h30.72l10.24-70.656h-30.72l-10.24 70.656z m-80.896 0l10.24-70.656h-29.696l-10.24 70.656h29.696z m105.472-166.912h30.72l4.096-34.816h-30.72l-4.096 34.816zM1674.922667 155.989333l-30.72 97.28h74.752l11.264-77.824L1696.426667 136.533333h194.56l-16.384 116.736h136.192l-12.288 87.04h-136.192l-13.312 98.304h155.648l-12.288 87.04h-97.28l-11.264 77.824h77.824l45.056-38.912-22.528 155.648H1711.786667l27.648-194.56h-59.392l-84.992 194.56h-155.648l84.992-194.56h-76.8l12.288-87.04h233.472l13.312-98.304h-89.088l-14.336 49.152h-136.192l61.44-199.68-28.672-33.792h175.104zM1148.586667 856.405333l52.224-97.28 49.152-350.208h-38.912l13.312-97.28h214.016l-56.32 405.504 140.288 41.984h476.16l-13.312 97.28H1440.426667l-100.352-29.696-16.384 29.696H1148.586667zM1402.538667 155.989333l41.984 116.736h-155.648l-41.984-116.736h155.648z" fill="#FFFFFF" p-id="15493"></path></svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

@ -35,8 +35,13 @@ Component({
loginUserInfo: {
type: Object,
value: {}
},
type: {
type: String,
value: ''
}
},
lifetimes: {
attached: function () {

@ -8,7 +8,7 @@
<view class="flex-1 vsb">
<view class="fsa">
<view class="fss">
<view class="markTag {{item.picked ? 'zhenxuan' : 'sanfang'}}">{{item.picked ? '甄选' : '三方'}}</view>
<image wx:if="{{item.picked}}" class="mr4" style="height:16px;width:32px" src="../../assets/images/zhen.svg"></image>
<view class="storeName fss">{{item.jobName || item.aliasName}}</view>
</view>
<view class="f14s c045">{{item.update}}</view>

@ -1,12 +1,16 @@
// pages/mine/mine.js
const app = getApp();
import { timeShowXXX } from "../../utils/dateUtil";
const commonUtil = require("../../utils/commonUtil.js");
import { customRequest } from '../../utils/request.js';
Page({
/**
* 页面的初始数据
*/
data: {
appId: app.globalData.appId,
isopen: 1, // 账户余额是否显示
iosDialog: false,
iosDialogTobe: false,
@ -27,7 +31,42 @@ Page({
recordBillType: "",
configInfo: {},
teamList: [],
drawerShow: false
drawerShow: false,
tabGroup: [
{
name: '全部',
key: '0',
picked: ''
},
{
name: '在招中',
key: '1',
picked: '1'
},
{
name: '已停招',
key: '2',
picked: '0'
},
],
choiceCollect: '0',
storeJobListSearchForm: {
pageNum: 1,
pageSize: 20,
classify: 1,
sex: -1,
workTypeStr: "",
lat: "",
lng: "",
jobClassify: "",
sortTag: 0,
jobRequestLabelIds: "",
cityName: "",
brandIds: "",
jobCategoryLabelIds: "",
ucj: 0,
},
recordList: []
// agencyStatus: 0, // 是否是代理判断
},
@ -48,6 +87,7 @@ Page({
});
if (app.globalData.isLogin) {
this.getTeamList()
this.getJobList()
}
}, 100);
@ -274,15 +314,6 @@ Page({
// }
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () { },
/**
* 用户点击右上角分享
@ -467,4 +498,163 @@ Page({
modalMove () {
return false;
},
collectChange (e) { // if (that.data.isLogin || (!that.data.isLogin && e.currentTarget.dataset.item.key == 0)) {
let that = this
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 = item.key;
that.data.storeJobListSearchForm.picked = item.picked;
that.data.storeJobListSearchForm.pageNum = 1;
that.setData({
choiceCollect: that.data.choiceCollect,
storeJobListSearchForm: that.data.storeJobListSearchForm,
recordList: [],
hasMoreData: true,
});
that.getJobList();
}
},
getJobList ($type) {
let that = this
customRequest("/yishoudan/custom/job/listV2", {
method: 'post',
header: 'headers',
data: {
...that.data.storeJobListSearchForm,
// recruitment: 1
}
}).then((res) => {
console.log("职位列表↓↓↓↓");
console.log(res);
if ($type == 'search') {
that.setData({
// isSwiper: true,
// inputVal: ''
})
}
let data = res.data.data
that.setData({
totalPage: data.pageCount,
currPage: data.currentPage,
});
setTimeout(function () {
that.setData({
triggered: false,
});
}, 1000);
if (data.recordList) {
data.recordList.forEach((i) => {
i.minMonthlyPay = i.minMonthlyPay / 100
i.maxMonthlyPay = i.maxMonthlyPay / 100
if (i.jobSpecialLabelNames && i.jobSpecialLabelNames.length > 0) {
i.labelGroup = i.jobSpecialLabelNames.split(', ').filter((itm, inx) => {
return inx < 6
}).map(itm => {
return itm
})
} else {
i.labelGroup = [];
}
})
}
if (
data.recordList == null ||
data.recordList.length == 0 ||
data.recordList.length <
that.data.storeJobListSearchForm.pageSize
) {
console.log('from 搜索')
var jobListTemp = commonUtil.disposeJobListData(
data.recordList
);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: false,
isTrigger: false,
});
} else {
console.log('from 其他')
var jobListTemp = commonUtil.disposeJobListData(
data.recordList
);
that.data.recordList = that.data.recordList.concat(jobListTemp);
that.setData({
recordList: that.data.recordList,
hasMoreData: true,
isTrigger: false,
});
}
that.setData({
loading: false,
pageShow: true,
storeJobListSearchForm: that.data.storeJobListSearchForm,
});
that.data.recordList.forEach((item, index) => {
// console.log(item);
// item.logoStr = item.jobName.slice(0,2)
if (
app.isNotEmptyCheck(item.returnFeeType) ||
item.returnFeeType == "0" ||
item.returnFee == "0"
) {
item["fuWuFei"] = commonUtil.getReturnFeeTypeName1ById(
item.returnFeeType,
item.returnFee / 100
);
} 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,
};
}
});
console.log(' that.data.recordList', that.data.recordList);
that.setData({
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,
// });
// } else {
// that.setData({
// hasMoreData: false,
// });
// }
})
}
});

@ -1,6 +1,8 @@
{
"usingComponents": {
"bottom-drawer": "../../components/bottom-drawer/index"
"bottom-drawer": "../../components/bottom-drawer/index",
"job-sub": "../../components/job-sub/index"
},
"navigationBarTitleText": "我的",
"navigationBarBackgroundColor": "#fff",

@ -1,6 +1,8 @@
<!-- pages/mine/mine.wxml -->
<view class="container">
<scroll-view bindscrolltolower="onScrollToLower" style="height:calc(100vh)" enable-passive scroll-x="{{false}}" scroll-y="{{true}}">
<view class="pl10 pr10" hover-class="none" hover-stop-propagation="false">
<navigator class target url="/pages/userDetail/index" hover-class="none" open-type="navigate" wx:if="{{isLogin}}">
<view class="userinfobox">
<view class="userinfo">
@ -196,7 +198,7 @@
</view>
</view>
<!-- 我的老乡 -->
<view class="mt10 mb10 myTownsman" wx:if='{{false}}'>
<view class="mt10 mb10 myTownsman" wx:if="{{false}}">
<view class="bgf br8 container" style="padding: 0;">
<navigator class="pl16 pr10 bb1" hover-class="thover" url="{{isLogin? '../townsMan/index?state=0': '/pages/login/index'}}">
<view class="f16 c3 fwb fl" style="line-height:44px;">我的老乡</view>
@ -364,9 +366,7 @@
<view style="flex: 1;" class="g_flex_column_center">
<view class="g_flex_row_end" style="width: 100%;position: relative;top: 3px;">
<view class="g_flex_column_center g_flex_1">
<view class="g_flex_1 g_ell_1" style="text-align: right;">
{{userInfo.agencyName || '-'}}
</view>
<view class="g_flex_1 g_ell_1" style="text-align: right;">{{userInfo.agencyName || '-'}}</view>
</view>
<view class="g_flex_column_center g_flex_none">
<view class="iconfont icon-gengduo11 f16 c9 ml4 mt2"></view>
@ -388,7 +388,7 @@
</view>
</navigator>
<!-- style="margin-bottom: 200px;" -->
<navigator class="mb32" hover-class target url="{{isLogin? '/pages/setting/index': '/pages/login/index'}}">
<navigator class="mb12" hover-class target url="{{isLogin? '/pages/setting/index': '/pages/login/index'}}">
<view class="br_8" hover-class="none" style="background-color:#fff" hover-stop-propagation="false">
<view class="setting mt_10" hover-class="thover">
<view>
@ -400,13 +400,25 @@
</view>
</view>
</navigator>
</view>
<view class wx:if="{{appId == 'wxe431e0b3abd9ae0b'}}" hover-class="none" hover-stop-propagation="false">
<view class="tab_container fsa sticky" hover-class="none" hover-stop-propagation="false">
<view wx:for="{{tabGroup}}" class="tarbar" style="margin-right: 24px;text-align:center" 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>
<view class="mt12" hover-class="none" hover-stop-propagation="false">
<job-sub storeJobListSearchForm="{{storeJobListSearchForm}}" type="main" recordList="{{recordList}}" isLogin="{{isLogin}}" agencyStatus="{{userInfo.agencyStatus}}" hasUserInfo="{{hasUserInfo}}" loginUserInfo="{{userInfo}}"></job-sub>
</view>
</view>
<!-- <view class="login" wx:if="{{!isLogin}}">
<navigator class="" target="" url="../login/index" hover-class="none" open-type="navigate">
<button class="loginBtn" style="font-weight:400;margin-top:0px;" type="primary" role="button" bindtap=''>登录</button>
</navigator>
</view>-->
</view>
</scroll-view>
<view aria-role="dialog" aria-modal="true" catchtouchmove="modalMove" class="fadeIn" wx:if="{{iosDialog}}">
<view class="weui-mask"></view>
@ -482,3 +494,4 @@
<!-- </radio-group> -->
</scroll-view>
</bottom-drawer>
</view>

@ -1,10 +1,12 @@
/* pages/mine/mine.wxss */
/* @import "../../appcommon.wxss"; */
page {
height: 90vh;
/* margin-top: 10px; */
}
.container {
padding: 10px;
/* height: 100vh; */
padding: 10px 0;
overflow: auto;
}
.container .no_login {
display: flex;
@ -372,5 +374,40 @@ page {
padding: 16px 0;
color: var(--color-ysd);
}
.tab_container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px;
margin: 0 10px;
background-color: #fff;
border-radius: 8px;
}
.sticky {
position: sticky;
top: 0px;
left: 0;
z-index: 100;
}
.collectActive {
color: #1890ff;
font-weight: 601;
position: relative;
}
.collectActive::after {
content: "";
background: #1890ff;
height: 3px;
width: 32px;
position: absolute;
bottom: -6px;
left: 50%;
transform: translateX(-50%);
}
.tarbarText {
font-size: 16px;
font-weight: 400;
color: #666666;
/* line-height: 25px; */
}

@ -44,7 +44,7 @@
"tabIndent": "insertSpaces",
"tabSize": 2
},
"appid": "wxb0dea4d11428c6a5",
"appid": "wxe431e0b3abd9ae0b",
"packOptions": {
"ignore": [],
"include": []

Loading…
Cancel
Save