teachApply.wxml
3.11 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<navigation-bar
bindnavbarReady="navbarReady"
class="navigation-header"
showBack="{{ true }}"
bindback="onBack"
navStyle="background-color:#ffffff;box-shadow:none;"
>
<view class="page-title">带教申请</view>
</navigation-bar>
<view class="bg" style="height: {{ navBarHeight }}px;"></view>
<view class="teach-page" style="padding-top: {{ navBarHeight }}px;">
<view class="top-box">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input
type="text"
placeholder="关键词"
class="input"
model:value="{{ keyword }}"
placeholder-class="input-placeholder"
bindinput="onKeywordInput"
bindconfirm="search"
/>
<view
wx:if="{{ keyword }}"
class="search-clear-wrap"
catchtap="clearKeyword"
>
<image src="/images/clear.png" class="search-clear" />
</view>
</view>
</view>
<view class="tab_box" wx:if="{{ tabList.length }}">
<tab-bar tabList="{{ tabList }}" bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
</view>
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="onRefresh"
bindscrolltolower="onReachBottom"
class="list"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<view class="list-content">
<block wx:if="{{ displayList.length > 0 }}">
<view class="empty-box"></view>
<block wx:for="{{ displayList }}" wx:key="applicationId">
<view class="item content" bindtap="openDetail" data-item="{{ item }}">
<view class="item-top">
<view class="title text-hide">{{ item.title }}</view>
<view
class="status text-center"
style="color:{{ item.statusStyle.color }};background-color:{{ item.statusStyle.background }};"
>
{{ item.statusName }}
</view>
</view>
<view class="order-list">
<view
class="order flex"
wx:for="{{ listFields }}"
wx:key="key"
wx:for-item="field"
>
<view class="order-label">{{ field.label }}</view>
<view class="order-value {{ field.ellipsis ? 'order-value--ellipsis' : '' }}">
{{ item[field.key] || '-' }}
</view>
</view>
</view>
<view class="btn-box flex">
<view></view>
<view class="btn btn-view" catchtap="openDetail" data-item="{{ item }}">查看</view>
</view>
</view>
</block>
<view class="list-nothing" wx:if="{{ nothing }}">到底了~</view>
</block>
<empty-data wx:else emptyText="暂无带教申请" />
</view>
</scroll-view>
</view>
<view class="teach-entry" bindtap="goAddTeach">
<image class="teach-entry__icon" src="/images/adddaijiao.png" mode="aspectFit" />
<text class="teach-entry__text">新增带教</text>
</view>