Commit 3f5ee58b authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 0b690089
<template> <template>
<view class="banneritem"> <view class="banneritem">
<swiper :autoplay="true" :interval="2000" :duration="500"> <swiper class="banner" :autoplay="true" :interval="2000" :duration="500" :indicator-dots="true">
<swiper-item @click="handleBanner(item)" v-for='(item, index) in bannerList' :key='index' <swiper-item @click="handleBanner(item)" v-for='(item, index) in bannerList' :key='index'>
style="border-radius: 20rpx;">
<image class="banner-img" :src="item.carouselUrl" mode="aspectFill"></image> <image class="banner-img" :src="item.carouselUrl" mode="aspectFill"></image>
</swiper-item> </swiper-item>
</swiper> </swiper>
...@@ -56,6 +55,7 @@ ...@@ -56,6 +55,7 @@
.banner-img { .banner-img {
height: 320rpx; height: 320rpx;
border-radius: 20rpx;
} }
} }
</style> </style>
\ No newline at end of file
.banner { .banner {
width: 100%; width: 100%;
height: 340rpx; height: 320rpx;
vertical-align: bottom; vertical-align: bottom;
&-img { &-img {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment