1.index.wxml页面
<!--头部导航-->
<view class="nav-box" id="tab-con">
<scroll-view scroll-x="true" scroll-into-view="{
{activeNav}}" show-scrollbar="false">
<view class="nav-list">
<button bind:tap="changeActiveNav" id="{
{item.value}}" class="{
{activeNav===item.value?'active':''}}" wx:for="{
{navList}}" wx:key="value" data-value="{
{item.value}}">{
{item.label}}</button>
</view>
</scroll-view>
</view>
</view>
<!--页面内容-->
<view>
<scroll-view scroll-y="true" class="tab