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
<view class="container">
  <view class="search-container">
    <view class="search-box">
      <text class="icon search-icon ic-search"></text>
      <input
        class="search-input"
        placeholder="搜索比赛 / 项目 / 学员"
        value="{{searchKeyword}}"
        bindinput="onSearchInput"
        confirm-type="search"
        bindconfirm="onSearch"
      />
      <view class="search-clear" wx:if="{{searchKeyword}}" bindtap="clearSearch">
        <text class="icon clear-icon ic-close"></text>
      </view>
    </view>
  </view>
 
  <view class="tab-bar">
    <view
      class="tab-item {{currentTab === index ? 'active' : ''}}"
      wx:for="{{tabs}}"
      wx:key="value"
      data-index="{{index}}"
      bindtap="switchTab"
    >
      <text class="tab-label">{{item.label}}</text>
      <text class="tab-count">
        {{item.value === 0 ? employeeReviewStats.pendingCount || 0 :
          item.value === 1 ? employeeReviewStats.approvedCount || 0 :
          employeeReviewStats.rejectedCount || 0}}
      </text>
    </view>
  </view>
 
  <view class="list-container">
    <block wx:if="{{loading && list.length === 0}}">
      <view class="loading-state">
        <text class="icon loading-icon ic-refresh"></text>
        <text class="loading-text">正在加载</text>
      </view>
    </block>
 
    <block wx:elif="{{list.length > 0}}">
      <view class="audit-card" wx:for="{{list}}" wx:key="id">
        <view class="card-header">
          <text class="card-title">{{item.projectName || '未命名项目'}}</text>
          <text class="card-status status-{{item.stateType || 'info'}}">{{item.stateText || ''}}</text>
        </view>
        <view class="card-row">
          <text class="card-label">比赛</text>
          <text class="card-value">{{item.activityName || '-'}}</text>
        </view>
        <view class="card-row">
          <text class="card-label">学员</text>
          <text class="card-value">{{item.playerName || '-'}}</text>
        </view>
        <view class="card-row">
          <text class="card-label">报名时间</text>
          <text class="card-value">{{item.applyTime || '-'}}</text>
        </view>
        <view class="card-footer">
          <button class="action-btn" data-id="{{item.id}}" bindtap="goToDetail">审核</button>
        </view>
      </view>
      <view class="load-more" wx:if="{{loadingMore}}">
        <text>加载中...</text>
      </view>
      <view class="load-more" wx:elif="{{!hasMore}}">
        <text>没有更多数据</text>
      </view>
    </block>
 
    <view wx:else class="empty-state">
      <text class="icon empty-icon ic-list"></text>
      <text class="empty-text">暂无符合条件的项目</text>
      <text class="empty-desc">尝试调整筛选条件或搜索其他关键词</text>
    </view>
  </view>
</view>