页面设计需要,纵向滑动swiper里面放了一个横向滑动siwper, 横向swiper 需要滑动才会出现指示点。(纵向没有不需要指示点,只有横向需要)
下面是大概的页面结构
<swiper vertical=“true”>
<swiper-item>
<view class=‘swiper-main1’></view>
<view bindtap=‘binEwm’ class=‘swiper-ewm’></view>
</swiper-item>
<swiper-item>
<swiper class=‘index-scroll-top-box’ indicator-color="{{indicatorcolor}}" indicator-active-color="{{indicatoractive}}" indicator-dots="{{indicatordots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block wx:for="{{imgUrls}}">
<swiper-item>
<image class=‘index-scroll-top1’ src="{{item}}" />
</swiper-item>
</block>
</swiper>
</swiper-item>
</swiper>