trainingMaterials.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
<!-- 非大屏 -->
<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>