49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
<view class="detail-page">
|
|
|
|
<!-- 基本信息 -->
|
|
<view class="info-card">
|
|
<view class="info-row">
|
|
<text class="info-label">队伍名称</text>
|
|
<text class="info-value highlight">{{detail.name || '—'}}</text>
|
|
</view>
|
|
<view class="info-row">
|
|
<text class="info-label">人数</text>
|
|
<text class="info-value">{{detail.memberCount}}人</text>
|
|
</view>
|
|
<view class="info-row">
|
|
<text class="info-label">领队</text>
|
|
<text class="info-value">{{detail.leaderName || '—'}}</text>
|
|
</view>
|
|
<view class="info-row">
|
|
<text class="info-label">教练</text>
|
|
<text class="info-value">{{detail.coachName || '—'}}</text>
|
|
</view>
|
|
<view class="info-row last">
|
|
<text class="info-label">创建时间</text>
|
|
<text class="info-value">{{detail.createdTimeStr || '—'}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 成员列表 -->
|
|
<view class="member-card">
|
|
<!-- 表头 -->
|
|
<view class="table-head">
|
|
<text class="th th-name">姓名</text>
|
|
<text class="th th-gender">性别</text>
|
|
<text class="th th-age">年龄</text>
|
|
</view>
|
|
<!-- 表体 -->
|
|
<view class="table-body">
|
|
<view class="tr" wx:for="{{detail.members}}" wx:key="id">
|
|
<text class="td td-name">{{item.name}}</text>
|
|
<text class="td td-gender">{{item.gender}}</text>
|
|
<text class="td td-age">{{item.age}}</text>
|
|
</view>
|
|
<!-- 空状态 -->
|
|
<view wx:if="{{!detail.members || detail.members.length === 0}}" class="table-empty">
|
|
<text class="table-empty-text">暂无成员</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|