<template>
	<view class="app">
		<view class="userinfo">
			<view class="item">
				<span>姓名：</span>
				<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='5' />
			</view>
			<view class="item">
				<span>电话：</span>
				<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='11' />
			</view>
			<view class="item">
				<span>医院：</span>
				<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
			</view>
			<view class="item">
				<span>科室：</span>
				<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
			</view>
			<view class="item">
				<span>病床号：</span>
				<u-input :clearable='false' v-model="query.patientName" type="text" placeholder='请输入' maxlength='20' />
			</view>
			<view class="item" style="border: none;" @tap='timepicker=true'>
				<span>时间：</span>
				<u-input :clearable='false' disabled type="text" placeholder='请选择服务时间' />
			</view>
		</view>
		<picker v-model="timepicker" @confirm='confirm'></picker>
	</view>
</template>
<script>
	import baseurl from '@/api/baseurl.js'
	import picker from '../picker/picker.vue'
	export default {
		components: {
			picker
		},
		data() {
			return {
				timepicker: false,
			}
		},
		onShow() {

		},
		onLoad(options) {

		},
		methods: {
			confirm(e) {
				console.log(e)
			}
		}
	}
</script>
<style lang="scss">
	.app {
		padding: 10rpx 0 0;

		.userinfo {
			background: #FFFFFF;
			box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
			border-radius: 5rpx;
			width: 96%;
			margin: 0 auto 20rpx;
			padding-bottom: 5rpx;

			.item {
				width: 94%;
				margin: 0 auto;
				height: 120rpx;
				line-height: 120rpx;
				border-bottom: 1rpx solid #D8D4D4;
				position: relative;

				::v-deep .u-radio__label {
					width: 150rpx !important;
					height: 120rpx !important;
					line-height: 120rpx;
				}

				::v-deep .u-radio-group {
					position: absolute;
					top: 50%;
					transform: translateY(-50%);
					left: 170rpx;
				}

				::v-deep .u-radio {
					padding-left: 10rpx;
					width: 150rpx !important;
					height: 120rpx !important;
				}

				.address {
					position: absolute;
					left: 25%;
					top: 50%;
					width: 75%;
					transform: translateY(-50%);
					display: inline-block;
					height: 120rpx;
					line-height: 120rpx;
					white-space: nowrap;
					text-overflow: ellipsis;
					overflow: hidden;
				}

				span {
					display: inline-block;
					line-height: 120rpx;
					height: 120rpx;
					width: 25%;
					font-size: 36rpx;
				}

				::v-deep .u-input__input {
					height: 120rpx;
					font-size: 30rpx;
				}

				::v-deep .uni-input-wrapper {
					display: inline-block;
					height: 120rpx;
					line-height: 120rpx;
				}

				::v-deep u-input {
					height: 120rpx;
					line-height: 120rpx;
					position: absolute;
					left: 25%;
					top: 50%;
					width: 75%;
					transform: translateY(-50%);
				}
			}
		}
	}
</style>
