Files
danyang-match/miniapp/pages/activity-mutual-result/activity-mutual-result.wxml
T

35 lines
1.4 KiB
Plaintext

<view class="container">
<block wx:if="{{loading}}">
<view class="loading">加载中...</view>
</block>
<block wx:elif="{{results.length === 0}}">
<view class="empty">
<text class="empty-icon">🎯</text>
<text class="empty-text">暂无互选结果</text>
<text class="empty-hint">参加活动时可以向感兴趣的人表达意向</text>
</view>
</block>
<block wx:else>
<view class="result-card" wx:for="{{results}}" wx:key="partnerId" wx:for-item="item">
<view class="card-header">
<image class="avatar" src="{{item.partnerAvatar || '/images/default-avatar.png'}}" mode="aspectFill" />
<view class="info">
<text class="name">{{item.partnerName || '新朋友'}}</text>
<text class="status-badge {{item.bothConfirmed ? 'badge-confirmed' : 'badge-waiting'}}">
{{item.bothConfirmed ? '双方已确认' : '等待对方确认'}}
</text>
</view>
</view>
<view class="card-body">
<text class="activity-name">来自活动:{{item.activityTitle}}</text>
</view>
<view class="card-actions" wx:if="{{!item.bothConfirmed}}">
<button class="btn-waiting" disabled>等待对方确认</button>
</view>
<view class="card-actions" wx:if="{{item.bothConfirmed}}">
<button class="btn-chat" bindtap="openChat" data-partnerid="{{item.partnerId}}">开启聊天</button>
</view>
</view>
</block>
</view>