|
|
|
@ -1,53 +1,10 @@
|
|
|
|
|
<!--index.wxml-->
|
|
|
|
|
<view class="container">
|
|
|
|
|
<van-tabs active="{{ active }}">
|
|
|
|
|
<van-tab title="标签 1">内容 1</van-tab>
|
|
|
|
|
<van-tab title="标签 2">内容 2</van-tab>
|
|
|
|
|
<van-tab title="标签 3">内容 3</van-tab>
|
|
|
|
|
<van-tab title="标签 4">内容 4</van-tab>
|
|
|
|
|
<van-tab title="标签 5">内容 5</van-tab>
|
|
|
|
|
<van-tab title="标签 6">内容 6</van-tab>
|
|
|
|
|
</van-tabs>
|
|
|
|
|
<view class="nav">
|
|
|
|
|
<!-- <van-tabs v-model:active="active" swipeable>
|
|
|
|
|
<van-tab v-for="(item,index) in arr" :title="item.title" :to="item.path">
|
|
|
|
|
<router-view></router-view>
|
|
|
|
|
<van-tabs class="menu-tabs" active="{{ active }}">
|
|
|
|
|
<van-tab wx:for="{{navData}}" title="{{item.text}}">
|
|
|
|
|
<data-child wx:if="{{item.component === 'data-child'}}"></data-child>
|
|
|
|
|
|
|
|
|
|
</van-tab>
|
|
|
|
|
</van-tabs> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<scroll-view scroll-x="true" class="nav" scroll-left="{{navScrollLeft}}" scroll-with-animation="{{true}}">
|
|
|
|
|
<block wx:for="{{navData}}" wx:for-index="idx" wx:for-item="navItem" wx:key="idx" :to="item.path">
|
|
|
|
|
<!-- 判断是否选中,选中设置样式
|
|
|
|
|
switchNav -->
|
|
|
|
|
<view class="nav-item {{currentTab == idx ?'active':''}}" data-current="{{idx}}" bindtap="switchNav">
|
|
|
|
|
{{navItem.text}}</view>
|
|
|
|
|
</block>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
<scroll-view class="scrollList" scroll-x="true" enable-flex="true">
|
|
|
|
|
<text wx:for="{{condition}}" class="{{index === 0 ? 'actived' : ''}}" wx:key="index">{{item}}</text>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
<!-- 页面内容
|
|
|
|
|
switchTab -->
|
|
|
|
|
<swiper class="tab-box" current="{{currentTab}}" duration="300" bindchange="switchTab">
|
|
|
|
|
<swiper-item wx:for="{{[0,1,2,3,4,5,6]}}" wx:for-item="tabItem" wx:for-index="idx" wx:key="idx" class="tab-content">
|
|
|
|
|
{{tabItem}}
|
|
|
|
|
</swiper-item>
|
|
|
|
|
</swiper>
|
|
|
|
|
<!-- <view class="mat">
|
|
|
|
|
<view class="mat_card" wx:for="{{toplist}}" wx:key="index" data-id="{{item.id}}" data-name="{{item.name}}" data-url="/pages/material/subpage/newest/newest" bindtap="to">
|
|
|
|
|
<view class="mat_top">
|
|
|
|
|
<image class="mat_image" src="/pages/images/ic_zhuanfa@3x.png"></image>
|
|
|
|
|
<view>
|
|
|
|
|
<van-icon name="arrow" />
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="mat_title">{{item.title}}</view>
|
|
|
|
|
<view class="mat_num">{{item.num}}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view> -->
|
|
|
|
|
</van-tabs>
|
|
|
|
|
<tabbar />
|
|
|
|
|
</view>
|