<template>
	<view class="bg">
		<headerVue />
		<image src="https://static.ticket.sz-trip.com/epicSoul/readingBody/xiangImg.png" mode="widthFix" class="topImg"></image>
		
		<view class="box">
			<view v-for="(item,index) in list" :key="index" class="item">
				<image :src="showImg(item.img)" mode="aspectFill" class="headimg"></image>
				<view class="content">
					<view class="title text-overflow">{{item.title}}</view>
					<view class="flex-between">
						<view class="price">￥{{(item.price / 100).toFixed(2)}}</view>
						<image src="https://static.ticket.sz-trip.com/epicSoul/readingBody/gwc.png" mode="" class="gwc"></image>
					</view>
				</view>
			</view>
		</view>
		
		<view style="margin: 80rpx 50rpx;">
			富文本 富文本
			两千年的柏树“清、奇、古、怪”，自西汉年便扎根江南太湖畔的光福。每年柏子熟时，遵循古老的仪式：于古柏枝干系上红绳，燃清香，向自然致以敬意。这是江南百姓世代流传的生存智慧，将草木荣枯视为对生命共同体的敬畏，也感恩时间的馈赠。
		</view>
	</view>
</template>

<script>
	import headerVue from "@/components/header.vue"
	export default {
		components: {
			headerVue
		},
		data() {
			return {
				list: [
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒湖石初醒湖石初醒湖石初醒湖石初醒',
						price: '13800'
					},
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					},
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					},
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					},
					{
						
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					},
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					},
					{
						img: 'https://static.ticket.sz-trip.com/epicSoul/readingBody/productImg.png',
						title: '湖石初醒',
						price: '13800'
					}
				]
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		padding-bottom: 200rpx;
	}
	
	.topImg {
		width: 100%;
	}
	
	.box {
		margin: 95rpx 45rpx 0;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		
		.item {
			margin-bottom: 45rpx;
			
			.headimg {
				width: 204rpx;
				height: 204rpx;
			}
			
			.content {
				width: 204rpx;
				margin-top: 5rpx;
				
				.flex-between {
					margin-top: 10rpx;
				}
				
				.title {
					font-weight: 400;
					font-size: 30rpx;
					color: #000000;
				}
				
				.price {
					font-size: 18rpx;
				}
				
				.gwc {
					width: 28.18rpx;
					height: 24.58rpx;
				}
			}
		}
	}
</style>