Commit faddad24 by 张立顺

fix bug

1 parent b6274bc6
...@@ -392,7 +392,7 @@ Page({ ...@@ -392,7 +392,7 @@ Page({
recruitmentInfoConfig: filteredRecruitmentInfoConfig recruitmentInfoConfig: filteredRecruitmentInfoConfig
}) })
}) })
.catch(err => { }) .catch(err => {})
}, },
/** /**
* 处理按钮点击 * 处理按钮点击
...@@ -554,7 +554,7 @@ Page({ ...@@ -554,7 +554,7 @@ Page({
if (popupType === 'initial') { if (popupType === 'initial') {
// 简历处理阶段验证 // 简历处理阶段验证
if (!formData.processResult) { if (formData.processResult === '') {
wx.showToast({ wx.showToast({
title: '请选择处理结果', title: '请选择处理结果',
icon: 'none' icon: 'none'
...@@ -571,7 +571,7 @@ Page({ ...@@ -571,7 +571,7 @@ Page({
} }
} else if (popupType === 'interview') { } else if (popupType === 'interview') {
// 面试反馈阶段验证 // 面试反馈阶段验证
if (!formData.interviewResult) { if (formData.interviewResult === '') {
wx.showToast({ wx.showToast({
title: '请选择面试结果', title: '请选择面试结果',
icon: 'none' icon: 'none'
...@@ -593,7 +593,7 @@ Page({ ...@@ -593,7 +593,7 @@ Page({
}) })
let requestParams = { let requestParams = {
id: formData.id, id: formData.id
// technicalSupervisorName: recruitment.technicalSupervisorName, // technicalSupervisorName: recruitment.technicalSupervisorName,
// technicalSupervisorPhone: recruitment.technicalSupervisorPhone, // technicalSupervisorPhone: recruitment.technicalSupervisorPhone,
// processResult: formData?.processResult // processResult: formData?.processResult
...@@ -669,35 +669,35 @@ Page({ ...@@ -669,35 +669,35 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() { }, onReady() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { }, onShow() {},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() { }, onHide() {},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() { }, onUnload() {},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() { }, onPullDownRefresh() {},
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() { }, onReachBottom() {},
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() { } onShareAppMessage() {}
}) })
<!--packageWorkspace/pages/recruitManage/recruitDetail/recruitDetail.wxml--> <!--packageWorkspace/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 {{ showPopup || timeShow ? 'page-locked' : '' }}" style="{{ showPopup || timeShow ? 'top: -' + pageScrollTop + 'px;' : '' }}"> <view
class="container_page {{ showPopup || timeShow ? 'page-locked' : '' }}"
style="{{ showPopup || timeShow ? 'top: -' + pageScrollTop + 'px;' : '' }}"
>
<!-- 顶部数据统计 --> <!-- 顶部数据统计 -->
<view class="content_top"> <view class="content_top">
<view class="statistics"> <view class="statistics">
...@@ -96,7 +99,9 @@ ...@@ -96,7 +99,9 @@
<view class="user_info"> <view class="user_info">
<view class="user_top"> <view class="user_top">
<view class="name">{{item.personName}}</view> <view class="name">{{item.personName}}</view>
<view class="tag tag-{{ item.mixResult !== undefined ? (item.mixResult === 0 ? 'pending' : item.mixResult === 1 ? 'mismatch' : item.mixResult === 2 ? 'pass' : 'fail') : 'completed' }}"> <view
class="tag tag-{{ item.processResult == null ? 'pending' : (item.processResult == 1 ? 'mismatch' : (item.processResult == 2 && item.interviewResult == null ? 'pending' : (item.interviewResult == 0 ? 'fail' : (item.interviewResult == 1 ? 'pass' : '')))) }}"
>
<!-- {{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不符合' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}} --> <!-- {{item.mixResult !== undefined ? (item.mixResult === 0 ? '待处理' : item.mixResult === 1 ? '人员不符合' : item.mixResult === 2 ? '面试通过' : '面试不通过') : (item.status === 0 ? '待处理' : '已完成')}} -->
{{ item.processResult == null ? '待处理' : (item.processResult == 1 ? '人员不符合' : (item.processResult == 2 && item.interviewResult == null ? '待面试' : (item.interviewResult == 0 ? '面试不通过' : (item.interviewResult == 1 ? '面试通过' : '')))) }} {{ item.processResult == null ? '待处理' : (item.processResult == 1 ? '人员不符合' : (item.processResult == 2 && item.interviewResult == null ? '待面试' : (item.interviewResult == 0 ? '面试不通过' : (item.interviewResult == 1 ? '面试通过' : '')))) }}
</view> </view>
...@@ -114,7 +119,12 @@ ...@@ -114,7 +119,12 @@
<view class="label">推荐理由:</view> <view class="label">推荐理由:</view>
<view class="value"> <view class="value">
{{item.recommendedReasonTxt}} {{item.recommendedReasonTxt}}
<view wx:if="{{ item.recommendedReason && item.recommendedReason.length > reasonMaxLen }}" class="{{ ['tips', item.isShowReasonAll ? 'show' : ''] }}" bind:tap="handleShowReason" data-index="{{ index }}"> <view
wx:if="{{ item.recommendedReason && item.recommendedReason.length > reasonMaxLen }}"
class="{{ ['tips', item.isShowReasonAll ? 'show' : ''] }}"
bind:tap="handleShowReason"
data-index="{{ index }}"
>
<text wx:if="{{ item.isShowReasonAll }}">收起</text> <text wx:if="{{ item.isShowReasonAll }}">收起</text>
<view wx:else class="btn-reason-all">查看全部</view> <view wx:else class="btn-reason-all">查看全部</view>
</view> </view>
...@@ -128,7 +138,12 @@ ...@@ -128,7 +138,12 @@
</view> </view>
<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.processResult == null || (item.processResult == 2 && item.interviewResult == null) }}" class="btn btn_primary" bindtap="handleProcess" data-index="{{ index }}">处理</view> <view
wx:if="{{ item.processResult == null || (item.processResult == 2 && item.interviewResult == null) }}"
class="btn btn_primary"
bindtap="handleProcess"
data-index="{{ index }}"
>处理</view>
<!-- <van-button wx:if="{{item.status === 0}}" class="btn btn_primary" bindtap="handleProcess" data-id="{{item.id}}" plain type="primary">处理</van-button> --> <!-- <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>
...@@ -154,7 +169,14 @@ ...@@ -154,7 +169,14 @@
</view> </view>
<view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}"> <view class="value value_box" wx:elif="{{ infoItem.label === '招聘负责人' || infoItem.label === '技术督导' }}">
<text> {{recruitment[infoItem.field] || '-'}}</text> <text> {{recruitment[infoItem.field] || '-'}}</text>
<image class="phone_icon" wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}" src="/packageWorkspace/pages/image/call-icon.png" mode="widthFix" catchtap="phoneCall" data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}" /> <image
class="phone_icon"
wx:if="{{ (infoItem.label === '招聘负责人' && recruitment.recruiterPhone) || (infoItem.label === '技术督导' && recruitment.technicalSupervisorPhone) }}"
src="/packageWorkspace/pages/image/call-icon.png"
mode="widthFix"
catchtap="phoneCall"
data-phone="{{ infoItem.label === '招聘负责人' ? recruitment.recruiterPhone : recruitment.technicalSupervisorPhone }}"
/>
</view> </view>
<text class="value" wx:else>{{recruitment[infoItem.field] || '-'}}</text> <text class="value" wx:else>{{recruitment[infoItem.field] || '-'}}</text>
</view> </view>
...@@ -169,7 +191,14 @@ ...@@ -169,7 +191,14 @@
</view> </view>
</view> </view>
<edit-popup wx:if="{{ handleShowMessagePop }}" formData="{{ formData }}" bindconfirm="updateMentorShip" bindcancel="hidePopup"></edit-popup> <edit-popup wx:if="{{ handleShowMessagePop }}" formData="{{ formData }}" bindconfirm="updateMentorShip" bindcancel="hidePopup"></edit-popup>
<van-popup show="{{ showPopup }}" position="bottom" bind:close="hidePopup" lock-scroll="{{ true }}" round catchtouchmove="preventTouchMove"> <van-popup
show="{{ showPopup }}"
position="bottom"
bind:close="hidePopup"
lock-scroll="{{ true }}"
round
catchtouchmove="preventTouchMove"
>
<view class="popup_content"> <view class="popup_content">
<view class="title">{{ popupType == 'initial' ? '简历处理' : '面试反馈' }}</view> <view class="title">{{ popupType == 'initial' ? '简历处理' : '面试反馈' }}</view>
<scroll-view scroll-y style="height: var(--fontSize807);" bindtouchmove="stopPropagation"> <scroll-view scroll-y style="height: var(--fontSize807);" bindtouchmove="stopPropagation">
...@@ -240,7 +269,13 @@ ...@@ -240,7 +269,13 @@
<view class="label">说明</view> <view class="label">说明</view>
<view class="value"> <view class="value">
<view class="textarea_wrapper"> <view class="textarea_wrapper">
<textarea placeholder="请输入" value="{{ formData.description }}" data-field="description" bindinput="handleTextareaInput" maxlength="200"></textarea> <textarea
placeholder="请输入"
value="{{ formData.description }}"
data-field="description"
bindinput="handleTextareaInput"
maxlength="200"
></textarea>
<view class="char_count">{{formData.descriptionLength || 0}}/200</view> <view class="char_count">{{formData.descriptionLength || 0}}/200</view>
</view> </view>
</view> </view>
...@@ -255,6 +290,14 @@ ...@@ -255,6 +290,14 @@
</van-popup> </van-popup>
<!-- 时间选择器 --> <!-- 时间选择器 -->
<van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove"> <van-popup show="{{ timeShow }}" position="bottom" round bind:close="calcelDate" catchtouchmove="preventTouchMove">
<van-datetime-picker type="date" value="{{ currentDate }}" formatter="{{ formatter }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" bind:confirm="bindDateChange" bind:cancel="calcelDate" /> <van-datetime-picker
type="date"
value="{{ currentDate }}"
formatter="{{ formatter }}"
min-date="{{ minDate }}"
max-date="{{ maxDate }}"
bind:confirm="bindDateChange"
bind:cancel="calcelDate"
/>
</van-popup> </van-popup>
</view> </view>
\ 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!