teachApply.wxml 3.11 KB
<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>