xiangqinxiaochengxu/miniprogram/pages/my-matches/my-matches.wxml
2026-04-17 21:28:56 +08:00

21 lines
1.2 KiB
Plaintext

<view class="page matches-page">
<view wx:if="{{matches.length}}">
<view wx:for="{{matches}}" wx:key="match_id" class="match-item {{item.match_item_class}}" bindtap="viewDetail" data-match-id="{{item.match_id}}" data-status="{{item.match_status}}">
<image wx:if="{{item.other_user.avatar_url}}" class="avatar" src="{{item.other_user.avatar_url}}" mode="aspectFill" />
<view wx:else class="avatar avatar-placeholder">用户</view>
<view class="content">
<view class="name-row">
<view class="name">{{item.other_user.nicknameText}}</view>
<view class="status-badge {{item.match_status_class}}">{{item.match_status_text}}</view>
</view>
<view class="meta">{{item.other_user.cityText}} · {{item.other_user.educationText}}</view>
<view class="meta">{{item.other_user.hobbiesText}}</view>
<view wx:if="{{item.match_status === 'pending'}}" class="pending-reason">状态说明:{{item.fail_reason}}</view>
<view wx:elif="{{item.fail_reason}}" class="fail-reason">失败原因:{{item.fail_reason}}</view>
<view class="time">匹配时间:{{item.matched_at}}</view>
</view>
</view>
</view>
<view wx:else class="empty-state">暂无匹配记录</view>
</view>