Commit 803ad51c by 张立顺

Merge branch 'SAAS+V5.3.0-1117' of http://192.168.3.233:8090/saas_plus/dj-car-bo…

…utique-work-wechat into SAAS+V5.3.0-1117
2 parents d7d7c642 5ea15350
// tabWorkOrder/pages/mentorshipManage/components/saleTypeSelectPopup/saleTypeSelectPopup.js
import { saleTypeList } from '../../constantData'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
Component({
/**
* 组件的属性列表
*/
properties: {
selected: {
type: String,
observer: function(n) {
let { saleTypeList } = this.data
saleTypeList.map(i => {
i.active = false
if (n?.includes(i.confId)) {
i.active = true
}
return i
})
this.setData({
saleTypeList
})
}
}
},
/**
* 组件的初始数据
*/
data: {
IMG_URL,
saleTypeList,
show: true
},
/**
* 组件的方法列表
*/
methods: {
changeItem(e) {
let { target } = e.currentTarget.dataset
let { saleTypeList } = this.data
saleTypeList.forEach(i => {
if (i.confId == target?.confId) i.active = !i.active
})
this.setData({
saleTypeList
})
},
confirm() {
let { saleTypeList } = this.data
if (!saleTypeList?.filter(v => v.active)?.length) return wx.$util.showToast('请选择')
this.triggerEvent('confirm', this.data.saleTypeList)
},
hidePopup() {
this.triggerEvent('cancel')
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/mentorshipManage/components/businessSelectPopup/businessSelectPopup.wxss */
.saleTypeList {
width: calc(100% - var(--fontSize50));
display: flex;
align-items: center;
font-size: var(--fontSize28);
padding: 0 var(--fontSize25);
transition: all .5s;
.checked_img{
width: var(--fontSize32);
height: var(--fontSize32);
flex-shrink: 0;
margin-right: var(--fontSize20);
}
.text_box{
flex: 1;
border-bottom: var(--fontSize2) solid #F9F9F9;
height: 100%;
line-height: var(--fontSize98);
}
}
.artificerList.active {
color: #347BFF;
font-weight: 700;
position: relative;
}
\ No newline at end of file \ No newline at end of file
<!--tabWorkOrder/pages/mentorshipManage/components/businessSelectPopup/businessSelectPopup.wxml-->
<popup title="选择" show="{{ show }}" bindconfirm="confirm" height="var(--fontSize500)" bindcancel="hidePopup">
<view class="business-select-popup-box" >
<view class="box">
<block wx:for="{{saleTypeList}}" wx:key="index">
<view class="saleTypeList {{item.active?'active':''}}" bindtap="changeItem" data-target="{{item}}" data-index="{{index}}">
<view class="checked_img">
<image wx:if="{{item.active}}" src="{{IMG_URL}}checked.png"></image>
</view>
<view class="text_box"><view class="text-hide">{{item.confName}}</view></view>
</view>
</block>
</view>
</view>
</popup>
\ No newline at end of file \ No newline at end of file
...@@ -268,12 +268,16 @@ Page({ ...@@ -268,12 +268,16 @@ Page({
}, },
/** /**
* Textarea 输入处理(带字数统计) * Textarea 输入处理(带字数统计)- 禁止空格和换行
*/ */
handleTextareaInput(e) { handleTextareaInput(e) {
const { field } = e.currentTarget.dataset const { field } = e.currentTarget.dataset
const { value } = e.detail let value = e.detail.value
const { formData } = this.data const { formData } = this.data
// 过滤掉空格和换行符
value = value.replace(/[\s\r\n]/g, '')
formData[field] = value formData[field] = value
formData[field + 'Length'] = value.length // 统计字数 formData[field + 'Length'] = value.length // 统计字数
this.setData({ this.setData({
...@@ -286,14 +290,15 @@ Page({ ...@@ -286,14 +290,15 @@ Page({
*/ */
hidePopup() { hidePopup() {
this.setData({ this.setData({
showPopup: false showPopup: false,
timeShow: false
}) })
}, },
/** /**
* 阻止触摸移动事件(防止弹窗背景滚动) * 阻止触摸移动事件(防止弹窗背景滚动)
*/ */
preventTouchMove() { preventTouchMove(e) {
return false return false
}, },
......
...@@ -3,6 +3,10 @@ page { ...@@ -3,6 +3,10 @@ page {
background-color: #F7F8FA; background-color: #F7F8FA;
} }
.container_page { .container_page {
&.page-locked {
height: 90vh;
overflow: hidden;
}
.content_top { .content_top {
height: var(--fontSize138); height: var(--fontSize138);
opacity: 1; opacity: 1;
...@@ -267,6 +271,7 @@ page { ...@@ -267,6 +271,7 @@ page {
justify-content: center; justify-content: center;
font-size: var(--fontSize26); font-size: var(--fontSize26);
cursor: pointer; cursor: pointer;
-webkit-tap-highlight-color: transparent;
// 当只有一个按钮时,自动扩展宽度 // 当只有一个按钮时,自动扩展宽度
&:only-child { &:only-child {
width: var(--fontSize670); width: var(--fontSize670);
...@@ -448,6 +453,7 @@ page { ...@@ -448,6 +453,7 @@ page {
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
font-size: var(--fontSize30); font-size: var(--fontSize30);
cursor: pointer; cursor: pointer;
-webkit-tap-highlight-color: transparent;
} }
.btn_cancel { .btn_cancel {
background: #f7f8fa; background: #f7f8fa;
......
<!--packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml--> <!--packageEquity/pages/recruitManage/recruitDetail/recruitDetail.wxml-->
<!-- 招聘详情 --> <!-- 招聘详情 -->
<glsx-privacy appletName="招聘详情" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="招聘详情" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="container_page"> <view class="container_page {{ showPopup || timeShow ? 'page-locked' : '' }}">
<!-- 顶部数据统计 --> <!-- 顶部数据统计 -->
<view class="content_top"> <view class="content_top">
<view class="statistics"> <view class="statistics">
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
<view class="btn_group"> <view class="btn_group">
<view class="btn btn_outline" bindtap="handleViewResume" data-url="{{item.resumeUrl}}">查看简历</view> <view class="btn btn_outline" bindtap="handleViewResume" data-url="{{item.resumeUrl}}">查看简历</view>
<view wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}">处理</view> <view wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}">处理</view>
<!-- <van-button wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}" plain type="primary">处理</van-button> -->
</view> </view>
</view> </view>
</view> </view>
...@@ -102,10 +103,11 @@ ...@@ -102,10 +103,11 @@
bind:close="hidePopup" bind:close="hidePopup"
lock-scroll="{{true}}" lock-scroll="{{true}}"
round round
catchtouchmove="preventTouchMove"
> >
<view class="popup_content"> <view class="popup_content">
<view class="title">简历处理</view> <view class="title">简历处理</view>
<scroll-view scroll-y style="max-height: var(--fontSize1000);" bindtouchmove="stopPropagation"> <scroll-view scroll-y style="height: var(--fontSize887);" bindtouchmove="stopPropagation">
<view class="form"> <view class="form">
<view class="form_item"> <view class="form_item">
<view class="label">处理结果 <text class="required">*</text></view> <view class="label">处理结果 <text class="required">*</text></view>
...@@ -160,6 +162,7 @@ ...@@ -160,6 +162,7 @@
close-on-click-overlay="{{true}}" close-on-click-overlay="{{true}}"
z-index="10000" z-index="10000"
round round
catchtouchmove="preventTouchMove"
> >
<van-datetime-picker <van-datetime-picker
type="date" type="date"
......
...@@ -34,10 +34,6 @@ Page({ ...@@ -34,10 +34,6 @@ Page({
inputValue: '', inputValue: '',
keyWord: '', // 搜索关键词 keyWord: '', // 搜索关键词
searchTimer: null, // 防抖定时器 searchTimer: null, // 防抖定时器
motto: 'Hello World',
hasUserInfo: false,
canIUseGetUserProfile: wx.canIUse('getUserProfile'),
canIUseNicknameComp: wx.canIUse('input.type.nickname'),
}, },
// 显示popup // 显示popup
async showPopup(e) { async showPopup(e) {
...@@ -236,11 +232,15 @@ Page({ ...@@ -236,11 +232,15 @@ Page({
formList formList
}); });
}, },
// textarea输入变化 // textarea输入变化,禁止空格和换行
onTextareaInput(e) { onTextareaInput(e) {
const index = e.currentTarget.dataset.index; const index = e.currentTarget.dataset.index;
const value = e.detail.value; let value = e.detail.value;
const formList = this.data.formList; const formList = this.data.formList;
// 过滤掉空格和换行符
value = value.replace(/[\s\r\n]/g, '');
// 更新对应项的值 // 更新对应项的值
formList[index].value = value; formList[index].value = value;
formList[index].displayValue = value; formList[index].displayValue = value;
......
{ {
"disableScroll": true,
"usingComponents": { "usingComponents": {
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,7 +9,7 @@ page { ...@@ -9,7 +9,7 @@ page {
overflow-y: hidden; overflow-y: hidden;
} }
.container { .container {
padding: 0 var(--fontSize40); padding: 0 var(--fontSize20);
.title { .title {
color: #292d33; color: #292d33;
height: var(--fontSize80); height: var(--fontSize80);
...@@ -33,14 +33,15 @@ page { ...@@ -33,14 +33,15 @@ page {
height: var(--fontSize104); height: var(--fontSize104);
align-items: center; align-items: center;
border-bottom: var(--fontSize2) solid #eff0f2; border-bottom: var(--fontSize2) solid #eff0f2;
font-size: var(--fontSize28);
.required { .required {
width: var(--fontSize14);
height: var(--fontSize40);
color: #f24724; color: #f24724;
font-size: var(--fontSize28);
text-align: left; text-align: left;
padding-left: var(--fontSize8); padding-left: var(--fontSize8);
line-height: var(--fontSize40); line-height: var(--fontSize40);
position: relative;
top: var(--fontSize4);
box-sizing: border-box;
} }
.placeholder { .placeholder {
width: var(--fontSize280); width: var(--fontSize280);
...@@ -124,7 +125,8 @@ page { ...@@ -124,7 +125,8 @@ page {
} }
.footer { .footer {
position: absolute; position: absolute;
bottom:var(--fontSize100); // bottom:var(--fontSize100);
bottom: 6%;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
.btn { .btn {
...@@ -285,12 +287,3 @@ page { ...@@ -285,12 +287,3 @@ page {
background-color: #1989fa; background-color: #1989fa;
color: #fff; color: #fff;
} }
/* 自定义对话框样式 */
.custom-dialog {
height: 364px !important;
}
.custom-dialog .van-dialog {
height: 364px !important;
}
\ No newline at end of file \ No newline at end of file
// tabWorkOrder/pages/mentorshipManage/mentorshipManage.js
import { mentorshipFormData, getStatusName, getStatusTipText } from './constantData' import { mentorshipFormData, getStatusName, getStatusTipText } from './constantData'
import { getRecruitList, waitstaffstateAPI, confiremStaffFlagAPI } from '../api' import { getRecruitList, waitstaffstateAPI, confiremStaffFlagAPI } from '../api'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
...@@ -30,7 +29,6 @@ Page({ ...@@ -30,7 +29,6 @@ Page({
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
// 非区域运营登录,打回到首页 // 非区域运营登录,打回到首页
//ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" }) //ll if (userInfo?.loginRole != 3) wx.reLaunch({ url: "/pages/loading/loading" })
// 超管显示指派人字段
if (userInfo?.isSuper) { if (userInfo?.isSuper) {
let index = mentorshipFormData?.findIndex(v => v.name == 'flightSupervisorName') let index = mentorshipFormData?.findIndex(v => v.name == 'flightSupervisorName')
this.setData({ this.setData({
...@@ -52,11 +50,9 @@ Page({ ...@@ -52,11 +50,9 @@ Page({
onShow() { onShow() {
}, },
onBottomRefresh() { onBottomRefresh() {
this.getList() this.getList()
}, },
// 获取招聘任务统计数据 // 获取招聘任务统计数据
getWaitstaffstate() { getWaitstaffstate() {
waitstaffstateAPI({}).then(res => { waitstaffstateAPI({}).then(res => {
...@@ -101,11 +97,11 @@ Page({ ...@@ -101,11 +97,11 @@ Page({
getRecruitList({ getRecruitList({
pageSize, pageSize,
pageNum: currentPage, pageNum: currentPage,
onlyWaiting: !!!tabIndex onlyWaiting: !!!tabIndex // boolean类型转换
}).then(res => { }).then(res => {
wx.hideLoading() wx.hideLoading()
if (res.code == "0") { if (res.code == "0") {
let { list, pages, pageNum, condition } = res.data; let { list, pages } = res.data;
// 为列表数据添加状态名称和提示文本 // 为列表数据添加状态名称和提示文本
list = list.map(item => { list = list.map(item => {
const tipText = getStatusTipText(item) const tipText = getStatusTipText(item)
...@@ -195,32 +191,25 @@ Page({ ...@@ -195,32 +191,25 @@ Page({
onHide() { onHide() {
}, },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { onUnload() {
}, },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { onPullDownRefresh() {
}, },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { onReachBottom() {
}, },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { onShareAppMessage() {
} }
}) })
\ No newline at end of file \ No newline at end of file
{ {
"navigationBarTitleText": "招聘管理", "navigationBarTitleText": "招聘管理",
"enablePullDownRefresh": true, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "onReachBottomDistance": 50,
"usingComponents": {} "usingComponents": {}
} }
\ No newline at end of file \ No newline at end of file
/* tabWorkOrder/pages/mentorshipManage/mentorshipManage.wxss */ /* tabWorkOrder/pages/mentorshipManage/mentorshipManage.wxss */
page { page {
background: #F7F8FA; background: #F7F8FA;
height: 100%;
overflow: hidden;
} }
.container_page { .container_page {
height: 100%;
overflow: hidden;
.top_content{ .top_content{
background: #FFFFFF; background: #FFFFFF;
padding-top: var(--fontSize24); padding-top: var(--fontSize24);
...@@ -61,8 +65,10 @@ page { ...@@ -61,8 +65,10 @@ page {
} }
.content { .content {
padding-top: var(--fontSize24); padding-top: var(--fontSize24);
height: calc(100vh - var(--fontSize120));
box-sizing: border-box;
.list { .list {
height: calc(100vh - var(--fontSize280)); height: 100%;
.item { .item {
margin: 0 var(--fontSize20) var(--fontSize24) var(--fontSize20); margin: 0 var(--fontSize20) var(--fontSize24) var(--fontSize20);
border-radius: var(--fontSize16); border-radius: var(--fontSize16);
...@@ -84,25 +90,21 @@ page { ...@@ -84,25 +90,21 @@ page {
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
padding: var(--fontSize4) var(--fontSize8); padding: var(--fontSize4) var(--fontSize8);
font-weight: 400; font-weight: 400;
// 待人事确认 status = 0 // 待人事确认 status = 0
&.status-0 { &.status-0 {
color: #347bff; color: #347bff;
background: #eaf1ff; background: #eaf1ff;
} }
// 招聘中 status = 1 // 招聘中 status = 1
&.status-1 { &.status-1 {
color: #ff9d0a; color: #ff9d0a;
background: #fff5e6; background: #fff5e6;
} }
// 已完成 status = 2 // 已完成 status = 2
&.status-2 { &.status-2 {
color: #35c376; color: #35c376;
background: #eaf9f1; background: #eaf9f1;
} }
// 已驳回 status = 3 // 已驳回 status = 3
&.status-3 { &.status-3 {
color: #f24724; color: #f24724;
...@@ -131,15 +133,6 @@ page { ...@@ -131,15 +133,6 @@ page {
word-break: break-all; word-break: break-all;
font-size: var(--fontSize28); font-size: var(--fontSize28);
} }
.operation {
font-size: var(--fontSize28);
margin-right: var(--fontSize8);
color: #999EA8;
flex-shrink: 0;
}
}
.wrap_content {
flex-wrap: wrap;
} }
.item_footer { .item_footer {
display: flex; display: flex;
...@@ -165,33 +158,6 @@ page { ...@@ -165,33 +158,6 @@ page {
height: var(--fontSize21); height: var(--fontSize21);
} }
} }
.btn_box_class{
display: flex;
align-items: center;
.order_btn {
box-sizing: border-box;
height: var(--fontSize56);
display: flex;
align-items: center;
justify-content: center;
font-size: var(--fontSize28);
color: #FFFFFF;
background: #347BFF;
border-radius: var(--fontSize32);
padding: 0 var(--fontSize28);
}
.default_btn{
background: #FFFFFF;
border: var(--fontSize2) solid #DEE0E3;
border-radius: var(--fontSize32);
color: #347BFF;
margin-right: var(--fontSize16);
.phone-icon{
width: var(--fontSize48);
height: var(--fontSize48);
}
}
}
} }
} }
.super_item { .super_item {
...@@ -203,27 +169,24 @@ page { ...@@ -203,27 +169,24 @@ page {
} }
} }
.insert_btn { .insert_btn {
display: flex; display: grid;
flex-wrap: wrap; place-items: center;
text-align: center;
align-items: center;
justify-content: center;
color: #347bff; color: #347bff;
width: var(--fontSize136); width: var(--fontSize136);
height: var(--fontSize136); height: var(--fontSize136);
font-size: var(--fontSize24); font-size: var(--fontSize24);
border-radius: var(--fontSize15); border-radius: var(--fontSize15);
opacity: 1;
position: fixed; position: fixed;
-webkit-tap-highlight-color: transparent; //元素默认高亮背景设置
right: var(--fontSize40); right: var(--fontSize40);
bottom: var(--fontSize468); bottom: var(--fontSize468);
background: #ffffffcc; background: #ffffffcc;
box-shadow: 0 1.88px 9.41px 0 #0000001a; text-align: center;
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; box-shadow: 0 var(--fontSize4) var(--fontSize18) 0 #0000001a;
transition: all 0.3s ease-in-out;
.label { .label {
width: var(--fontSize114); width: var(--fontSize114);
line-height: 1; margin-top: -8px;
margin-top:-12%;
line-height: var(--fontSize34); line-height: var(--fontSize34);
} }
.insert_icon { .insert_icon {
...@@ -247,31 +210,6 @@ page { ...@@ -247,31 +210,6 @@ page {
color: #999ea8; color: #999ea8;
font-size: var(--fontSize20); font-size: var(--fontSize20);
text-align: center; text-align: center;
padding:0 0 var(--fontSize60) 0;
} }
} }
.popup_content{
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
.title{
width: 100%;
text-align: center;
padding: var(--fontSize26) 0 var(--fontSize30);
font-size: var(--fontSize32);
font-weight: 600;
color: #292D33;
border-bottom: var(--fontSize2) solid transparent;
box-shadow: 0 var(--fontSize2) 0 var(--fontSize1) rgba(239, 240, 242, 0.5);
}
.popup_item{
font-size: var(--fontSize32);
color: #000000;
width: 100%;
height: var(--fontSize112);
text-align: center;
line-height: var(--fontSize112);
border-bottom: var(--fontSize2) solid transparent;
box-shadow: 0 var(--fontSize2) 0 var(--fontSize1) rgba(239, 240, 242, 0.5);
}
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!