materials.wxml 2.51 KB
<view class="pos-container .max-screen-close">
    <view class="bg scroll_height_d_part"></view>
    <view wx:if="{{showPage}}" class="main">
        <view class="main-box">
            <van-tabs wrap-class="scroll_height_d_part" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
                <van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
                <block wx:for="{{menuList}}" wx:key="index">
                    <van-tab title="{{item.title}}" name="{{item.name}}">
                        <view class="content-box">
                            <scroll-view style="height:calc(100vh - 180px - var(--fontSize300))" scroll-y class="list">
                                <list-item noResult="{{noResult}}" listItem="{{item}}"></list-item>
                            </scroll-view>
                        </view>
                    </van-tab>
                </block>
            </van-tabs>
        </view>
    </view>
</view>
<!-- 平板 -->
<view class="pos-container min-screen-close .max-screen-open">
     <view class="" style="height:{{navBarHeight}}px;background:white"></view>
    <view class="max-bg scroll_height_d_part"></view>
    <view wx:if="{{showPage}}" class="main">
        <view class="main-box">
            <van-tabs id="tabID" line-width="34px" tab-class="tab-class" wrap-class="scroll_height_d_part" sticky bind:change="onChangeTab" border title-inactive-color="#5A5E66" title-active-color="#347BFF" color="#347BFF" active="video">
                <van-search left-icon="/images/search.png" shape="round" bind:clear="onCancel" bind:change="onChangeSearch" bind:search="onSearch" class="scroll_height_d_part" value="{{ searchKey }}" placeholder="标题" />
                <block wx:for="{{menuList}}" wx:key="index">
                    <van-tab title="{{item.title}}" name="{{item.name}}">
                        <view class="content-box">
                            <scroll-view style="height:calc(100vh - var(--fontSize300)) - {{navBarHeight}}px" scroll-y class="list">
                                <list-item noResult="{{noResult}}" isMaxScreen="{{true}}" listItem="{{item}}"></list-item>
                            </scroll-view>
                        </view>
                    </van-tab>
                </block>
            </van-tabs>
        </view>
    </view>
</view>