<template>
	<view class="comment-item">
		<view class="comment-header">
			<image class="avatar"
				src="https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain"
				mode="aspectFill"></image>
			<text class="username">方香橙</text>
		</view>
		<view class="comment-body">
			<text class="content-text">我是本书的作者方香橙，这是一本甜文爽文哒！请放心入坑，五星好评！女主又美有个性可爱，绝对不圣母，不傻白！男主身心干净深情独宠媳妇儿一个人...</text>
			<view class="comment-footer">
				<text class="comment-time">2024.07.09</text>
				<view class="comment-likes" @click="goToCommentReply">
					<text class="like-icon">💬</text>
					<text class="like-count">17</text>
				</view>
			</view>
		</view>
	</view>
	
	<!-- 
	 
	 <view class="comment-item">
	 	<view class="comment-header">
	 		<image class="avatar"
	 			src="https://tse4-mm.cn.bing.net/th/id/OIP-C.iUyxJ_fxLjjX3kEBjteXWwAAAA?rs=1&pid=ImgDetMain"
	 			mode="aspectFill"></image>
	 		<text class="username">战斗世界</text>
	 	</view>
	 	<view class="comment-body">
	 		<text class="content-text">这本小说了创意了雄天霸业奇新颖深刻以白色能量为主...</text>
	 	</view>
	 </view>
	 
	 -->
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.comment-item {
		display: flex;
		flex-direction: column;
		gap: 16rpx;

		.comment-header {
			display: flex;
			align-items: center;
			gap: 12rpx;
		}

		.avatar {
			width: 64rpx;
			height: 64rpx;
			border-radius: 50%;
		}

		.username {
			font-size: 28rpx;
			color: #333;
			font-weight: 500;
		}

		.comment-body {
			padding-left: 76rpx;
		}

		.content-text {
			font-size: 28rpx;
			color: #333;
			line-height: 1.6;
		}

		.comment-footer {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 16rpx;
		}

		.comment-time {
			font-size: 24rpx;
			color: #999;
		}

		.comment-likes {
			display: flex;
			align-items: center;
			gap: 4rpx;
		}
	}
</style>