<template>
	<view class="cart">
		<u-image :src="info.cemeteryMainImg" :width="width" :height="height" mode="scaleToFill" border-radius="12rpx"></u-image>
		<view class="center">
			<view class="name">
				{{info.cemeteryName}}
			</view>
			<view class="years positon">
				开发时间: {{info.years}}年
			</view>
			<view class="positon">
				{{info.address}}
			</view>
			<!-- 	<view class="link">
				链上查看
			</view> -->
			<view class="location">
				陵园详情 <view class="icon u-margin-left-10" >

				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			width: {
				type: String,
				default: "100%"
			},
			height: {
				type: String,
				default: "100%"
			},
			info: {
				type: Object,
				default: () => {
					return {
						cemeteryMainImg: "../../../../static/banner.png",
						pagodaName: '云凌藏隐陵园002号神塔',
						graveNum: '72墓穴',
						floor: '4',
						link: ''
					}
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.cart {
		display: flex;
		align-items: center;
		width: 100%	;
		// transform: translateY(-20rpx);
		.center {
			margin-left: 24rpx;
			flex: 1;
			height: 100%;
		}

		.name {
			color: #303133;
			font-size: 32rpx;
			font-weight: 600;
			line-height: 32rpx;
			margin-top: 10rpx;
		}

		.positon {
			color: #909399;
			font-size: 24rpx;
			margin-top: 15rpx;
		}

		.link {
			margin-top: 12rpx;
			width: 114rpx;
			height: 44rpx;
			background-color: #edf5ff;
			color: #509EFA;
			font-size: 20rpx;
			text-align: center;
			line-height: 44rpx;
			border-radius: 8rpx;
		}

		.location {
			margin-top: 38rpx;
			color: #909399;
			width: 100%;
			display: flex;
			font-size: 24rpx;
			justify-content: flex-end;
			.icon {
				width: 24rpx;
				height: 24rpx;
				background-image: url(../../../../static/arrow_right.png);
				background-size: 100% 100%;
				transform: translateY(8rpx);
				margin-right: 10rpx;
			}
		}
	}
</style>
