<template>
	<view>
		<view class="se-m-20 se-br-20 se-bs-b se-bgc-white se-py-20 se-px-30" v-for="(items,indexs) in rolelist"
			:key="indexs">
			<view class="se-flex se-flex-h-sb" @click.capture="onMasterDetail(items)">
				<view class="se-flex">
					<view class="se-a-80">
						<image class="se-a-80 se-br-p-50 se-bgc-f5" :src="items.employResume.headImage" mode=""></image>
					</view>
					<view class="se-ml-20 se-flex se-flex-v-c se-flex-ai-fs">
						<text
							class="se-fw-6 se-c-black se-fs-30">{{items.employResume.name?items.employResume.name:items.hanHaiMember.nickName}}<text
								class="se-mx-10  se-b-l"></text><text
								class="se-fs-28 se-c-orange">日薪:{{items.dayMoney}}</text> </text>
						<text
							class="se-fs-24 se-c-text-third">{{items.employResume.sex==1?"男":"女"}}-{{items.employResume.nation?items.employResume.nation:"未知"}}族-{{items.employResume.age}}岁</text>
						
						<view class="se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6 se-toe-1"
							style="max-width: 100rpx;">
							{{items.categoryOne_dictText}}
						</view>
					</view>
					<!-- <view class="se-flex se-flex-h-c">
						<view class="se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-ml-20 se-fw-6 se-toe-1" style="max-width: 100rpx;">
							{{items.categoryOne_dictText}}
						</view>
					</view> -->
				</view>
				<view class="se-c-orange se-fs-32 se-fw-6">
					{{items.salaryMin}}-{{items.salaryMax}}元
				</view>
			</view>
			<view>
				<text class="se-c-text-third se-fs-22 se-mt-10">{{items.createTime}}</text>
			</view>
			<view class="se-flex se-flex-h-sb">
				<text class="se-c-text-sub se-fs-24 se-toe-5" style="max-width: 100rpx;width: 100rpx;">
					{{items.categoryTwo_dictText}}
				</text>
				<text class="se-c-text-sub se-fs-24 se-toe-5" style="max-width: 350rpx;width: 350rpx;">
					{{items.address}}
				</text>
				<view
				v-if="items.employOrder"
					class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6">
					<text class="se-ml-5">已聘用</text>
				</view>
			</view>
		</view>
		<u-empty v-if="rolelist && rolelist.length==0" mode="list"></u-empty>
	</view>
</template>

<script>
	import {
		queryMySeekList
	} from "@/common/api.js"

	export default {
		data() {
			return {
				rolelist: [

				]
			}
		},
		onLoad() {
			this.onQueryMySeekList();
		},
		methods: {
			onMasterDetail(event) {
				if(event.employOrder){
					uni.navigateTo({
						url: `/pages_subpack/job-order-detail/index?orderId=${event.employOrder.id}&type=true`
					})
				}else{
					uni.navigateTo({
						url: "/pages_subpack/master-detail/index?id=" + event.id
					})
				}
			},
			onQueryMySeekList() {
				console.log("进入了我的求职页面")
				queryMySeekList({}).then(response => {
					this.rolelist = response.result.records
				}).catch(error => {

				})

			}
		}
	}
</script>

<style>
</style>