|
@@ -14,16 +14,16 @@
|
|
|
<!-- 职位 -->
|
|
|
<view class="titleBox my-5">
|
|
|
<view style="display: flex;align-items: center;">
|
|
|
- <image v-if="item.jobFairIds?.length" src="/static/svg/jobFair.svg" class=" ss-m-r-10" style="width: 20px; height: 20px;"></image>
|
|
|
+ <image v-if="item.jobFairName" src="/static/svg/jobFair.svg" class=" ss-m-r-10" style="width: 20px; height: 20px;"></image>
|
|
|
<rich-text v-if="item.name?.indexOf('style') !== -1" class="job-name" :nodes="item.name"></rich-text>
|
|
|
<view v-else class="job-name">{{ formatName(item.name) }}</view>
|
|
|
</view>
|
|
|
<image v-if="item.top && tab === 1" src="/static/svg/topUp.svg" class="TopUpSvg"></image>
|
|
|
</view>
|
|
|
<!-- 职位类型 -->
|
|
|
- <view class="font-size-13 ellipsis ss-m-5" style="color: #808080;">
|
|
|
+ <!-- <view class="font-size-13 ellipsis ss-m-5" style="color: #808080;">
|
|
|
<span>{{item.positionName }}</span>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<!-- 薪酬、工作地、学历、工作经验 -->
|
|
|
<view class="d-flex align-center justify-space-between">
|
|
|
<view class="font-size-13 ellipsis" style="flex: 1;">
|
|
@@ -38,10 +38,12 @@
|
|
|
</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="d-flex font-size-13 color-666 ss-m-t-10">
|
|
|
- <!-- <view class="ss-m-t-10 ss-m-r-15">到期时间:{{ item.expireTime ? timesTampChange(item.expireTime, 'Y-M-D') : '长期有效' }}</view> -->
|
|
|
+ <view class="d-flex font-size-13 color-666">
|
|
|
<view class="ss-m-t-10" v-if="tab !== 0">刷新时间:{{ item.refreshTime ? timesTampChange(item.refreshTime, 'Y-M-D h:m') : '暂无' }}</view>
|
|
|
</view>
|
|
|
+ <view v-if="item.jobFairName" class="font-size-13 color-primary ss-m-t-10">
|
|
|
+ 招聘会:{{ item.jobFairName }}
|
|
|
+ </view>
|
|
|
<view class="sub-li-bottom ss-m-t-20">
|
|
|
<view
|
|
|
v-if="tab === 0 && jobNum && +jobNum > 0"
|
|
@@ -143,25 +145,20 @@ const handleDelete = async (val) => {
|
|
|
const payRef = ref()
|
|
|
// 支付
|
|
|
const toPay = async (val) => {
|
|
|
- // 待发布且有额度的激活职位即可
|
|
|
- // if (userInfo.value.entitlement?.publishJobCount > 0) {
|
|
|
- // await enableJobAdvertised([val.id])
|
|
|
- // emit('refresh', { reset: true, updatePublishJobCount: true })
|
|
|
- // setTimeout(() => { uni.showToast({ title: '发布成功', icon: 'success' }) }, 1000)
|
|
|
- // return
|
|
|
- // }
|
|
|
payRef.value && payRef.value.handleOpen({ spuId: val?.id||'', spuName: val?.name||'', price: 1, type: 1 })
|
|
|
}
|
|
|
|
|
|
-// setTimeout(() => { toPay(props.list[0]) }, 2000)
|
|
|
-
|
|
|
const confirm = ref()
|
|
|
const confirmType = ref('closeJob') // 确认框类型
|
|
|
const dialogContent = ref('')
|
|
|
let handleActionInfo = {}
|
|
|
const apiList = [closeJobAdvertised, enableJobAdvertised, refreshJobAdvertised, topJobAdvertised, topJobAdvertisedCancel]
|
|
|
// 职位关闭、激活、刷新、置顶
|
|
|
-const handleAction = async (index, type, { id }, item) => {
|
|
|
+const handleAction = async (index, type, { id, jobFairName }, item) => {
|
|
|
+ if (jobFairName) {
|
|
|
+ uni.showToast({ title: '该职位属于招聘会,请前往招聘会内进行操作', icon: 'none', duration: 2000 })
|
|
|
+ return
|
|
|
+ }
|
|
|
const ids = type ? [] : [id]
|
|
|
if (!ids?.length && !index) return
|
|
|
try {
|
|
@@ -244,6 +241,7 @@ const closeJob = async () => {
|
|
|
const handleDetail = (item) => {
|
|
|
if (!item.id) return
|
|
|
let url = `/pagesB/positionDetail/index?jobId=${item.id}&isEdit=${item.edit}`
|
|
|
+ if (item.jobFairName) url += `&jobFairId=${item.jobFairId}&fairNoEdit=true`
|
|
|
uni.navigateTo({ url })
|
|
|
}
|
|
|
|