<template>
	<view class="cont">

		<view class="card">
			<view class="tit">
				<view class="">
					1号土地
				</view>
				<view class="">
					溯源码: 12302
				</view>
			</view>
			<view class="card-li">
				<view class="">
					当前种植: 土豆
				</view>
				<view class="">
					种植品牌: 的划分等级
				</view>
			</view>
			<view class="card-li">
				<view class="">
					土地面积: 20亩
				</view>
				<view class="">
					种子品牌: 的划分等级
				</view>
			</view>
			<view class="card-li">
				<view class="">
					播种时间: 2020.12.01
				</view>

			</view>
		</view>


		<view class="operate">
			<view class="tit">
				操作选择
			</view>
			<view class="card">
				<view class="operate-li" @click="showPop=true">
					胶水
				</view>
				<view class="operate-li">
					胶水
				</view>
				<view class="operate-li">
					胶水
				</view>
				<view class="operate-li">
					胶水dassdd
				</view>
				<view class="operate-li">
					胶水
				</view>
				<view class="operate-li">
					胶水
				</view>
			</view>
		</view>
		<view class="fertilize">
			<view class="card">
				<view class="fertilize-tit">
					<view class="">
						施肥
					</view>
					<view class="fertilize-tit-r">
						<view class="">
							删除
						</view>
						<view style="margin-left: 40rpx;color: #00A15E;">
							编辑
						</view>
					</view>

				</view>
				<view class="fertilize-li">
					<view class="">
						肥料类型: 地生上的飞机
					</view>
					<view class="">
						肥料品牌: 地生上的
					</view>
				</view>
				<view class="fertilize-li">
					<view class="">
						兑水浓度: 地生上的飞机
					</view>
					<view class="">
						备注: 地生上的
					</view>
				</view>
			</view>
		</view>
	</view>

	<view class="ripe-btn">
		完成今日操作
	</view>
	<!-- 组件 -->
	<view class="">
		<u-popup :show="showPop" :round="10" :closeable='true' @close="showPop=false" @open="showPop=true">
			<view class="pop-content">
				<view class="pop-tit">
					添加肥料相关信息
				</view>
				<view class="">
					肥料类型
				</view>
				<view class="pop-li">
					<up-input placeholder="请输入品种" border="surround" v-model="formData.value"
						@change="change"></up-input>
				</view>
				<view class="">
					兑水浓度
				</view>
				<view class="pop-li">
					<up-input placeholder="请输入品种" border="surround" v-model="formData.value"
						@change="change"></up-input>
				</view>

				<view class="pop-confirm" @tap="confirm">
					确认
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive
	} from "vue"
	const showPop = ref(false)
	const formData = reactive({
		value: ""
	})
	const confirm = () => {
		showPop.value = false
		// var key of formData {

		// }
	}
</script>

<style lang="scss" scoped>
	.cont {
		padding-top: 30rpx;
		background-color: #F4F4F4;
		min-height: 100vh;
	}

	.card {
		.tit {
			display: flex;
			justify-content: space-between;
			padding-bottom: 20rpx;
			border-bottom: 1px solid #EBF1EF;
		}

		.card-li {
			margin-top: 20rpx;
			display: flex;
			justify-content: space-between;
		}
	}

	.operate {
		width: 693.93rpx;
		margin: auto;

		.tit {
			margin: 20rpx 0;
		}

		.card {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;

			.operate-li {
				font-size: 29.79rpx;
				padding: 0 60rpx;
				background-color: #F4F4F4;
				margin-bottom: 28rpx;
				height: 63.08rpx;
				line-height: 63rpx;
				border-radius: 31.54rpx 31.54rpx 31.54rpx 31.54rpx;
			}
		}
	}

	.ripe-btn {
		position: fixed;
		bottom: 50rpx;
		left: 50%;
		transform: translateX(-50%);
		width: 588.79rpx;
		height: 84.11rpx;
		background-color: #00A15E;
		color: white;
		display: flex;
		justify-content: center;
		align-items: center;
		margin: 0 auto;
		border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
		background: linear-gradient(to right, #00A15E, #4CC593);
	}

	.fertilize {
		.fertilize-tit {
			display: flex;
			// justify-self: center;
			justify-content: space-between;
			padding-bottom: 20rpx;
			border-bottom: 1px solid #F4F4F4;
			margin-bottom: 20rpx;

			.fertilize-tit-r {
				display: flex;
			}
		}

		.fertilize-li {
			display: flex;
			justify-content: space-between;
			margin-bottom: 20rpx;
		}
	}

	.pop-content {
		padding: 20rpx;

		.pop-tit {
			margin-bottom: 20rpx;
			font-weight: bold;
		}

		.pop-li {
			margin: 20rpx 0;
			margin-bottom: 40rpx;
		}

		.pop-confirm {
			width: 693.93rpx;
			height: 84.11rpx;
			background: linear-gradient(to right, #00A15E, #4CC593);
			color: white;
			border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
			text-align: center;
			line-height: 84rpx;
			margin-top: 70rpx;
		}

	}
</style>