<template>
	<view class="list-border">
		<view class="list-container">
			<view class="shop-list-img">
				<u-image width="80px" height="80px" :src="shopInfo.imageUrl" radius="8px"></u-image>
			</view>
			<view class="text-area">
				<text>{{shopInfo.title}}</text>
				<view class="pos-and-sqr">
						<view>
							<text>锦江区</text>
						</view>
						<view>
							<text>200m2</text>
						</view>
					</view>
				<view class="rent-and-date">
					<text>租金：{{shopInfo.price}}元/月</text>
					<text>发布日期：{{shopInfo.date}}</text>
				</view>
			</view>
		</view>
		<view class="list-ads" style="font-size: 11px;">
			<view>
				<text>已将该店推给 </text> 
				<text style="color:#ce3b3b;margin: 0 4px;"> {{shopInfo.promotionNum}} </text> 
				<text> 位潜在客户</text>
			</view>
			<text style="color:#ce3b3b">我也要推广>></text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			shopInfo: {
				type:Object,
				default(){
					return {
						imageUrl: 'https://alifei01.cfp.cn/creative/vcg/800/new/VCG41175510742.jpg',
						title: '琴行铺面转让',
						promotionNum: 23,
						price: 5000,
						date: '2023-11-02'
					}
				}
			},
			
			
		},
		data() {
			return {
				
			}
			
		},
		computed: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.list-border {
		margin-top: 10px;
		padding: 10px;
		background-color: #fff;
		border-radius: 7px;
		box-shadow: 0 1px 2px 0 rgba(224, 224, 224, 0.50);
		.list-container {
			display: flex;
			height: 80px;
			margin-bottom: 5px;			
			font-size: 12px;
		}
		.text-area {
			margin-left: 10px;
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			> text {
				font-size: 14px;
			}
			.pos-and-sqr {
				display: flex;
				text {
					margin-right: 6px;
					color: #359867;
				}
			}
			.rent-and-date {
				text {
					margin-right: 6px;
					color: #CC3333;
				}
			}
		}
		.list-ads {
			border-top: 1px solid #f7f7f7;
			padding-top: 5px;
			display: flex;
			justify-content: space-between;
		}
	}
	
</style>