<template>
	<view>
		<view class="pictureList">
			<view class="title">{{pictureList[0].title}}</view>
			
			<view v-if="pictureList[0].imageType == 10">
				<view class="list_10">
					<swiper class="box" autoplay="true" interval="3000" circular="true">
						<swiper-item class="item" v-for="item in pictureList" :key="item.id">
							<view class="swiper-item">
								<image :src="item.imageUrl" mode="aspectFit"></image>
							</view>
						</swiper-item>
					</swiper>
				</view>
			</view>
			<view v-if="pictureList[0].imageType == 11">
				<view class="list_11">
					<view class="item" v-for="item in pictureList" :key="item.id">
						<view class="img">
							<image :src="item.imageUrl" mode=""></image>
						</view>
					</view>
				</view>
			</view>
			<view v-if="pictureList[0].imageType == 12">
				<view class="list_12">
					<view class="item" v-for="item in pictureList" :key="item.id">
						<view class="img">
							<image :src="item.imageUrl" mode=""></image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:[
			"pictureList"
		],
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.pictureList{
		.title{
			line-height: 30px;
			border-left: 4px solid #009FE8;
			border-radius: 4px;
			padding-left: 10px;
			margin-bottom: 10px;
		}
		
		// 轮播图
		.list_10{
			height: 240px;
			.box{
				width: 700rpx;
				height: 220px;
				.item{
					.swiper-item{
						height: 220px;
						image{
							width: 100%;
							height: 220px;
						}
					}
				}
			}
		}
		
		// 一行两张
		.list_11{
			overflow: hidden;
			.item{
				float: left;
				margin-right: 20rpx;
				margin-bottom: 10px;
				.img{
					width: 340rpx;
					height: 140px;
					image{
						width: 100%;
						height: 100%;
					}
				}
			}
			.item:nth-child(2n){
				margin-right: 0;
			}
		}
		// 一行三张
		.list_12{
			overflow: hidden;
			.item{
				float: left;
				margin-right: 35rpx;
				margin-bottom: 10px;
				.img{
					width: 210rpx;
					height: 100px;
					image{
						width: 100%;
						height: 100%;
					}
				}
			}
			.item:nth-child(3n){
				margin-right: 0;
			}
		}
	}
</style>
