<template>
	<view class="homeContainer">
		<view class="header_bg">
			<Header :bottomBtn="true"></Header>
			<!-- 搜索框头部 -->
			<view class="header_content flex alignC">
				<!-- 定位 -->
				<view class="dingwei flex alignC">
					<view class="dingwei_img flex">
						<image src="../../static/home/ic_dingwei.png" mode="widthFix"></image>
					</view>
					<text style="font-size: 28rpx; color: #FFFFFF; margin-right: 4rpx;">深圳</text>
				</view>
				<!-- 搜索框 -->
				<view class="searchInput flex alignC" @click="searchDetail">
					<view class="search_icon flex">
						<image src="../../static/home/ic_search.png" mode="widthFix"></image>
					</view>
					<text class="input_text" style="margin-left: 13rpx; color: #FFFFFF;">请输入您要搜索的内容</text>
				</view>
				<!-- 签到 -->
				<view class="qiandao flex">
					<image src="../../static/home/ic_qiandoa.png" mode="widthFix"></image>
				</view>
			</view>
			<!-- 导航栏 -->
			<view class="navBox flex justifyBetween alignC">
				<view class="navItem flex flexColumn alignC" v-for="(item,index) in navList">
					<view class="navItem_icon flex">
						<image :src="item.icon" mode="widthFix"></image>
					</view>
					<text class="navItem_name">{{item.name}}</text>
				</view>
			</view>
			<!-- 主要内容 -->
			<view class="main_homeContainer">
				<!-- 海报 -->
				<view class="banner">
					<image src="../../static/home/ic_banner.png" mode="widthFix"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navList: [{
					id: 0,
					icon: '../../static/home/ic_icon1.png',
					name: '附近职位'
				}, {
					id: 1,
					icon: '../../static/home/ic_icon2.png',
					name: '急招职位'
				}, {
					id: 2,
					icon: '../../static/home/ic_icon3.png',
					name: '校园招聘'
				}, {
					id: 3,
					icon: '../../static/home/ic_icon4.png',
					name: '智能求职'
				}, {
					id: 4,
					icon: '../../static/home/ic_icon5.png',
					name: '全部职位'
				}]
			}
		},
		methods: {

		}
	}
</script>

<style>
	page {
		background-color: #f6f8fa;
	}
	.header_bg {
		width: 750rpx;
		height: 572rpx;
		opacity: 1;
		background: linear-gradient(138deg, rgba(252, 222, 146, 1) 0%, rgba(255, 132, 12, 1) 100%);
	}

	.header_content {
		margin-top: 64rpx;
		padding: 0 18rpx 0 32rpx;
	}

	.searchInput {
		width: 508rpx;
		height: 66rpx;
		background: rgba(255, 255, 255, 0.3);
		border-radius: 102rpx;
		opacity: 1;
		margin-left: 24rpx;
	}

	.dingwei_img {
		width: 36rpx;
		height: 36rpx;
	}

	.search_icon {
		width: 24rpx;
		height: 24rpx;
		margin-left: 24rpx;
	}

	.qiandao {
		width: 60rpx;
		height: 78rpx;
		margin-top: -10rpx;
		margin-left: 12rpx;
	}

	.navBox {
		margin-top: 62rpx;
		padding: 0 34rpx 0;
	}

	.navItem_icon {
		width: 68rpx;
		height: 68rpx;
	}

	.navItem_name {
		height: 36rpx;
		font-size: 26rpx;
		margin-top: 16rpx;
		color: #FFFFFF;
	}
	.main_homeContainer {
		margin-top: 40rpx;
		padding: 32rpx;
		width: 750rpx;
		height: 886rpx;
		border-radius: 32rpx 32rpx 0 0;
		opacity: 1;
		background: rgba(255,255,255,1);
	}
	.banner {
		width: 688rpx;
		height: 288rpx;
	}
</style>