evaluateCard.vue 1.8 KB
<template>
	<view class="comment_arena">
		<CommonTitleNav titleName="场馆评价">
			<template #side-content>
				<view style="display: flex;align-items: center;font-size: 24rpx;color: #999;">
					<text style="margin-right: 6rpx;">更多评价</text>
					<u-icon name="arrow-right" color="#999999" size="14"></u-icon>
				</view>
			</template>
		</CommonTitleNav>
		
		<!-- 评分 -->
		<view class="evaluate">
			<view class="left_box">
				<view class="evaluate_item">
					<text>整体评价</text>
					<text class="score">4.8</text>
				</view>
			</view>
			<view class="right_box">
				<view v-for="(item, index) in evaluateList" :key="index" class="evaluate_item">
					<text>{{ item.title }}</text>
					<text class="score">{{ item.score }}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import CommonTitleNav from '@/components/commonTitleNav.vue'
	export default{
		components: { CommonTitleNav },
		data() {
			return {
				evaluateList: [
					{ title: '环境', score: '4.6' },
					{ title: '服务', score: '4.5' },
					{ title: '性价比', score: '4.9' },
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	// 场馆评价
	.comment_arena{
		background: #FFFFFF;
		border-radius: 16rpx;
		margin: 24rpx 30rpx;
		padding: 24rpx 32rpx;
		box-sizing: border-box;
		// 评价
		.evaluate{
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-top: 26rpx;
			.left_box{
				flex: 3;
				.evaluate_item{
					align-items: flex-start;
				}
			}
			.right_box{
				flex: 4;
				display: flex;
				justify-content: space-around;
			}
			.evaluate_item{
				display: flex;
				flex-direction: column;
				align-items: center;
				color: #333;
				font-size: 24rpx;
				line-height: 32rpx;
				.score{
					color: #FFA100;
					font-size: 32rpx;
					margin-top: 24rpx;
				}
			}
		}
	}
</style>