两个组件实现切换效果
有点麻烦 仔细阅读文档!!!阅读文档!!
<view class="tabList">
<u-tabs :list="tab" :is-scroll="false" :current="current" @change="tabchange"> tab栏目
<swiper :current="swiperCurrent" @change="transition" class="swipeHeiht"> 轮播图开始
<swiper-item class="swiper-item" v-for="(item, index) in newslist" :key="index">
<scroll-view scroll-y style="height:100%;width: 100%;" @scrolltolower="">滚动栏@scrolltolower触底事件
<Item v-for="(itm,index) in 4" :key="index"></Item><!-- //引入组件 -->
</scroll-view>
</swiper-item>
</swiper>
</view>
tab栏切换时触发@change事件 回调函数里e保存当前idx
:current="current" 当前下标
:current&