lrj
2 天以前 49c254ed5bdc8348551d808ee72579a6d2221e3b
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<!--pages/project/detail.wxml-->
<view class="container" wx:if="{{!loading}}">
  <!-- 项目基本信息 -->
  <view class="project-card">
    <view class="card-header">
      <text class="card-title">项目信息</text>
      <view class="status-tag status-{{projectDetail.state}}">
        {{statusText}}
      </view>
    </view>
    
    <view class="project-info">
      <view class="info-row">
        <text class="label">项目名称</text>
        <text class="value">{{projectDetail.projectName || '未填写'}}</text>
      </view>
      <view class="info-row">
        <text class="label">比赛名称</text>
        <text class="value">{{projectDetail.activityName}}</text>
      </view>
      <view class="info-row full-width" wx:if="{{projectDetail.description}}">
        <text class="label">项目描述</text>
        <view class="description">{{projectDetail.description}}</view>
      </view>
    </view>
  </view>
 
  <!-- 项目附件 -->
  <view class="attachments-card" wx:if="{{projectDetail.submissionFiles && projectDetail.submissionFiles.length > 0}}">
    <view class="card-header">
      <text class="card-title">项目附件</text>
    </view>
    
    <view class="attachments-list">
      <view 
        class="attachment-item" 
        wx:for="{{projectDetail.submissionFiles}}" 
        wx:key="id"
        bindtap="previewFile"
        data-file="{{item}}"
      >
        <view class="file-info">
          <!-- 图片预览 -->
          <view class="file-preview" wx:if="{{item.mediaType === 'IMAGE'}}">
            <image 
              class="preview-image" 
              src="{{item.fullThumbUrl || item.fullUrl}}" 
              mode="aspectFill"
            />
            <view class="media-type-badge image-badge">图片</view>
          </view>
          <!-- 视频预览 -->
          <view class="file-preview" wx:elif="{{item.mediaType === 'VIDEO'}}">
            <image 
              class="preview-image" 
              src="{{item.fullThumbUrl || item.fullUrl}}" 
              mode="aspectFill"
            />
            <view class="media-type-badge video-badge">视频</view>
            <view class="play-icon">▶</view>
          </view>
          <!-- 其他文件类型 -->
          <view class="file-icon" wx:else>
            <text class="icon-file">📄</text>
          </view>
          <view class="file-details">
            <text class="file-name">{{item.name}}</text>
            <text class="file-size">{{item.fileSizeText}}</text>
          </view>
        </view>
        <view class="file-actions">
          <text class="action-btn">{{item.mediaType === 'IMAGE' ? '预览' : item.mediaType === 'VIDEO' ? '播放' : '查看'}}</text>
        </view>
      </view>
    </view>
  </view>
 
  <!-- 参赛人信息 - 已隐藏 -->
  <!-- 
  <view class="player-card" wx:if="{{projectDetail.playerInfo}}">
    <view class="card-header">
      <text class="card-title">参赛人信息</text>
    </view>
    
    <view class="player-info">
      <view class="player-basic">
        <image 
          class="player-avatar" 
          src="{{projectDetail.playerInfo.userInfo.avatarUrl || '/images/default-avatar.svg'}}" 
          mode="aspectFill"
        ></image>
        <view class="player-details">
          <text class="player-name">{{projectDetail.playerInfo.name}}</text>
          <text class="player-phone">{{projectDetail.playerInfo.phone}}</text>
        </view>
      </view>
      
      <view class="player-extended">
        <view class="info-row" wx:if="{{projectDetail.playerInfo.gender}}">
          <text class="label">性别</text>
          <text class="value">{{genderText}}</text>
        </view>
        <view class="info-row" wx:if="{{projectDetail.playerInfo.education}}">
          <text class="label">学历</text>
          <text class="value">{{educationText}}</text>
        </view>
        <view class="info-row" wx:if="{{projectDetail.playerInfo.birthday}}">
          <text class="label">生日</text>
          <text class="value">{{projectDetail.playerInfo.birthday}}</text>
        </view>
        <view class="info-row full-width" wx:if="{{projectDetail.playerInfo.introduction}}">
          <text class="label">个人简介</text>
          <view class="description">{{projectDetail.playerInfo.introduction}}</view>
        </view>
      </view>
    </view>
  </view>
  -->
 
  <!-- 审核反馈信息 -->
  <view class="feedback-card" wx:if="{{projectDetail.feedback}}">
    <view class="card-header">
      <text class="card-title">审核反馈</text>
    </view>
    
    <view class="feedback-content">
      {{projectDetail.feedback}}
    </view>
  </view>
 
  <!-- 评审信息 -->
  <view class="rating-card" wx:if="{{ratingStats}}">
    <view class="card-header">
      <text class="card-title">评审信息</text>
    </view>
    
    <view class="rating-info">
      <!-- 总平均分显示 -->
      <view class="average-score-section">
        <view class="average-score-container">
          <text class="average-score-label">总平均分</text>
          <text class="average-score-value">{{ratingStats.averageScore || '暂无评分'}}</text>
          <text class="rating-count-text">({{ratingStats.ratingCount || 0}}位评委已评分)</text>
        </view>
      </view>
      
      <!-- 各评委评分详情 -->
      <view class="judge-ratings-section" wx:if="{{ratingStats.judgeRatings && ratingStats.judgeRatings.length > 0}}">
        <text class="section-title">评委评分详情</text>
        <view 
          class="judge-rating" 
          wx:for="{{ratingStats.judgeRatings}}" 
          wx:key="judgeId"
          wx:if="{{item.hasRated}}"
        >
          <view class="rating-header">
            <view class="judge-info">
              <text class="judge-label">评委 {{index + 1}}</text>
              <text class="rating-status rated">已评分</text>
            </view>
            <view class="score-info">
              <text class="score">{{item.totalScore}}分</text>
              <text class="rating-time">{{item.ratingTimeText}}</text>
            </view>
          </view>
          <view class="rating-comment" wx:if="{{item.remark}}">
            <text class="comment-label">点评:</text>
            <text class="comment-text">{{item.remark}}</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</view>
 
<!-- 加载状态 -->
<view class="loading-container" wx:if="{{loading}}">
  <view class="loading-spinner"></view>
  <text class="loading-text">加载中...</text>
</view>
 
<!-- 错误状态 -->
<view class="error-container" wx:if="{{error}}">
  <text class="error-icon">⚠️</text>
  <text class="error-text">{{error}}</text>
  <button class="retry-btn" bindtap="loadProjectDetail">重试</button>
</view>