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
94
95
96
97
98
99
100
101
102
103
104
105
<view class="container">
  <view wx:if="{{loading}}" class="loading">加载中...</view>
  <view wx:else>
    <view class="info-card">
      <text class="section-title">项目信息</text>
      <view class="info-row">
        <text class="label">比赛名称</text>
        <text class="value">{{detail.activityName || '-'}}</text>
      </view>
      <view class="info-row">
        <text class="label">项目名称</text>
        <text class="value">{{detail.projectName || '-'}}</text>
      </view>
      <view class="info-row">
        <text class="label">当前状态</text>
        <text class="status">{{detail.stateText || '未知'}}</text>
      </view>
      <view class="info-block">
        <text class="label">项目简介</text>
        <text class="description">{{detail.description || '暂无简介'}}</text>
      </view>
    </view>
 
    <view class="info-card">
      <text class="section-title">学员信息</text>
      <view class="info-row">
        <text class="label">姓名</text>
        <text class="value">{{detail.playerInfo.name || '-'}}</text>
      </view>
      <view class="info-row">
        <text class="label">联系方式</text>
        <text class="value">{{detail.playerInfo.phone || '-'}}</text>
      </view>
    </view>
 
    <block wx:if="{{detail.submissionFiles && detail.submissionFiles.length}}">
      <view class="info-card">
        <text class="section-title">提交资料</text>
        <view class="media-list">
          <view
            class="media-item"
            wx:for="{{detail.submissionFiles}}"
            wx:key="id"
            data-index="{{index}}"
            bindtap="onMediaTap"
          >
            <view class="media-thumb-wrapper">
              <block wx:if="{{item.mediaType === 'image' || item.mediaType === 'video'}}">
                <image
                  wx:if="{{item.thumbUrl}}"
                  class="media-thumb"
                  src="{{item.thumbUrl}}"
                  mode="aspectFill"
                />
                <text wx:else class="icon media-icon placeholder ic-picture"></text>
              </block>
              <text wx:elif="{{item.mediaType === 'pdf'}}" class="icon media-icon pdf ic-pdf"></text>
              <text wx:elif="{{item.mediaType === 'word'}}" class="icon media-icon doc ic-word"></text>
              <text wx:else class="icon media-icon file ic-file"></text>
              <text wx:if="{{item.mediaType === 'video'}}" class="icon media-play ic-video-play"></text>
            </view>
            <view class="media-info">
              <text class="media-name">{{item.name || '资料文件'}}</text>
              <text class="media-size">{{getFileSizeText(item.size)}}</text>
            </view>
          </view>
        </view>
      </view>
    </block>
 
    <block wx:else>
      <view class="info-card">
        <text class="section-title">提交资料</text>
        <view class="empty-media">暂无上传的资料文件</view>
      </view>
    </block>
 
    <view class="info-card">
      <text class="section-title">审核意见</text>
      <textarea
        class="feedback-input"
        placeholder="请输入审核意见(可选)"
        value="{{feedback}}"
        bindinput="onFeedbackInput"
        maxlength="500"
        auto-height
      />
    </view>
 
    <view class="action-bar">
      <button
        class="reject-btn"
        bindtap="onReject"
        loading="{{submitting}}"
        disabled="{{submitting}}"
      >驳回</button>
      <button
        class="approve-btn"
        bindtap="onApprove"
        loading="{{submitting}}"
        disabled="{{submitting}}"
      >审核通过</button>
    </view>
  </view>
</view>