视频展示
动图演示
Demo代码
index.wxml
<view>
<view class='Tab'>
<view class='tabImgL' bindtap='lefttab'>
<image mode="widthFix" src='{
{zuosrc}}'>image>
view>
<scroll-view scroll-x="true" class="tab-h" scroll-left="{
{scrollLeft}}">
<view class="tab-item {
{currentTab==0?'active':''}}" data-current="0" bindtap="swichNav">模块一view>
<view class="tab-item {
{currentTab==1?'active':''}}" data-current="1" bindtap="swichNav">模块二view>
<view class="tab-item {
{currentTab==2?'active':''}}" data-current="2" bindtap="swichNav">模块三view>
<view class="tab-item {
{currentTab==3?'active':''}}" data-current="3" bindtap="swichNav">模块四view>
<view class="tab-item {
{currentTab==4?'active':''}}" data-current="4" bindtap="swichNav">模块五view>
<view class="tab-item {
{currentTab==5?'active':''}}" data-current="5" bindtap="swichNav">模块六view>
scroll-view>
<view class='tabImgR' bindtap='righttab'>
<image mode="widthFix" src='{
{yousrc}}'>image>
view>
view>
<view class="tab-content" current="{
{currentTab}}" duration="100" bindchange="switchTab" style="height:{
{winHeight}}rpx">
<view wx: