<template>
	<view class="box">
		<view class="top_row">
			<view class="avatar">
				<image :src="item.phone" mode=""></image>
			</view>
			<view class="textInfo">
				<view class="name oneRowText">{{ item.name}}</view>
				<view class="starBox">
					<u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.score" :readonly="true" allowHalf></u-rate>
					<view class="num">{{ item.score?item.score.toFixed(1):0 }}分</view>
				</view>
			</view>
			<view class="date">{{ $u.date(item.createTime ,'yyyy/mm/dd' ) }}</view>
		</view>
		<view class="text">{{ item.description }}</view>
		<view class="imgBox" v-if="item.images&&item.images.length">
			<u-album :urls="item.images"  :multipleSize="'160rpx'"></u-album>
		</view>
		<view class="vdo" v-if="item.videoUrl">
			<video :src="item.videoUrl" objectFit="fill"></video>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['item']
	}
</script>

<style lang="scss" scoped>
	.top_row {
		display: flex;
		align-items: center;
		margin-bottom: 24rpx;
		.avatar {
			width: 60rpx;
			height: 60rpx;
			overflow: hidden;
			border-radius: 50%;
			background: #f6f6f6;
		}
		.textInfo {
			flex: 1;
			width: 0;
			.name {
				font-size: 26rpx;
				color: #333;
				font-weight: 500;
			}
			padding: 0 10rpx;
			
		}
		.date {
				font-size: 24rpx;
				color: #686B73;
		}
	}
		
	.starBox {
	  padding: 10rpx 0 0rpx 0;
	}
		
	.text {
		font-size: 24rpx;
	}
		
	.imgBox {
		display: flex;
		flex-wrap: wrap;
		padding-top: 20rpx;
	  .img {
		margin-top: 20rpx;
		width: 160rpx;
		height: 160rpx;
		border-radius: 8rpx;
		overflow: hidden;
		margin-right: 24rpx;
	  }
	}
	.vdo {
		margin-top: 12rpx;
		width: 360rpx;
		height: 296rpx;
		border-radius: 8rpx;
		overflow: hidden;
		video {
			width: 100%;
			height: 100%;
		}
	}
</style>