提交 f695d9ef 作者: 王定

feat: 基本完成找人干活的新增发布功能

上级 7735899f
...@@ -7,7 +7,62 @@ enum Api { ...@@ -7,7 +7,62 @@ enum Api {
employmentDetails = '/employment/queryById', // 查看用工详情 employmentDetails = '/employment/queryById', // 查看用工详情
employmentEdit = '/employment/app/edit', // 编辑用工 employmentEdit = '/employment/app/edit', // 编辑用工
employmentRegister = '/employment/app/register', // 报名用工 employmentRegister = '/employment/app/register', // 报名用工
queryConditions = '/sys/region/queryConditions', // 组合条件查询市——村
gitListByCodeDict = '/sys/dictItem/listByCode', // 查询字典
queryByCategoryAndCode = '/sys/labelCategory/queryByCategoryAndCode', // 查询字典
postLaborAdd = '/server/labor/add', // 新增
}
/**
* @param params 请求参数
* @description: 找人干活发布 新增
*/
export function postLaborAdd(params = {}) {
return otherHttp.post({
url: Api.postLaborAdd,
params,
})
}
/**
* @param params 查询指定分类和编码下的子类
* @description: 找人干活发布 获取人员技能
*/
export function queryByCategoryAndCode(params = {}) {
return otherHttp.get({
url: Api.queryByCategoryAndCode,
params,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
})
}
/**
* @param params 请求参数
* @description: 找人干活发布 获取字典值
*/
export function gitListByCodeDict(params = {}) {
return otherHttp.get({
url: Api.gitListByCodeDict,
params,
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
})
} }
/**
* @param params 请求参数
* @description: 找人干活发布 获取到村
*/
export function queryConditions(params = {}) {
return otherHttp.post({
url: Api.queryConditions,
params,
})
}
/** /**
* @param params 请求参数 * @param params 请求参数
* @description: 用工列表 * @description: 用工列表
......
...@@ -47,3 +47,26 @@ ...@@ -47,3 +47,26 @@
.align-center{ .align-center{
align-items: center; align-items: center;
} }
.yr_person_popup{
padding-top: 36rpx;
padding-left: 26rpx;
padding-right: 24rpx;
padding-bottom: 48rpx;
.popup_top{
display:flex;
justify-content: space-between;
.add_person_text{
color: #333333;
font-size: 28rpx;
}
.del_person_btn{
font-size: 28rpx;
color: #FF8063;
}
}
.popup_content{
}
}
...@@ -414,6 +414,19 @@ ...@@ -414,6 +414,19 @@
} }
}, },
{ {
"path": "pages/linghuoyonggong/publishEmployment",
"style": {
"navigationBarTitleText": "发布",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#5DB66F",
"navigationBarTextStyle": "white",
"backgroundColorBottom": "#F2F2F2",
"app-plus": {
"titleNView": {}
}
}
},
{
"path": "pages/linghuoyonggong/details", "path": "pages/linghuoyonggong/details",
"style": { "style": {
"navigationBarTitleText": "详情", "navigationBarTitleText": "详情",
......
...@@ -226,8 +226,12 @@ ...@@ -226,8 +226,12 @@
} }
// 发布用工 // 发布用工
function handlePublish() { function handlePublish() {
if(pageData.currentEmploymentId === 2){
Navigate.to('/pages/linghuoyonggong/publishEmployment')
}else{
Navigate.to('/pages/linghuoyonggong/form') Navigate.to('/pages/linghuoyonggong/form')
} }
}
// 获取时间差 // 获取时间差
function getDaysDiff(date1: Date | number | string, date2: Date | number | string): number { function getDaysDiff(date1: Date | number | string, date2: Date | number | string): number {
// 将输入转换为Date对象 // 将输入转换为Date对象
...@@ -251,6 +255,12 @@ ...@@ -251,6 +255,12 @@
return diffDays return diffDays
} }
function onSearch(res:any){
uni.showToast({
title: '搜索:' + res.value,
icon: 'none'
})
}
onReachBottom(() => { onReachBottom(() => {
console.log('触底了') console.log('触底了')
if (pageData.total <= pageData.employmentList.length) { if (pageData.total <= pageData.employmentList.length) {
...@@ -273,7 +283,6 @@ ...@@ -273,7 +283,6 @@
<template> <template>
<view class="codefun-flex-col page"> <view class="codefun-flex-col page">
<!-- <fui-search-bar></fui-search-bar> -->
<view class="codefun-flex-col codefun-self-stretch"> <view class="codefun-flex-col codefun-self-stretch">
<!-- <view class="codefun-mt-14 codefun-flex-row group_2 gap-2"> <!-- <view class="codefun-mt-14 codefun-flex-row group_2 gap-2">
<view <view
...@@ -290,6 +299,9 @@ ...@@ -290,6 +299,9 @@
</view> --> </view> -->
<view class="codefun-mt-14 codefun-flex-col group_3"> <view class="codefun-mt-14 codefun-flex-col group_3">
<view class="top-search-view">
<uni-search-bar radius="100" placeholder="请输入搜索内容" clearButton="auto" cancelButton="none" @confirm="onSearch" />
</view>
<view class="codefun-flex-row section_2"> <view class="codefun-flex-row section_2">
<view <view
v-for="tab in pageData.employmentTabs" v-for="tab in pageData.employmentTabs"
...@@ -431,6 +443,10 @@ ...@@ -431,6 +443,10 @@
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
height: calc(100vh - 88rpx); height: calc(100vh - 88rpx);
.top-search-view{
height: 64rpx;
}
.section { .section {
padding: 26rpx 28rpx 26rpx 36rpx; padding: 26rpx 28rpx 26rpx 36rpx;
background-color: #5db66f; background-color: #5db66f;
...@@ -520,7 +536,13 @@ ...@@ -520,7 +536,13 @@
.group_3 { .group_3 {
padding: 0 28rpx; padding: 0 28rpx;
height: 685rpx; height: 685rpx;
.top-search-view{
.uni-searchbar{
padding: 0rpx !important;
}
}
.section_2 { .section_2 {
margin-top: 48rpx;
padding-bottom: 8rpx; padding-bottom: 8rpx;
background-color: #ffffff66; background-color: #ffffff66;
border-radius: 32rpx; border-radius: 32rpx;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论