Commit c9634611 sunneyouyang

update

1 个父辈 44b22a3b
...@@ -13,9 +13,7 @@ ...@@ -13,9 +13,7 @@
<v-tabs class="tab_c" v-model="current" :tabs="tabs" @change="changeTab" :fixed="true" line-height="8rpx" <v-tabs class="tab_c" v-model="current" :tabs="tabs" @change="changeTab" :fixed="true" line-height="8rpx"
line-color="#04764E" color="#AAAAAA" activeColor="#04764E" height="88rpx"></v-tabs> line-color="#04764E" color="#AAAAAA" activeColor="#04764E" height="88rpx"></v-tabs>
<z-swiper ref="zSwiper" v-model="tabs" @slideChange="onSwiperChange" :options="options"> <view v-for="(item, index) in tabs" v-if="index==current" :key="item" style="min-height: 90vh;">
<z-swiper-item v-for="(item, index) in tabs" :key="item" style="min-height: 90vh;">
<view v-if="match_map.get(item) && match_map.get(item).length > 0 " style="width: 100vw;"> <view v-if="match_map.get(item) && match_map.get(item).length > 0 " style="width: 100vw;">
<MatchList :data_info="match_map.get(item)" ref="MatchListRef" :key="index" <MatchList :data_info="match_map.get(item)" ref="MatchListRef" :key="index"
...@@ -29,9 +27,7 @@ ...@@ -29,9 +27,7 @@
<text>暂无内容</text> <text>暂无内容</text>
</view> </view>
</z-swiper-item> </view>
</z-swiper>
</view> </view>
</view> </view>
</template> </template>
...@@ -304,7 +300,7 @@ ...@@ -304,7 +300,7 @@
}, },
changeTab(index) { changeTab(index) {
console.log('当前选中的项:' + index) console.log('当前选中的项:' + index)
this.$refs.zSwiper.swiper.slideTo(index); //切换到第一个slide,速度为1秒 // this.$refs.zSwiper.swiper.slideTo(index); //切换到第一个slide,速度为1秒
} }
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!