<template>
	<view class="interactive-center flex-common-css">
		<Nav :titleColor="'#000'" :title="'互动中心'"></Nav>
		<scroll-view :scroll-y="true" class="list-scroll" @scroll="scroll" @scrolltolower="scrolltolower">
			<view class="info-list-box" v-for="(item,index) in dataList" :key="index">
				<view class="info-name">
					<view class="info-name-left">
						<image class="info-name-left-img sys-radius-round" :src="item.img" mode="">
						</image>
						<view class="info-name-text">
							<view class="sys-size-32 sys-weight-600 sys-color-black">
								{{item.name}}
							</view>
							<view class="sys-size-24 sys-color-gray-9">
								点赞了你的动态
							</view>
						</view>
					</view>
					<view class="sys-size-28 sys-weight-600 sys-radius-200" @click="selectLike"
						:class="item.likeStyle == 1?'info-name-right sys-color-black':'info-name-right-two sys-color-gray-9'">
						{{item.likeStyle == 1?'喜欢Ta':'已喜欢'}}
					</view>
				</view>
				<view class="info-text sys-size-28 sys-color-black">
					{{item.text}}
				</view>
				<view class="info-time">
					<view class="info-time-left">
						<image class="info-time-left-img sys-radius-4" :src="item.imgTwo" mode=""></image>
						<view class="sys-color-gray-9 sys-size-24">
							你发布的动态
						</view>
					</view>
					<view class="info-time-right sys-color-gray-9 sys-size-24">
						{{item.time}}
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		components: {},
		data() {
			return {
				dataList: [{
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '1',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '1',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '2',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '2',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '2',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '2',
				}, {
					'img': '/static/img/temporary/1.png',
					'name': 'wwwwww',
					'text': '今天手机好像撞邪了，拦都拦不住硬要给你打招呼~',
					'imgTwo': '/static/img/temporary/1.png',
					'time': '04-13 06:03:56',
					'likeStyle': '2',
				}]
			};
		},
		mounted() {},
		methods: {
			scroll() {},
			scrolltolower() {},
			selectLike() {},
		},
	}
</script>

<style lang="scss" scoped>
	.interactive-center {
		.list-scroll {
			width: 100%;
			flex: 1;
			overflow: auto;
			padding: 44rpx 32rpx 0;
			box-sizing: border-box;

			.info-list-box {
				width: 100%;
				height: auto;
				display: flex;
				flex-direction: column;
				padding: 0 0 32rpx 0;
				border-bottom: 1rpx solid #F2F2F2;
				margin: 0 0 32rpx 0;

				.info-name {
					display: flex;
					align-items: center;
					justify-content: space-between;
					margin: 0 0 34rpx 0;

					.info-name-left {
						display: flex;
						align-items: center;

						.info-name-left-img {
							width: 80rpx;
							height: 80rpx;
							margin: 0 20rpx 0 0;
						}

						.info-name-text {
							.user-name {
								margin: 0 0 8rpx 0;
							}
						}
					}

					.info-name-right {
						padding: 6rpx 16rpx;
						border: 2rpx solid #141414;
					}

					.info-name-right-two {
						padding: 6rpx 16rpx;
						border: 2rpx solid #999;
					}
				}

				.info-text {
					margin: 0 0 32rpx 0;
				}

				.info-time {
					display: flex;
					align-items: center;
					justify-content: space-between;

					.info-time-left {
						display: flex;
						align-items: center;

						.info-time-left-img {
							width: 48rpx;
							height: 48rpx;
							margin: 0 12rpx 0 0;
						}
					}
				}
			}
		}
	}
</style>
