一、效果展示
二、代码实现
- HTML
<view>
<view class="swiper-tab">
<view class="bre swiper-tab-list {
{currentTab==0 ? 'on' : ''}}" data-current="0" bindtap="swichNav">图文详情</view>
<view class="swiper-tab-list {
{currentTab==1 ? 'on' : ''}}" data-current="1" bindtap="swichNav">规格参数</view>
<view class="swiper-tab-list {
{currentTab==2 ? 'on' : ''}}" data-current="2" bindtap="swichNav">服务保障</view>
<view class="s