<template>
	<view>
		<navbar leftClick @leftClick="$utils.navigateBack" />
		
		<view class="search">
			<uv-search 
			placeholder="请输入岗位/公司名称" 
			:showAction="false"
			search-icon-size="40rpx"
			@search="search"
			v-model="keyword"></uv-search>
		</view>
		
		<!-- 筛选器 -->
		<screenWork @clickItem="clickItem"/>
		
		<!-- 老板看到的 -->
		<userList ref="workList" v-if="role"/>
		
		<!-- 工人看到的 -->
		<workList ref="workList" v-else/>
		
	</view>
</template>

<script>
	import screenWork from '@/components/screen/screenWork.vue'
	import workList from '@/components/list/workList/index.vue'
	import userList from '@/components/list/userList/index.vue'
	import {
		mapState,
	} from 'vuex'
	export default {
		components : {
			workList,
			screenWork,
			userList,
		},
		computed: {
			...mapState(['userInfo', 'role']),
		},
		data() {
			return {
				keyword : '',
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.search{
	width: 700rpx;
	background-color: #fff;
	/deep/ .uv-search__content__icon{
		padding: 10rpx 0;
	}
}
</style>
