| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 | <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>
 |