materials.wxml
2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!-- 非大屏 -->
<view class="pos-container .max-screen-close">
<view class="bg"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs 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 onResult="{{onResult}}" isMaxScreen="{{false}}" 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"></view>
<view wx:if="{{showPage}}" class="main">
<view class="main-box">
<van-tabs id="tabID" line-width="34px" tab-class="tab-class" 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 onResult="{{onResult}}" isMaxScreen="{{true}}" listItem="{{item}}"></list-item>
</scroll-view>
</view>
</van-tab>
</block>
</van-tabs>
</view>
</view>
</view>