my-drift-bottle.component_20241227165005.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. <section *ngIf="thrownDriftbottles.length > 0">
  23. <ion-card *ngFor="let bottle of thrownDriftbottles">
  24. <ion-card-header>
  25. <ion-card-title>{{ bottle.content }}</ion-card-title>
  26. </ion-card-header>
  27. <ion-card-content>
  28. <p>扔出时间: {{ bottle.createdAt }}</p>
  29. </ion-card-content>
  30. </ion-card>
  31. </section>
  32. <ion-item>
  33. <ion-label>
  34. <h2>我捞上的漂流瓶</h2>
  35. </ion-label>
  36. </ion-item>
  37. <!-- <section *ngIf="caughtDriftbottles.length > 0">
  38. <ion-card *ngFor="let bottle of caughtDriftbottles">
  39. <ion-card-header>
  40. <ion-card-title>{{ bottle.content }}</ion-card-title>
  41. </ion-card-header>
  42. <ion-card-content>
  43. <p>捞上时间: {{ bottle.createdAt }}</p>
  44. </ion-card-content>
  45. </ion-card>
  46. </section> -->
  47. </ion-list>
  48. <div style="display: flex; justify-content: center; margin-top: auto;">
  49. <ion-button (click)="throwNewDriftbottle()" expand="full">
  50. 投掷新的漂流瓶
  51. </ion-button>
  52. </div>
  53. </ion-content>