<view class="records-container">
  <view wx:if="{{pageMode === 0 && !loadError}}" class="loading-center">
    <view class="loading-spinner"></view>
    <text class="loading-text">加载中...</text>
  </view>

  <view wx:elif="{{loadError}}" class="error-center">
    <text class="error-text">加载失败，请检查网络</text>
    <view class="retry-btn" bindtap="retryFetch">点击重试</view>
  </view>

  <record-mode1 wx:elif="{{pageMode === 2}}" id="record-mode1" />
  <record-mode2 wx:elif="{{pageMode === 1}}" id="record-mode2" />
</view>
