<template>
	<view class="eva-section" @click="navTo">
		<view class="e-header">
			<text class="tit">评价</text>
			<text>({{ list.replyCount }})</text>
			<text class="tip">好评率 {{ list.replyChance }}%</text>
			<text class="iconfont iconenter"></text>
		</view>
		<view class="eva-box">
			<image class="portrait" :src="reply.avatar" mode="aspectFill"></image>
			<view class="right">
				<text class="name">{{ reply.nickname }}</text>
				<text class="con">{{ reply.comment }}</text>
				<view class="con_box">
					<view class="con_image" v-for="item in reply.pics"><image :src="item"></image></view>
				</view>
				<view class="bot">
					<text class="attr"></text>
					<text class="stime">{{ reply.add_time }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props: {
		list: {
			default: ''
		},
		reply: {
			default: ''
		},
	},
	data() {
		return {
		};
	},
	methods: {
		navTo() {
			this.$emit('navTo')
		}
	},
};
</script>

<style lang="scss">
/* 评价 */
.eva-section {
	display: flex;
	flex-direction: column;
	padding: 20rpx 30rpx;
	background: #fff;
	margin-top: 16rpx;
	.e-header {
		display: flex;
		align-items: center;
		height: 70rpx;
		font-size: $font-sm + 2rpx;
		color: $font-color-light;
		.tit {
			font-size: $font-base + 2rpx;
			color: $font-color-dark;
			margin-right: 4rpx;
		}
		.tip {
			flex: 1;
			text-align: right;
		}
		.iconenter {
			margin-left: 10rpx;
		}
	}
	.eva-box {
		display: flex;
		padding: 20rpx 0;
		.portrait {
			flex-shrink: 0;
			width: 80rpx;
			height: 80rpx;
			border-radius: 100px;
		}
		.right {
			flex: 1;
			display: flex;
			flex-direction: column;
			font-size: $font-base;
			color: $font-color-base;
			padding-left: 26rpx;
			.con {
				font-size: $font-base;
				color: $font-color-dark;
				padding: 20rpx 0;
			}
			.bot {
				display: flex;
				justify-content: space-between;
				font-size: $font-sm;
				color: $font-color-light;
			}
		}
	}
	.con_image {
		width: 130rpx;
		height: 130rpx;
		display: inline-block;
		padding: 15rpx;
		image {
			width: 100%;
			height: 100%;
		}
	}
}
</style>
