<style lang="scss" scoped>
	.content{
		min-height: 100%;
		background:#F6F6F6;
		padding-bottom:20rpx;
		
		&>.search{
			display:flex;
			align-items: center;
			background:#fff;
			margin:0rpx 30rpx;
			border-radius: 40rpx;
			padding:6rpx;
			height:60rpx;
			.u-icon{
				margin:0 14rpx;
				flex-shrink: 0;
			}
			input{
				flex-grow: 1;
			}
			.u-button{
				flex-shrink: 0;
				width:max-content;
			}
		}
		&>.item{
			display:flex;
			&>image{
				flex-shrink: 0;
				width:164rpx;
				height:164rpx;
				border-radius: 16rpx;
				margin-right:24rpx;
			}
			&>.info{
				flex-grow: 1;
				.title{
					display:flex;
					align-items: center;
					font-weight: bold;
					text{
						margin-left:auto;
						color:#333;
					}
				}
				.adder{
					color:#999;
					font-size:24rpx;
					margin-top: 16rpx;
				}
				.data{
					display:flex;
					justify-content: space-between;
					align-items: center;
					margin-top:16rpx;
					color:#999;
					font-size:24rpx;
					text:nth-child(3){
						color:#10C176;
						font-weight: bold;
						font-size: 32rpx;
					}
				}
				.btns{
					display: flex;
					justify-content: space-between;
					align-items: center;
					border-top:2rpx solid #D8D8D8;
					padding-top:16rpx;
					margin-top:20rpx;
					text{
						color:#999;
						font-size:24rpx;
						&:before{
							color:#10C176;
							margin-right:8rpx;
						}
					}
				}
			}
		}
	}
</style>
<template>
	<view class="content">
		
 		<u-navbar @rightClick="rightClick" leftIconColor="#fff" :autoBack="true" bgColor="#10C176">
			<view slot="center" style="color:#fff;">仓库管理</view>
			<view slot="right" @click="$u.route({url:'pages/warehouse/info'})"> <text class="plant-xinjian" style="color:#fff;"/> </view>
		</u-navbar>

		<view class="search">
			<u-icon name="search" color="#999999" size="20"/>
			<input placeholder="请输入搜索内容"/>
			<u-button type="primary" shape="circle" color="#10C176" text="搜索" size="mini"></u-button>
		</view>
		
		<view class="card item" v-for="i in 1" :key="i" @click="$u.route({url})">
			<image src="https://ts1.cn.mm.bing.net/th?id=OIP-C.wc_dCG_KbIKZwMdtD3gL2QHaEt&w=313&h=199&c=8&rs=1&qlt=90&o=6&pid=3.1&rm=2"/>
			<view class="info">
				<view class="title">西南角1号仓库 <text class="plant-youbian"/></view>
				<view class="adder">种植基地进门右手边第3个</view>
				<view class="data">
					<text>库存种类：x种</text> <text>库存量：xkg</text> <text>453㎡</text>
				</view>
				<view class="btns">
					<text class="plant-xiugai">修改</text>
					<text class="plant-shanchu">删除</text>
					<text class="plant-chakan" @click.stop="$u.rotue({url:'pages/warehouse/info'})">查看库存</text>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		methods:{
			rightClick(){}
		}
	}
</script>
