<!--pages/alert/eartag-alert-detail/eartag-alert-detail.wxml-->
<view class="page-container">
  <!-- 加载状态 -->
  <view class="loading-container" wx:if="{{loading}}">
    <text>加载中...</text>
  </view>

  <!-- 预警详情 -->
  <view class="detail-content" wx:else>
    <!-- 头部 -->
    <view class="detail-header">
      <text class="header-icon">🔔</text>
      <text class="header-title">耳标预警详情</text>
    </view>

    <!-- 详细信息 -->
    <view class="section" wx:for="{{alertData}}" wx:key="title">
      <view class="section-title">{{item.title}}</view>
      <view class="section-content">
        <view class="info-item" wx:for="{{item.items}}" wx:key="label" wx:for-item="field">
          <view class="info-label">{{field.label}}</view>
          <view class="info-value">{{field.value}}</view>
        </view>
      </view>
    </view>

    <!-- 操作按钮 -->
    <view class="action-buttons">
      <button class="action-btn resolve">标记已处理</button>
      <button class="action-btn ignore">忽略预警</button>
    </view>
  </view>
</view>

