<template>
	<view class="works">
		<view class="box">
			<view class="headPortraitimg">
				<image :src="item.userImage" mode="aspectFill"></image>
			</view>
			<view class="YaoduUniversalWall">
				<view class="heide">
					<view class="username text-ellipsis">

					</view>
					<view class="inde">
						男性
					</view>
					<view class="inde">
						99年
					</view>
					<view class="inde">
						大路铺镇
					</view>
					<view class="authentication">
						官方认证
					</view>
				</view>

				<view class="Times">
					<view class="TimeMonth">
						<!-- 10-08 -->
						{{ item.createTime }}发布
					</view>
					<!-- <view class="Month">
						12:34
					</view> -->
				</view>
			</view>
		</view>
		<view class="dynamics" v-html="$utils.stringFormatHtml(item.title)">
		</view>
		<view class="Artworkimages">
			<view class="wrokimg" :key="i" v-for="(img, i) in item.image && item.image.split(',')">
				<image :src="img" mode=""></image>
			</view>
		</view>
		<view class="bottom">
			<view class="browse">
				{{ item.isBrowse }}浏览
			</view>
			<view class="browse">
				{{ item.isComment }}条评论
			</view>
			<view class="Leavingamessage">
				<uv-icon size="30rpx" name="chat"></uv-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {}
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.works {
		margin: 40rpx 24rpx;
		background-color: #fff;
		padding: 40rpx;
		border-radius: 20rpx;
		box-shadow: 0 0 6rpx 6rpx #00000011;

		.box {
			display: flex;
			align-items: center;

			.headPortraitimg {
				width: 100rpx;
				height: 100rpx;
				background-color: greenyellow;
				border-radius: 15rpx;
				overflow: hidden;
				image{
					width: 100%;
					height: 100%;
				}
			}

			.YaoduUniversalWall {
				padding: 0rpx 10rpx;

				.username {
					max-width: 200rpx;
				}

				.heide {
					display: flex;
					justify-content: center;
					align-items: center;
				}

				.inde {
					display: flex;
					justify-content: center;
					align-items: center;
					padding: 0rpx 10rpx;
					margin: 0rpx 5rpx;
					font-size: 20rpx;
					height: 30rpx;
					color: white;
					background-color: rgb(124, 136, 242);
					border-radius: 7rpx;
					flex-shrink: 0;
				}

				.authentication {
					display: flex;
					justify-content: center;
					align-items: center;
					padding: 0rpx 10rpx;
					margin: 0rpx 5rpx;
					font-size: 20rpx;
					height: 34rpx;
					padding: 0rpx 10rpx;
					color: white;
					background-color: #ffd036;
					border-radius: 7rpx;
					flex-shrink: 0;
				}

				.Times {
					display: flex;
					padding: 5rpx 0rpx;
					font-size: 20rpx;
					margin-top: 10rpx;

					.Month {
						margin: 0rpx 15rpx;
					}
				}

			}
		}

		.personalInformation {
			display: flex;

			.inde {
				font-size: 25rpx;
				padding: 0rpx 8rpx;
			}

			.authentication {
				font-size: 25rpx;
			}
		}

		.dynamics {
			margin-top: 20rpx;
			font-size: 28rpx;
			// font-weight: bold;
			// line-height: 35rpx;
			letter-spacing: 3rpx;
		}

		.Artworkimages {
			display: flex;
			flex-wrap: wrap;

			.wrokimg {
				margin: 10rpx;

				image {
					height: 190rpx;
					width: 190rpx;
					border-radius: 20rpx;
				}
			}
		}

		.bottom {
			display: flex;
			margin-top: 20rpx;
			font-size: 20rpx;

			.browse {
				margin: 0rpx 30rpx;
				color: rgb(132, 132, 132);
			}

			.Leavingamessage {
				height: 20rpx;
				width: 20rpx;
				margin-left: auto;
			}
		}
	}
</style>