|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <uni-card v-for="(val, index) in items" :key="index" :is-shadow="true" @tap.stop="handleDetail(val)" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)">
|
|
|
+ <uni-card v-for="(val, index) in items" :key="index" :is-shadow="true" :border='false' shadow="0px 0px 3px 1px rgba(0,0,0,0.1)">
|
|
|
<!-- 基本信息 -->
|
|
|
<view class="d-flex align-center">
|
|
|
<view class="user-avatar">
|
|
@@ -37,7 +37,7 @@
|
|
|
<view
|
|
|
class="sub-li-bottom-item d-flex align-center justify-center"
|
|
|
@tap.stop="handleLoadMore(val)"
|
|
|
- :style="{'color': !actionItems(val)?.length ? '#ccc' : '#00B760'}"
|
|
|
+ :style="{'color': val?.job?.status === '1' || !actionItems(val)?.length ? '#ccc' : '#00B760'}"
|
|
|
>
|
|
|
<view>更多操作</view>
|
|
|
<uni-icons type="list" class="ss-m-l-10" size="20" :color="!actionItems(val)?.length ? '#ccc' : '#00B760'"></uni-icons>
|
|
@@ -53,7 +53,7 @@
|
|
|
class="action-item"
|
|
|
v-for="(val, index) in actionItems(itemData)"
|
|
|
:key="index"
|
|
|
- @tap.stop="handleActionClick(val.type, itemData)"
|
|
|
+ @tap.stop="handleActionClick(val.value, itemData)"
|
|
|
>{{ val.title }}</view>
|
|
|
</view>
|
|
|
<button class="big-cancel-button" @tap.stop="handleClosePopup">取消</button>
|
|
@@ -103,6 +103,11 @@ const itemData = ref({})
|
|
|
|
|
|
// 更多操作
|
|
|
const handleLoadMore = (val) => {
|
|
|
+ if (val?.job?.status === '1') {
|
|
|
+ itemData.value = {}
|
|
|
+ uni.showToast({ title: '职位已关闭,暂无更多操作', icon: 'none' })
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!actionItems(val).length) {
|
|
|
itemData.value = {}
|
|
|
uni.showToast({ title: '暂无更多操作', icon: 'none' })
|
|
@@ -136,18 +141,6 @@ const handleFinishConfirm = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// 邀请面试
|
|
|
-// const handleInterviewInvite = (item) => {
|
|
|
-// if (item?.job?.status === '1') {
|
|
|
-// uni.showToast({ title: '职位已关闭', icon: 'none' })
|
|
|
-// return
|
|
|
-// }
|
|
|
-// uni.navigateTo({
|
|
|
-// url: `/pagesB/InviteInterview/index?id=${item.userId}&jobId=${item.job.id}`
|
|
|
-// })
|
|
|
-// handleClosePopup()
|
|
|
-// }
|
|
|
-
|
|
|
const handleActionClick = (type, val) => {
|
|
|
if (val.job?.status === '1' && (type !== 'completed')) {
|
|
|
uni.showToast({ title: '职位已关闭', icon: 'none' })
|
|
@@ -164,6 +157,13 @@ const handleActionClick = (type, val) => {
|
|
|
url: '/pagesB/InviteInterview/index?editData=' + encodeURIComponent(JSON.stringify(val))
|
|
|
})
|
|
|
}
|
|
|
+ // 取消面试、爽约、面试反馈
|
|
|
+ if (['cancel', 'attended', 'feedback'].includes(type)) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pagesA/interview/${type}?id=${val.id}`
|
|
|
+ })
|
|
|
+ }
|
|
|
+ popup.value.close()
|
|
|
}
|
|
|
|
|
|
const obj = {
|