<template>
	<view class="active-card">
		<view class="active-title">【{{item.name}}】</view>
		<view class="active-time flex align-center">
			<text>【电话】{{item.phone}}</text>
		</view>
		<view class="active-time flex align-center">
			<text>【地址】{{item.region}}</text>
		</view>
		<view class="active-time flex align-center">
			<text>【详细地址】{{item.detailAddress}}</text>
		</view>
	</view>
</template>

<script>
	export default{
		props:{
			text:{
				type:String,
				default:'查看详情'
			},
			item:{
				type:Object,
			},
			i:{
				type:Number,
			}
		},
		data(){
			return{
				
			}
		},
		methods:{
			seeDetail(){
				this.$emit('seeDetail',this.item)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.active-card {
		
		background: #ffffff;
		border-radius: 12rpx;
		box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16); 
		overflow: hidden;
		padding-bottom: 10rpx;
		margin-bottom: 20rpx;
		
		.active-title {
			word-wrap:break-word;
			word-break:break-all; 
			font-size: 32rpx;
			color: #000;
			font-weight: 700;
			margin-top: 20rpx;
			line-height: 60rpx;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
		
		.active-time {
			word-wrap:break-word;
			word-break:break-all; 
			color: #707070;
			font-size: 28rpx;
			margin: 20rpx 0;
			image {
				width: 33rpx;
				height: 33rpx;
				margin-right: 27rpx;
			}
			/* 文本不会换行显示 */
			white-space: nowrap;
			/* 超出盒子部分隐藏 */
			overflow: hidden;
			/* 文本超出的部分打点显示 */
			text-overflow: ellipsis;
		}
		.active-add {
			color: #707070;
			font-size: 28rpx;
			word-wrap:break-word;
			word-break:break-all; 
			/* 文本不会换行显示 */
			white-space: nowrap;
			/* 超出盒子部分隐藏 */
			overflow: hidden;
			/* 文本超出的部分打点显示 */
			text-overflow: ellipsis;
			// overflow: hidden;/*这个参数根据需求来决定要不要*/
			image {
				width: 30rpx;
				height: 35rpx;
				margin-right: 27rpx;
			}
		}
		.active-time2 {
			color: #707070;
			font-size: 28rpx;
			margin: 20rpx 0;
			image {
				width: 33rpx;
				height: 33rpx;
				margin-right: 27rpx;
			}
		}
		
		.active-menu {
			margin-top: 21rpx;
			padding: 0 10rpx;
			.menu-price {
				font-size: 32rpx;
				.price {
					color: #D33D3E;
					font-size: 34rpx;
					font-weight: 500;
				}
			}
			.menu-btn {
				width: 213rpx;
				height: 79rpx;
				display: flex;
				align-items: center;
				justify-content: center;
				color: #00CCCC;
				font-size: 30rpx;
				font-weight: 500;
			}
			.menu-btn::after {
				content: " ";
				width: 15rpx;
				height: 15rpx;
				border-bottom: 3rpx solid #00CCCC;
				border-right: 3rpx solid #00CCCC;
				transform: rotate(-45deg);
				margin-left: 8rpx;
			}
		}
	}
</style>