Codex Assistant
12 小时以前 915d80766dd8e0157e9b9510b3634ed758eb5c5a
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
<view class="container">
  <view class="search-bar">
    <input
      class="search-input"
      value="{{searchKeyword}}"
      placeholder="搜索比赛 / 项目 / 学员"
      bindinput="onSearchInput"
      confirm-type="search"
      bindconfirm="onSearch"
    />
    <view class="search-actions">
      <button class="primary-btn" bindtap="onSearch">搜索</button>
      <button class="plain-btn" bindtap="clearSearch" wx:if="{{searchKeyword}}">清空</button>
    </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">
    <view wx:if="{{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">
          <text class="card-tip">最新状态:{{item.stateText || '未知'}}</text>
          <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>
    </view>
 
    <view wx:else class="empty-state">
      <text class="empty-icon">📂</text>
      <text class="empty-text">暂无符合条件的项目</text>
      <text class="empty-desc">尝试调整筛选条件或搜索其他关键词</text>
    </view>
  </view>
</view>