<template>
	<view class="box">
		<view class="flex-b">
			<view class="name">{{ item.studentName}}</view>
			<view class="date">{{ $u.date(item.createTime ,'yyyy/mm/dd' ) }}</view>
		</view>
		<view class="star_row">
			<u-rate active-color="#FCAC00" inactive-color="#FCAC00" gutter="1" :size="16" :value="item.stars"   :count="5" :readonly="true" allowHalf></u-rate>
			<view class="num">{{ item.stars }}</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" controls></video>
		</view>
	</view>
</template>

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

<style lang="scss" scoped>
	.box {
		border-bottom: 1px solid #f4f4f4;
		padding: 24rpx 0 24rpx 0;
	}
	.flex-b {
		align-items: center;
	  .name {
		font-weight: 600;
		font-size: 32rpx;
		color: #333;
	  }
		
	  .date {
		font-size: 24rpx;
		color: #686B73;
	  }
	}
	.vdo {
		width: 360rpx;
		margin-top: 12rpx;
		video {
			width: 100%;
			height: 180rpx;
			display: block;
		}
	}
	.star_row {
		display: flex;
		align-items: center;
		margin: 10rpx 0;
	  .num {
		font-size: 24rpx;
		font-weight: 700;
	  }
	}
	
	.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;
	  }
	}
</style>