<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>
|