<template>
	<view>
		<u-navbar :is-back="false">
			<view class="jp-search">
				<u-search placeholder="输入想找的简历吧" :disabled="true" @click="gotoUrl('pages/hr/query/query')" :show-action="false"></u-search>
			</view>
		</u-navbar>
		<view class="jp-banner">
			<u-swiper :list="bannerList"  @click="ckBanner" ></u-swiper>
		</view>
		 
		<view class="jp-work">
			<view class="jp-work-tab">
				<u-tabs :list="list" :is-scroll="false" :current="current" @change="changeTab" :item-width="100"></u-tabs>
				<view class="screen" @click="showpopup=true">
					<span>筛选</span>
					<u-icon name="arrow-down" color="#999" size="24"></u-icon>
				</view>
			</view>
			<view class="jp-work-list">
				
			 	<ResumeItem v-for="(item ,index) in list[current].list" :key="item.id" :item="item" ></ResumeItem>
			 	
			 	<view class="jp-work-item" style="margin-top: 6px;">
			 		<view style="text-align: center;color:#101010;"   @click="gotoUrl('pages/hr/query/query?all=1')" >查看全部</view>
			 	</view>
			</view>
		</view>
		<u-popup v-model="showpopup" mode="center" width="100%"  >
			<view class="content">
				<view class="popup-title">
					<h3>招聘岗位</h3>
				</view>
				<view class="jp-search-tag">
					<u-tag  v-for="(item,index) in popupList" :key="index" :text="item" mode="dark" 
					:color="querypopup==item?'#FFFFFF':'#666666'"  :bg-color="querypopup==item?'#2295FF':'#f1f1f1'"
					@click="ckPopup(item)"
					/>
					 
				</view>
			</view>
			
			</u-popup>
		<Tabbar-Hr :current="0" ></Tabbar-Hr>
	</view>
</template>

<script>
	import api from './index.js'
	export default api;
</script>

 <style>
	 page{
		 background-color: #f7f7f7;
	 }
 </style>
<style scoped lang="scss">
	.popup-title{
		padding: 20rpx;
	}
	.jp-search-tag{
			padding: 20rpx;
			*{
				margin-right: 10rpx;
				margin-bottom: 10rpx;
			}
	}
	
	.jp-search{
		padding: 0 20rpx;
		width: 100%;
	}
	.jp-banner{
		padding: 20rpx;
		background-color: #fff;
	}
	.jp-tips{
		height:72rpx;
		background-color: #fff0e7;
		display: flex;
		justify-content: center;
		align-items: center;
		span{
			color:#ff6200;
			margin: 0 10rpx;
			line-height: 28rpx;
		}
	}
	.jp-work-tab{
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid #f7f7f7;
		background-color: #fff;
		padding-right: 20rpx;
		.screen{
			span{margin-right: 10rpx;}
		}
	}
	.jp-work-item{
		padding:30rpx;
		background-color: #fff;
		border-bottom: 1px solid #f7f7f7;
		&:last-child{
			border-bottom:none;
		}
		.jp-work-name{
			display: flex;
			justify-content: space-between;
			align-items: center;
			h3{
				font-size: 36rpx;
			}
			span{
				font-size: 32rpx;
				color:#FF1700
			}
		}
		.jp-work-tag{
			display: flex;
			align-items: center;
			margin-top: 10rpx;
			*{
				margin-right: 10rpx;
			}
		}
		.jp-work-info{
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 10rpx;
			p{
				color:#999;
				font-size: 24rpx;
				margin-left: 10rpx;
			}
		}
	}
</style>
