<template>
	<view>
		<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text"
			activeColor="#007aff"></uni-segmented-control>
		<view class="content">
			<view v-show="current === 0">
				<ynry></ynry>
			</view>
			<view v-show="current === 1">
				<ywry></ywry>
			</view>
			<view v-show="current === 2">
				<Zyry></Zyry>
			</view>
			<view v-show="current === 3">
				<lsry></lsry>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		postRequest,
		getRequest
	} from '../../api/api.js'
	import Zyry from './zyry.vue'
	import ynry from './ynry.vue'
	import ywry from './ywry.vue'
	import lsry from './lsry.vue'
	export default {
		components: {
			Zyry,
			ynry,
			ywry,
			lsry
		},
		data() {
			
			return {
				current:0,   //tab切换
				items:['院内人员','院外人员'],
			}
		},
		onLoad() {
			
		},
		methods: {
			onClickItem(e){
				this.current=e.currentIndex
			},
		}
	}
</script>

<style>
	.nav {
		padding: 10px;
		display: flex;
		justify-content: space-evenly;
	}

	.nav button {
		width: 32%;
		height: 10%;
		margin: 0 3px;
		font-size: 13px;
	}

	.butts {
		background-color: #007AFF;
		color: white;
	}

	.nav view button {
		width: 39%;
	}

	.grxxItem {
		border-radius: 5px;
		box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.1);
	}

	.grxxItem .ygxm {
		padding: 10px;
		background-color: #3297ff;
		color: white;
	}

	.grxxItem .sfzhm {
		padding: 10px;
		border: 1px solid #CCCCCC;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px;
		font-size: 84%;
		color: #999999;
		position: relative;
	}

	.sfzhm image {
		width: 28rpx;
		height: 30rpx;
	}

	.sfzhm input {
		width: 70%;
	}

	.sfzhm:first-of-type input {
		width: 30%;
	}

	.grxxItem .mdd {
		justify-content: left;
	}

	.grxxItem .mdd input {
		width: 70%;
		margin-left: 10px;
	}

	.hxx {
		position: absolute;
		color: red;
		left: 3px;
		top: 25%;
	}

	.grxxItem .sfzhm:last-of-type {
		border: none;
	}

	/* 时间选择器 */
	.picTime {
		z-index: 10;
		height: 100%;
		width: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		position: fixed;
		bottom: 0;
		left: 0;
	}

	.uni-padding-wrap {
		position: absolute;
		bottom: 400rpx;
		left: 0;
		width: 750rpx;
		background-color: white;
		display: flex;
		justify-content: center;
		padding: 10px 0;
	}

	.uni-padding-wrap button {
		height: 30px;
		line-height: 30px;
		font-size: 15px;
	}

	.uni-padding-wrap button:last-of-type {
		background-color: #007AFF;
		color: white;
	}

	.pickers {
		position: fixed;
		bottom: 0;
		left: 0;
		text-align: center;
		width: 750rpx;
		height: 400rpx;
		margin-top: 20rpx;
		background-color: white;
	}

	.pickers .picker-view {
		width: 750rpx;
		height: 400rpx;
		margin-top: 20rpx;
		background-color: white;
	}
</style>
