<style lang="scss" scoped>
	.container{
		min-height: 100%;
		background:#F6F6F6;
		padding-bottom:20rpx;
		
		&>.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="container">
		<d-navbar style="--bg:#10C176;--c:#fff;" text="仓库管理" isBack>
			<text class="plant-xinjian" slot="right" @click="$u.route({url:'pages/warehouse/info'})"/>
		</d-navbar>

		<d-search style="margin-top:30rpx;"/>
		
		<view class="card item" v-for="i in 1" :key="i" @click="$u.route({url:'pages/warehouse/detail'})">
			<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.route({url:'pages/warehouse/info'})">查看库存</text>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		methods:{
			rightClick(){}
		}
	}
</script>
