File tree 1 file changed +19
-17
lines changed
1 file changed +19
-17
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" home" >
3
- <KSwiper
4
- :indicator-dots =" indicatorDots"
5
- :circular =" circularFlag"
6
- :autoplay =" autoplay"
7
- :duration =" duration"
8
- :interval =" interval"
9
- >
10
- <KSwiperItem v-for =" (item,index) in background" :key =" index" >
11
- <KView :class =" 'swiper-item '+ item" >
12
- <img :src =" item" class =" banner-item" mode =' widthFix' />
13
- </KView >
14
- </KSwiperItem >
15
- </KSwiper >
3
+ <div class =" swiper" >
4
+ <KSwiper
5
+ :indicator-dots =" indicatorDots"
6
+ :circular =" circularFlag"
7
+ :autoplay =" autoplay"
8
+ :duration =" duration"
9
+ :interval =" interval"
10
+ >
11
+ <KSwiperItem v-for =" (item,index) in background" :key =" index" >
12
+ <KView :class =" 'swiper-item '+ item" >
13
+ <img :src =" item" class =" banner-item" mode =' widthFix' />
14
+ </KView >
15
+ </KSwiperItem >
16
+ </KSwiper >
17
+ </div >
16
18
<Tabs />
17
19
18
20
<!-- <tabs></tabs>
@@ -119,14 +121,14 @@ export default Vue.extend({
119
121
}
120
122
}
121
123
.swiper {
122
- margin-top : 15 px ;
124
+ margin-top : 20 rpx ;
123
125
width : 100% ;
124
- height : 185 px ;
126
+ height : 300 rpx ;
125
127
}
126
128
.banner-item {
127
129
display : block ;
128
130
margin : auto ;
129
- height : 160 px ;
130
- border-radius : 20 px ;
131
+ width : 95 % ;
132
+ border-radius : 20 rpx ;
131
133
}
132
134
</style >
You can’t perform that action at this time.
0 commit comments