tab1.page_20241228121144.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-item lines="none">
  4. <!-- 图片 -->
  5. <ion-avatar slot="start" class="image-container">
  6. <img src="assets/img/3.png" alt="Your Image" class="header-image">
  7. </ion-avatar>
  8. <!-- 搜索框 -->
  9. <ion-searchbar slot="end" expand="with-icon"></ion-searchbar>
  10. </ion-item>
  11. </ion-toolbar>
  12. </ion-header>
  13. <ion-content [fullscreen]="true">
  14. <section>
  15. <ion-card>
  16. <ion-card-header>
  17. <ion-card-title>热门话题</ion-card-title>
  18. </ion-card-header>
  19. <ion-card-content>
  20. <ion-list>
  21. <ion-item *ngFor="let topic of topics">
  22. <ion-label>
  23. <h2>{{ topic.title }}</h2>
  24. <p style="font-size: 16px;">{{ topic.description }}</p>
  25. </ion-label>
  26. <ion-buttons slot="end">
  27. <ion-button class="custom-button" fill="solid" (click)="viewDetails(topic.id)">
  28. <span class="button-text">查看详情</span>
  29. </ion-button>
  30. </ion-buttons>
  31. </ion-item>
  32. </ion-list>
  33. </ion-card-content>
  34. </ion-card>
  35. </section>
  36. <ion-toolbar class="button-toolbar" style="margin-top: 10px; padding: 0;">
  37. <ion-buttons slot="start" class="button-container">
  38. <ion-button expand="full" (click)="goPsysurvey()">心理普查</ion-button>
  39. <ion-button expand="full" (click)="goDriftbottle()">漂流瓶</ion-button>
  40. <ion-button expand="full" >心协</ion-button>
  41. <ion-button expand="full" >更多</ion-button>
  42. </ion-buttons>
  43. </ion-toolbar>
  44. <section>
  45. <ion-card>
  46. <ion-card-header>
  47. <ion-toolbar>
  48. <ion-card-title>用户评价</ion-card-title>
  49. <ion-buttons slot="end">
  50. <ion-button (click)="evaluate()" class="custom-button" fill="solid">
  51. <span class="button-text">进入评价</span>
  52. </ion-button>
  53. </ion-buttons>
  54. </ion-toolbar>
  55. </ion-card-header>
  56. <ion-card-content>
  57. <ion-list>
  58. <ion-item *ngFor="let chatevaluate of chatevaluateList">
  59. <ion-avatar slot="start">
  60. <img [src]="chatevaluate.get('avatar') || 'https://nova-cloud.obs.cn-south-1.myhuaweicloud.com/storage/aigc/imagine/HZFoDv7vkk-0.png'"/>
  61. </ion-avatar>
  62. <ion-label>
  63. <p style="font-size: 16px;">{{ chatevaluate.get('content') }}</p>
  64. <ion-icon name="star" *ngFor="let star of createFilledArray(chatevaluate.get('rating')); let i = index" [attr.aria-hidden]="true"></ion-icon>
  65. </ion-label>
  66. </ion-item>
  67. </ion-list>
  68. </ion-card-content>
  69. </ion-card>
  70. </section>
  71. </ion-content>