|
|
@ -1,11 +1,12 @@ |
|
|
|
<!--pages/home/home.wxml--> |
|
|
|
<view style="height:{{pageHeight}} ; overflow: auto; padding: 0 15px;"> |
|
|
|
<scroll-view scroll-y="true" style="height:{{pageHeight}} ;"> |
|
|
|
<view style="overflow: auto; padding: 0 15px;"> |
|
|
|
<!--轮播图--> |
|
|
|
<view class="card"> |
|
|
|
<swiper class="home-swiper" indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}"> |
|
|
|
<swiper indicator-dots="true" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}"> |
|
|
|
<block wx:for-items="{{swiperData}}" wx:key="*this"> |
|
|
|
<swiper-item> |
|
|
|
<image src="{{item.imgurl}}" mode="aspectFill"/> |
|
|
|
<image src="{{item.imgurl}}" mode="aspectFill" style="width: 100%;"/> |
|
|
|
</swiper-item> |
|
|
|
</block> |
|
|
|
</swiper> |
|
|
@ -74,4 +75,5 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</scroll-view> |