<view class="container">
  <view class="notification-list" wx:if="{{notifications.length > 0}}">
    <view class="notification-item" wx:for="{{notifications}}" wx:key="id">
      <view class="notification-header">
        <text class="title">{{item.title}}</text>
        <text class="time">{{item.created_at}}</text>
      </view>
      <view class="notification-content">
        {{item.content}}
      </view>
    </view>
  </view>
  <view class="empty-state" wx:else>
    <text>暂无消息</text>
  </view>
</view>
