my-drift-bottle.component_20241227161754.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <ion-header>
  2. <ion-toolbar>
  3. <div class="toolbar-content">
  4. <div class="button-container">
  5. <ion-button (click)="goDriftbottle()" fill="clear">
  6. <ion-icon name="chevron-back" slot="start"></ion-icon>返回
  7. </ion-button>
  8. </div>
  9. <ion-title class="title-text">
  10. 我的漂流瓶
  11. </ion-title>
  12. </div>
  13. </ion-toolbar>
  14. </ion-header>
  15. <ion-content>
  16. <ion-list>
  17. <ion-item>
  18. <ion-label>
  19. <h2>我扔出的漂流瓶</h2>
  20. </ion-label>
  21. </ion-item>
  22. <ion-card *ngFor="let bottle of thrownDriftbottles">
  23. <ion-card-header>
  24. <ion-card-title>{{ bottle.content }}</ion-card-title>
  25. </ion-card-header>
  26. <ion-card-content>
  27. <p>{{ bottle.createdAt }}</p>
  28. </ion-card-content>
  29. </ion-card>
  30. <ion-item>
  31. <ion-label>
  32. <h2>我捞上的漂流瓶</h2>
  33. </ion-label>
  34. </ion-item>
  35. <ion-card *ngFor="let bottle of caughtDriftbottles">
  36. <ion-card-header>
  37. <ion-card-title>{{ bottle.content }}</ion-card-title>
  38. </ion-card-header>
  39. <ion-card-content>
  40. <p>{{ bottle.createdAt }}</p>
  41. </ion-card-content>
  42. </ion-card>
  43. </ion-list>
  44. </ion-content>