<scroll-view class="page" scroll-y>
  <view class="shell">
    <view class="hero">
      <view class="hero__eyebrow">Results</view>
      <view class="hero__title">历史结果</view>
      <view class="hero__desc">查看最近联调与正式对局结果</view>
    </view>

    <view class="panel">
      <view class="panel__title">当前状态</view>
      <view class="summary">{{statusText}}</view>
    </view>

    <view class="panel">
      <view class="panel__title">结果列表</view>
      <view wx:if="{{!results.length}}" class="summary">当前没有结果记录</view>
      <view wx:for="{{results}}" wx:key="sessionId" class="result-card" bindtap="handleOpenResult" data-session-id="{{item.sessionId}}">
        <view class="result-card__title">{{item.titleText}}</view>
        <view class="result-card__meta">{{item.statusText}}</view>
        <view class="result-card__meta">{{item.scoreText}}</view>
        <view class="result-card__meta">{{item.routeText}}</view>
        <view class="result-card__meta">{{item.runtimeText}}</view>
      </view>
    </view>
  </view>
</scroll-view>
