attention-detail.component.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <ion-header>
  2. <ion-toolbar>
  3. <ion-buttons slot="start">
  4. <ion-button routerLink="/lesson/community" fill="clear" color="dark">
  5. <ion-icon name="chevron-back-outline" size="small"></ion-icon>返回</ion-button>
  6. </ion-buttons>
  7. <ion-buttons slot="end">
  8. <ion-button fill="clear" color="dark">
  9. 收藏</ion-button>
  10. </ion-buttons>
  11. </ion-toolbar>
  12. </ion-header>
  13. <ion-content color="light">
  14. <ion-card>
  15. <img alt="角色图" [src]="attention?.get('img')" />
  16. <ion-card-header>
  17. <ion-card-title>{{attention?.get('name')}}</ion-card-title>
  18. <ion-card-subtitle>作者:{{attention?.get('user')?.get('name')||"某某某"}}</ion-card-subtitle>
  19. <ion-card-subtitle>{{attention?.get('type')||""}}</ion-card-subtitle>
  20. <ion-card-subtitle>{{attention?.get('createdAt')| date: 'YYYY/MM/dd/HH:mm'||"发布时间"}}</ion-card-subtitle>
  21. </ion-card-header>
  22. <ion-card-content>
  23. {{attention?.get('cueword')||"#hrmai"}}
  24. </ion-card-content>
  25. </ion-card>
  26. <ion-list [inset]="true">
  27. <ion-item>
  28. <ion-textarea label="留下你的想法吧" labelPlacement="floating" rows="5" [(ngModel)]="comment">
  29. </ion-textarea>
  30. </ion-item>
  31. <ion-item>
  32. <ion-buttons slot="end">
  33. <ion-button color="medium" fill="outline" (click)="addComment()" shape="round">确定</ion-button>
  34. </ion-buttons>
  35. </ion-item>
  36. </ion-list>
  37. <ion-list [inset]="true">
  38. <ng-container *ngFor="let comment of comments">
  39. <ion-item class="comment-list">
  40. <ion-label>
  41. <p class="commentator">用户昵称</p>
  42. <ion-note class="comment-content">{{comment}}</ion-note>
  43. </ion-label>
  44. <div class="comment-time">
  45. <ion-note color="medium">{{currentDate|date: 'HH:mm'}}</ion-note>
  46. </div>
  47. </ion-item>
  48. </ng-container>
  49. <ion-item class="comment-list">
  50. <ion-label>
  51. <p class="commentator">momo</p>
  52. <ion-note class="comment-content">必须关注起来! ♥</ion-note>
  53. </ion-label>
  54. <div class="comment-time">
  55. <ion-note color="medium">03:44</ion-note>
  56. </div>
  57. </ion-item>
  58. <ion-item class="comment-list">
  59. <ion-label>
  60. <p class="commentator">苏格拉没有底</p>
  61. <ion-note class="comment-content">古希腊掌管送礼的神出现啦</ion-note>
  62. </ion-label>
  63. <div class="comment-time">
  64. <ion-note color="medium">Yesterday</ion-note>
  65. </div>
  66. </ion-item>
  67. <ion-item class="comment-list">
  68. <ion-label>
  69. <p class="commentator">是CC呀</p>
  70. <ion-note class="comment-content">礼物🎁仪式感满满</ion-note>
  71. </ion-label>
  72. <div class="comment-time">
  73. <ion-note color="medium">Yesterday</ion-note>
  74. </div>
  75. </ion-item>
  76. </ion-list>
  77. </ion-content>