竖版的tab,点击切换页面,代码如下:
wxml:
<view class="swiper-tab">
<view class="swiper-tab-item {
{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab"><text>最热</text></view>
<view class="swiper-tab-item {
{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab"><text>最新</text></view>
</view>
<view class = "{
{currentTab == 0 ? 'show':'hidden'}}" >
<scroll-view>
</scroll-view>
</view>
<view class = "{
{currentTab == 1 ? 'show':'hidden'}}" >
<scroll-view>