效果展示:
test.wxml:
previous-margin='50' next-margin='50' autoplay='true' interval='2000'>
{ { item.text }}
test.wxss:
swiper{
height: 200px;
}
.optionBox {
width: 100%;
height: 90%;
}
.optionBox image {
width: 100%;
height: 100%;
}
.swiperText {
width: 100%;
height: 25px;
text-align: center;
font-family: bariol_bold;
font-size: 0.5em;
color: #4a4a4a;
}
.mask {
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, .5);
position: