trainingMaterials.wxml 2.44 KB
<!-- 非大屏 -->
<view class="main-box .max-screen-close">
    <van-tabs bind:change="onChangeTab" sticky border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
        <van-search shape="round"  left-icon="/images/search.png"  bind:clear="onCancel" use-action-slot bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" >
           <view bind:tap="toFilterSort" slot="action" class="filter">
                <view class="filter-text {{sortValue?'filter-text-active':''}}">浏览量</view>
                <image class="filter-icon" src="./images/{{sortMap[sortValue]}}.png" />
           </view>
        </van-search>
        <block wx:for="{{menuList}}" wx:key="index">
            <van-tab title="{{item.title}}" name="{{item.name}}">
                <view  class="content-box">
                    <scroll-view style="height:{{scroll_height}}px" scroll-y class="list">
                        <list-item noResult="{{noResult}}" listItem="{{item}}"></list-item>
                    </scroll-view>
                </view>
            </van-tab>
        </block>
    </van-tabs>
</view>
<!-- 平板 -->
<view class="main-box min-screen-close .max-screen-open">
    <van-tabs id="tabID" line-width="34px" tab-class="tab-class" bind:change="onChangeTab" sticky border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
        <van-search shape="round"  left-icon="/images/search.png"  bind:clear="onCancel" use-action-slot bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" >
           <view bind:tap="toFilterSort" slot="action" class="filter">
                <view class="filter-text {{sortValue?'filter-text-active':''}}">浏览量</view>
                <image class="filter-icon" src="./images/{{sortMap[sortValue]}}.png" />
           </view>
        </van-search>
        <block wx:for="{{menuList}}" wx:key="index">
            <van-tab title="{{item.title}}" name="{{item.name}}">
                <view  class="content-box">
                    <scroll-view style="height:{{scroll_height}}px" scroll-y class="list">
                        <list-item noResult="{{noResult}}" isMaxScreen="{{true}}" listItem="{{item}}"></list-item>
                    </scroll-view>
                </view>
            </van-tab>
        </block>
    </van-tabs>
</view>