| | |
| | | <text class="avatar-text">{{avatarText}}</text> |
| | | </view> |
| | | </view> |
| | | <text class="user-name">{{userInfo.name || 'Ethan'}}</text> |
| | | <text class="user-role">{{userRoles.includes('JUDGE') ? '评委' : userRoles.includes('ORGANIZER') ? '主办方' : '参赛者'}}</text> |
| | | <view class="user-info"> |
| | | <text class="user-name">{{userInfo.name || 'Ethan'}}</text> |
| | | <text class="user-role">{{userRoles.includes('JUDGE') ? '评委' : userRoles.includes('ORGANIZER') ? '主办方' : '参赛者'}}</text> |
| | | </view> |
| | | <view class="settings-btn" bindtap="goToPersonalInfo"> |
| | | <text class="icon-settings">⚙️</text> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 我的项目区域 --> |
| | | <view class="projects-section"> |
| | | <text class="section-title">我的项目</text> |
| | | <view class="project-list"> |
| | | <view class="project-card project-a" bindtap="onMenuItemTap" data-path="/pages/profile/registrations"> |
| | | <view class="project-list" wx:if="{{userProjects && userProjects.length > 0}}"> |
| | | <view |
| | | class="project-card" |
| | | wx:for="{{userProjects}}" |
| | | wx:key="id" |
| | | bindtap="goToProjectDetail" |
| | | data-project-id="{{item.id}}" |
| | | > |
| | | <view class="project-icon"> |
| | | <text class="icon-plant">🌱</text> |
| | | <!-- 如果有缩略图,显示图片 --> |
| | | <image |
| | | wx:if="{{item.thumbnailUrl}}" |
| | | class="project-thumbnail" |
| | | src="{{item.thumbnailUrl}}" |
| | | mode="aspectFill" |
| | | /> |
| | | <!-- 否则显示图标 --> |
| | | <text wx:else class="icon {{item.icon}}"></text> |
| | | </view> |
| | | <view class="project-info"> |
| | | <text class="project-name">我的报名</text> |
| | | <text class="project-desc">查看报名记录</text> |
| | | <text class="project-title">{{item.projectName || '未命名项目'}}</text> |
| | | <text class="project-subtitle">{{item.activityName || ''}}</text> |
| | | </view> |
| | | <view class="project-status"> |
| | | <text class="status-text status-{{item.statusType}}">{{item.statusText}}</text> |
| | | </view> |
| | | <text class="project-arrow">></text> |
| | | </view> |
| | | <view class="project-card project-b" bindtap="onMenuItemTap" data-path="/pages/profile/achievements"> |
| | | <view class="project-icon"> |
| | | <text class="icon-trophy">🏆</text> |
| | | </view> |
| | | <view class="project-info"> |
| | | <text class="project-name">我的成绩</text> |
| | | <text class="project-desc">查看活动成绩</text> |
| | | </view> |
| | | <text class="project-arrow">></text> |
| | | </view> |
| | | <view class="empty-projects" wx:else> |
| | | <text class="empty-icon">📋</text> |
| | | <text class="empty-text">暂无项目</text> |
| | | <text class="empty-desc">参加活动后,您的项目将在这里显示</text> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 我的评审区域 - 仅评委可见 --> |
| | | <view class="review-section" wx:if="{{isJudge}}"> |
| | | <view class="section-header"> |
| | | <text class="section-title">我的评审</text> |
| | | <view class="review-action-btn" bindtap="goToReviewPage"> |
| | | <text class="action-text">评审</text> |
| | | <text class="action-arrow">></text> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="review-stats"> |
| | | <view class="stat-item"> |
| | | <text class="stat-number">{{judgeStats.pendingReviews || 0}}</text> |
| | | <text class="stat-label">待评审</text> |
| | | </view> |
| | | <view class="stat-divider"></view> |
| | | <view class="stat-item"> |
| | | <text class="stat-number">{{judgeStats.completedReviews || 0}}</text> |
| | | <text class="stat-label">已评审</text> |
| | | </view> |
| | | <view class="stat-divider"></view> |
| | | <view class="stat-item"> |
| | | <text class="stat-number">{{judgeStats.studentUnReviewedCount || 0}}</text> |
| | | <text class="stat-label">学员未评审</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 其他功能菜单 --> |
| | | <view class="other-menu-section"> |
| | | <view class="menu-item-simple" bindtap="onMenuItemTap" data-path="/pages/profile/favorites"> |
| | | <text class="menu-icon">⭐</text> |
| | | <text class="menu-title">我的收藏</text> |
| | | <text class="menu-arrow">></text> |
| | | </view> |
| | | <view class="menu-item-simple" bindtap="onMenuItemTap" data-path="/pages/profile/settings"> |
| | | <text class="menu-icon">⚙️</text> |
| | | <text class="menu-title">设置</text> |
| | | <text class="menu-arrow">></text> |
| | | </view> |
| | | <view class="menu-item-simple" bindtap="onLogout"> |
| | | <text class="menu-icon">🚪</text> |
| | | <text class="menu-title">退出登录</text> |
| | | <text class="menu-arrow">></text> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |