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