<ion-header>
  <ion-toolbar>
    <ion-buttons slot="primary">
      <ion-button>
        <ion-icon color="medium" slot="icon-only" ios="ellipsis-horizontal" md="ellipsis-vertical"></ion-icon>
      </ion-button>
    </ion-buttons>
    <ion-title>消息</ion-title>
  </ion-toolbar>
</ion-header>
<ion-content>
  <ion-card *ngFor="let message of messages.slice().reverse()">
    <ion-card-header>
      {{ message.deliveryTime | date: 'yyyy年M月d日 HH:mm' }}
    </ion-card-header>
    <ion-card-content>
      <ion-card-subtitle>
        书名：{{ message.title }}<br>作者:{{ message.author }}<br>订单编号:{{ message.id }}
      </ion-card-subtitle>
      <ion-footer>
        <ion-row>
          <ion-col>
            <ion-badge color="primary">{{ message.status }}</ion-badge>
          </ion-col>
          <ion-col *ngIf="message.status === '已送至指定地点'">
            <ion-button style="margin-left: 75px;" shape="round" fill="outline" size="small" (click)="confirmDelivery(message)">确认</ion-button>
          </ion-col>
        </ion-row>
      </ion-footer>
    </ion-card-content>
  </ion-card>
</ion-content>
<ion-fab slot="fixed" vertical="bottom" horizontal="end">
  <ion-fab-button>
    <ion-icon name="chevron-up-circle"></ion-icon>
  </ion-fab-button>
  <ion-fab-list side="top">
    <ion-fab-button>
      <ion-icon name="trash-outline"></ion-icon>
    </ion-fab-button>
    <ion-fab-button>
      <ion-icon name="chatbubble-ellipses-outline"></ion-icon>
    </ion-fab-button>
    <ion-fab-button>
      <ion-icon name="help"></ion-icon>
    </ion-fab-button>
  </ion-fab-list>
</ion-fab>