<template>
	<view class="list-border">
		<view class="list-container">
			<view class="text-area">
				<text>{{shopInfo.title}}</text>
				<view class="pos-and-sqr">
						<view>
							<text>{{shopInfo.sqr}}m2</text>
						</view>
						<view>
							<text>{{shopInfo.uname}}</text>
						</view>
						<view>
							<text>{{shopInfo.phoneNum}}</text>
						</view>
					</view>
				<view class="rent-and-date">
					<text>{{shopInfo.category}}</text>
					<text>发布日期：{{shopInfo.pos}}</text>
					<text>发布日期：{{shopInfo.date}}</text>
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		props: {
			shopInfo: {
				type:Object,
				default(){
					return {
						title: '寻找旺铺,200平米左右，寻找旺铺,200平米左右寻找旺铺,200平米左右寻找旺铺,200平米左右',
						price: 5000,
						date: '2023-11-02',
						phoneNum: 13348946108,
						pos: '锦江区',
						category: '餐饮美食',
						uname: '王先生',
						sqr: 200
					}
				}
			},
			
			
		},
		data() {
			return {
				
			}
			
		},
		computed: {
			
		}
	}
</script>

<style lang="scss">
	.list-border {
		margin: 10px 0;
		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: 24px;
					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>