| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 | 
							- <template>
 
-   <view>
 
-     <view v-if="list?.length" class="ss-p-b-30 ss-p-t-20 ss-p-x-30">
 
- 			<view v-for="(item, index) in list" :key="index" class="mList">
 
- 				<view v-if="item?.enterpriseName" class="d-flex align-center item-top">
 
-           <view class="avatarBox">
 
-             <image class="enterAvatar default-border default-radius" :src="item.enterpriseLogo || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
 
-           </view>
 
-           <view class="ss-m-l-20 label-text">{{ formatName(item?.enterpriseName) }} - {{ item?.hrName }}</view>
 
-         </view>
 
-         <view class="list-shape">
 
-           <view @tap.stop="handleToDetail(item)">
 
- 						<view class="titleBox">
 
- 							<view style="display: flex;align-items: center;">
 
- 								<image 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>
 
- 						</view>
 
- 						<view class="d-flex align-center justify-space-between ss-m-t-20">
 
- 							<view class="font-size-13 ellipsis" style="flex: 1;">
 
- 								<span class="tag-gap" style="color: #808080;">
 
- 									<span>{{item.area?.str ?? '全国' }}</span>
 
- 									<span class="divider-mx" v-if="item.eduName">|</span>
 
- 									<span>{{item.eduName }}</span>
 
- 									<span class="divider-mx" v-if="item.expName">|</span>
 
- 									<span>{{item.expName }}</span>
 
- 									<span class="divider-mx">|</span>
 
- 									<span>{{!item.payFrom && !item.payTo ? '面议' : `${item.payFrom}-${item.payTo}${item.payName ? '/' + item.payName : ''}` }}</span>
 
- 								</span>
 
- 							</view>
 
- 						</view>
 
- 					</view>
 
-           <view class="sub-li-bottom ss-m-t-20">
 
- 						<view class="sub-li-bottom-item color-primary" @tap.stop="handleToResume(item)">{{ item.count || 0 }} 已投递简历</view>
 
- 						<view class="sub-li-bottom-item color-error" @tap.stop="handleRemove(item)">移出招聘会</view>
 
-           </view>
 
-         </view>
 
- 			</view>
 
- 		</view>
 
- 		<uni-popup ref="removePopup" type="dialog">
 
- 			<uni-popup-dialog 
 
- 				type="warn" 
 
- 				cancelText="取消" 
 
- 				confirmText="确定" 
 
- 				title="系统提示" 
 
- 				content="是否确认将此职位移出招聘会?" 
 
- 				@confirm="handleRemoveConfirm"
 
- 				@close="handleRemoveClose"
 
- 			></uni-popup-dialog>
 
- 		</uni-popup>
 
-   </view>
 
- </template>
 
- <script setup>
 
- import { ref } from 'vue'
 
- import { formatName } from '@/utils/getText'
 
- import { quitJobFairPosition } from '@/api/jobFair'
 
- const emit = defineEmits(['refresh'])
 
- const props = defineProps({
 
- 	list: Array,
 
- 	jobFairId: [String, Number],
 
- 	jobFairName: String
 
- })
 
- // 查看职位详情
 
- const handleToDetail = (val) => {
 
- 	uni.navigateTo({
 
- 		url: `/pagesB/positionDetail/index?jobId=${val.id}&jobFairId=${props.jobFairId}&isEdit=${val.edit}`
 
- 	})
 
- }
 
- // 查看职位投递简历
 
- const handleToResume = (val) => {
 
- 	uni.navigateTo({
 
- 		url: `/pagesA/resume/index?jobId=${val.id}&jobName=${formatName(val.name)}&jobFairId=${props.jobFairId}&jobFairName=${props.jobFairName}`
 
- 	})
 
- }
 
- // 移出招聘会
 
- const removePopup = ref()
 
- const removeParams = ref({})
 
- const handleRemove = (val) => {
 
- 	removeParams.value = val
 
- 	removePopup.value.open()
 
- }
 
- const handleRemoveClose = () => {
 
- 	removeParams.value = {}
 
-   removePopup.value.close()
 
- }
 
- const handleRemoveConfirm = async () => {
 
- 	if (!removeParams.value.id || !props.jobFairId) {
 
- 		uni.showToast({ title: '正在维护中,请稍后再试', icon: 'none', duration: 2000 })
 
- 		return
 
- 	}
 
- 	uni.showLoading({ title: '加载中' })
 
- 	try {
 
- 		await quitJobFairPosition({ jobFairId: props.jobFairId, jobId: removeParams.value.id })
 
- 		uni.hideLoading()
 
- 		uni.showToast({ title: '移出成功', icon: 'none' })
 
- 		removeParams.value = {}
 
- 		emit('refresh')
 
- 	} catch {
 
- 		removeParams.value = {}
 
- 		uni.hideLoading()
 
- 	}
 
- }
 
- </script>
 
- <style scoped lang="scss">
 
- .enterAvatar{
 
- 	width: 60rpx;
 
- 	height: 60rpx;
 
- 	margin: auto;
 
- }
 
- .avatarBox {
 
-   max-width: 60rpx;
 
-   max-height: 60rpx;
 
- }
 
- .item-top {
 
-   padding: 20rpx 30rpx;
 
-   background: linear-gradient(90deg,#f5fcfc,#fcfbfa);
 
-   border-radius: 12px 12px 0 0;
 
-   font-size: 28rpx;
 
-   color: #0E100F;
 
-   .label-text {
 
- 	  max-width: 100%;
 
- 	  text-overflow: ellipsis;
 
- 	  white-space: nowrap;
 
- 	  overflow: hidden;
 
-   }
 
- }
 
- .job-name {
 
-   font-size: 16px;
 
-   font-weight: 700;
 
-   color: #0E100F;
 
-   max-width: 80vw;
 
-   overflow: hidden;
 
-   white-space: nowrap;
 
-   text-overflow: ellipsis;
 
- }
 
- .sub-li-bottom {
 
-   display: flex;
 
-   justify-content: space-between;
 
-   margin-top: 10px;
 
-   font-size: 13px;
 
-   color: #666;
 
- 	&-item {
 
- 		width: 50%;
 
- 		height: 35px;
 
- 		line-height: 35px;
 
- 		text-align: center;
 
- 		margin-right: 15px;
 
- 		background-color: #f7f8fa;
 
- 		border-radius: 4px;
 
- 		&:nth-child(2) {
 
- 			margin-right: 0;
 
- 		}
 
- 	}
 
- }
 
- .salary-text {
 
- 	float: right;
 
- 	color: #00B760;
 
-   font-weight: 700;
 
- }
 
- .list-shape {
 
-   background-color: #fff;
 
-   border-radius: 0 0 12px 12px;
 
- 	padding: 30rpx;
 
-   .titleBox {
 
-     display: flex;
 
-     align-items: center;
 
-     justify-content: space-between;
 
-   }
 
- }
 
- .tag-gap{
 
- 	margin: 10rpx 10rpx 10rpx 0;
 
- }
 
- .divider-mx{
 
- 	margin: 0 10rpx;
 
- }
 
- .divider {
 
- 	color:#e4d4d2;
 
- }
 
- .mList {
 
-   margin-bottom: 20rpx;
 
- 	position: relative;
 
-   box-shadow: 1px 2px 12px rgba(0, 0, 0, 0.17);
 
- }
 
- </style>
 
 
  |