<template>
	<view class="topic">
		<view class="tit-box">
			<text class="tit-tit">咸蛋黄酱，这是什么神仙食物</text>
			<view class="author">
				<van-icon class='icon' name="/static/imgs/zz.png" size="26rpx" />
				<text class="tit-author">幸福天使&ensp;&ensp;{{new Date().toJSON().slice(0,10)}}</text>
			</view>
			<swiper class="swiper-box" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" circular>
				<swiper-item v-for="(item,index) in 3" :key='index'>
					<image class="swiper-image" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
					 mode="aspectFit" :draggable="false" />
				</swiper-item>
			</swiper>
			<text class="tit-text">\t&ensp;&ensp;&ensp;&ensp;不管什么零食，沾上了“咸蛋黄”三个字就让人无法自拔,总是舔完手指还觉得不满足。最近集市上了款咸蛋黄酱，可以一勺一勺挖着吃，吃过的人都表示，这是什么神仙食物啊!同事告诉我，这一罐等于12颗咸蛋黄，只用正宗高邮咸鸭蛋，腌制30天以上的,所以吃起来才这么油亮粉沙、咸香浓郁。咸蛋黄酱是百搭食材，炒什么都好吃，还可以当做各种蘸料。甚至搭配米饭，不用其他多余的东西，一勺就能干掉半碗饭。自从这么吃过一回后，它的地位已经和我最爱的韩式拌饭不相上下了。好吃不贵，记得多买两罐，以免吃完还想吃。

				&ensp;&ensp;&ensp;&ensp;最近集市上了款咸蛋黄酱，可以一勺一勺挖着吃，吃过的人都表示，这是什么神仙食物啊!同事告诉我，这一罐等于12颗咸蛋黄，只用正宗高邮咸鸭蛋，腌制30天以上的，所以吃起来才这么油亮粉沙、咸香浓郁。咸蛋黄酱是百搭食材，炒什么都好吃，还可以当做各种蘸料。甚至搭配米饭，不用其他多余的东西，一勺就能干掉半碗饭。自从这么吃过一回后，它的地位已经和我最爱的韩式拌饭不相上下了。好吃不贵，记得多买两罐，以免吃完还想吃。`</text>
		</view>
		<view class="productList">
			<view v-for="(item,index) in 3" :key='index' class="productItem">
				<image class="productList-image" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
				 mode="aspectFit" :draggable="false" />
				<view class="productList-right">
					<text class="tit">流水咸蛋黄酱210克</text>
					<text class="des">细腻流沙，香浓咸鲜</text>
					<text class="price">￥19.00 </text>
					<button class="btn">去购买</button>
				</view>
			</view>
		</view>
		<view class="share">
			<button class="btn">
				<van-icon class='icon' name="/static/imgs/share.png" size="26px" />
				分享给好友</button>
		</view>
		<view class="comment">
			<view class="comment-tit">
				<text class="tit-left">精选评论</text>
				<text class="tit-right">全部评论 ></text>
			</view>
			<view v-for="(item,index) in 3" :key='index' class="comment-list">
				<view class="comment-user">
					<image class="user-ava" src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
					 mode=""></image>
					<view class="user-right">
						<text class="user-name">终极吃货</text>
						<view class="user-des">
							<text class="time">{{new Date().toJSON()}}</text>
							<text class="up">100点赞</text>
						</view>
					</view>
				</view>
				<view class="comment-des">
					<text>咸蛋黄酱是百搭食材，炒什么都好吃，还可以当做各种蘸料。自从这么吃过一回后，它的地位已经和我最爱的韩式拌饭不相上下了。</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="scss" scoped>
	.topic {
		background: #F5F5F5;
	}

	.tit-box {
		display: flex;
		flex-direction: column;
		background: #FFFFFF;
		padding: 30rpx;

		.tit-tit {
			height: 46rpx;
			font-size: 44rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #000000;
			margin-bottom: 24rpx;
		}

		.author {
			display: flex;
			align-items: center;
			margin-bottom: 43rpx;

			.tit-author {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #666666;
				margin-left: 5rpx;
			}
		}


		.swiper-box {
			width: 680rpx;
			height: 382.5rpx;
			margin-bottom: 30rpx;
			background-color: #000000;

			.swiper-image {
				width: 100%;
				height: 100%;
			}
		}

		.tit-text {
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #0F0404;
			line-height: 48rpx;
		}
	}

	.productList {
		margin-top: 20rpx;
		background: #FFFFFF;
		margin-bottom: 30rpx;
		padding: 0 30rpx;

		.productItem {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			padding: 30rpx 0;
			border-bottom: 1rpx solid #E8E8E8;

			&:last-child {
				border-bottom: none !important;
			}

			.productList-image {
				flex-shrink: 0;
				width: 220rpx;
				height: 220rpx;
				border-radius: 10rpx;
				background-color: #C8C7CC;
			}

			.productList-right {
				box-sizing: border-box;
				padding: 20rpx;
				width: 470rpx;
				display: flex;
				flex-direction: column;

				.tit {
					height: 30rpx;
					font-size: 30rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #0F0404;
					margin-bottom: 18rpx;
				}

				.des {
					height: 27rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #666666;
					margin-bottom: 20rpx;
				}

				.price {
					height: 34rpx;
					font-size: 26rpx;
					font-family: Adobe Heiti Std;
					font-weight: normal;
					color: #E31818;
					margin-bottom: 31rpx;
				}

				.btn {
					width: 138rpx;
					height: 50rpx;
					background: linear-gradient(90deg, #E31818, #ED3E24, #ED4F24);
					border-radius: 25rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #FFFFFF;
					line-height: 20rpx;
					margin: 0;
					display: flex;
					align-items: center;
				}
			}
		}
	}


	.share {
		margin-bottom: 30rpx;
		padding: 0 30rpx 10rpx;

		.btn {
			height: 100rpx;
			background: linear-gradient(90deg, #E31818, #ED3E24, #ED4F24);
			border-radius: 100rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #FFFFFF;
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0rpx 5rpx 10rpx #E31818;

			.icon {
				margin-right: 22rpx;
			}
		}
	}

	.comment {
		padding: 30rpx;
		background-color: #FFFFFF;

		.comment-tit {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding-bottom: 15rpx;

			.tit-left {
				border-left: 8rpx solid #E31818;
				font-size: 30rpx;
				line-height: 58rpx;
				padding: 0 11rpx;
				color: #0F0404;
			}

			.tit-right {
				font-size: 26rpx;
				color: #999999;
				line-height: 58rpx;
				padding: 11rpx;
			}
		}

		.comment-list {
			border-top: 1rpx solid #e8e8e8;
			padding-top: 32rpx;

			.comment-user {
				display: flex;
				align-items: center;

				.user-ava {
					width: 80rpx;
					height: 80rpx;
					border-radius: 50%;
					margin-right: 21rpx;
				}

				.user-right {
					flex: 1;
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					height: 70rpx;

					.user-name {
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #0F0404;
						line-height: 20rpx;
					}

					.user-des {
						display: flex;
						justify-content: space-between;
						font-size: 26rpx;
						font-family: PingFang SC;
						font-weight: 400;
						color: #999999;
					}
				}
			}

			.comment-des {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #666666;
				line-height: 39rpx;
				padding: 23rpx 0;
			}
		}

	}
</style>
