<template>
	<view class="infoDetail">
		<!-- <video :src="videoUrl" class="myVideo" controls='true'
			:vslide-gesture-in-fullscreen='true' show-fullscreen-btn='true' direction="-90"> 
		</video> -->
		<view class="infoTitle">专家：就地过年要将科学，低风险地区没必要倡导低风险地区没必要倡导</view>
		<view class="timeBox">
			<text class="time">
				3分钟前
			</text>
			<text class="playCount">
				1万次播放量
			</text>
		</view>

		<!-- 底部评论、收藏量、转发-->
		<view class="bottom">
			<!-- 收藏、评论量 -->
			<view class="count">
				<view class="collect">
					<i class="custom-icon custom-icon-collected"></i>
					2145
				</view>
				<view class="comment" @click="handleComment">
					<i class="custom-icon custom-icon-comment"></i>
					543
				</view>
			</view>
			<!-- 转发 -->
			<u-button type="primary" color="linear-gradient(to top, #f8551d, #f69e36)" @click="handleShare"><i
					class="custom-icon custom-icon-share"></i></u-button>
		</view>
		<!-- 分享弹出组件 -->
		<Share :show="shareShow" @close="closeShare" />
		<!-- 评论弹出组件 -->
		<Comment :show="commentShow" @close="closeComment" />
	</view>
</template>

<script>
	import Share from '@/components/Share/index.vue'
	import Comment from '@/components/Comment/index.vue'
	export default {
		components: {
			Share,
			Comment
		},
		data() {
			return {
				shareShow: false,
				commentShow: false,
				videoUrl:"../../static/bg2.mp4"
			};
		},
		methods: {
			// 点击弹出分享框
			handleShare() {
				this.shareShow = true
			},
			// 关闭分享弹出窗
			closeShare() {
				this.shareShow = false
			},
			// 点击弹出评论列表
			handleComment() {
				this.commentShow = true
			},
			// 关闭分享弹出窗
			closeComment() {
				this.commentShow = false
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		height: 100%;
	}
	.infoDetail {
		height:100%;
		padding: 40rpx;
		background-color: #f9f9f9;

		.custom-icon-collected,
		.custom-icon-comment {
			&::before {
				background: -webkit-linear-gradient(left, #f84a1a, #ffa53e);
				-webkit-background-clip: text;
				-webkit-text-fill-color: transparent;
				font-weight: bold;
			}
		}
		.myVideo{
			width:100%;
			border-radius: 20rpx;
		}

		.infoTitle {
			font-size: 32rpx;
			font-weight: 600;
			margin-top:30rpx;
		}

		.timeBox {
			color: #aaa;
			margin: 40rpx 0;
			font-size: 24rpx;
			.time{
				margin-right: 20rpx;
			}
		}

		.bottom {
			display: flex;
			align-items: center;
			justify-content: space-between;
			width: 100%;
			height: 90rpx;

			.count {
				width: 36%;
				height: 100%;
				background-color: #fff;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-radius: 10rpx;
				padding: 0 30rpx;
				font-size: 20rpx;

				.custom-icon {
					margin-right: 10rpx;
				}

				.collect,
				.comment {
					display: flex;
					align-items: center;
				}
			}

			.u-button {
				width: 12%;
				height: 100%;
				margin: 0;

				.custom-icon-share {
					font-size: 20rpx;
				}
			}
		}

	}
</style>