<swiper :current="currentIndex" :style="{'height': height + 'px'}" duration="250" @change="_changeItem">
<swiper-item>
<scroll-view scroll-y :style="{'height': height + 'px'}">
<view class="scroll-main" hover-class="hover">
.....
</view>
</scroll-view>
</swiper-item>
<swiper-item>
<scroll-view scroll-y :style="{'height': height + 'px'}">
<view class="scroll-main" hover-class="hover">
.....
</view>
</scroll-view>
</swiper-item>
<swiper-item>
<scroll-view scroll-y :style="{'height': height + 'px'}">
<view class="scroll-main" hover-class="hover">
.....
</view>
</scroll-view>
</swiper-item>
</swiper>
const systemInfo = uni.getSystemInfoSync();
this.height = systemInfo.windowHeight;
0 个回复