commentRate.vue 1.2 KB
<template>
	<view class="commentRate">
		<view class="left">
			<image class="avatar" src="https://cdn.uviewui.com/uview/album/2.jpg" mode="widthFix"></image>
		</view>
		<view class="right">
			<view class="info">
				<view class="top">
					<text class="name">CLOOL</text>
					<text class="arenaNum">预订场号:3号场</text>
				</view>
				<u-rate :count="count" active-color="#FF9900" size="20" inactiveColor="#CDCDCD" v-model="value"></u-rate>
			</view>
			<view class="comment_time">2022-12-26</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				count: 5,
				value: 2
			}
		}
	}
</script>

<style lang="scss" scoped>
	.commentRate{
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 24rpx;
		line-height: 32rpx;
		color: #999;
		.left{
			width: 64rpx;
			height: 64rpx;
			border-radius: 50%;
			overflow: hidden;
			margin-right: 16rpx;
			.avatar{
				width: 100%;
				height: 100%;
			}
		}
		.right{
			display: flex;
			justify-content: space-between;
			flex: 1;
			height: 100%;
			.top	{
				margin-bottom: 8rpx;
				.name{
					color: #333;
					margin-right: 10rpx;
				}
			}
		}
	}
</style>