topic-detail2.component_20241210113940.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { CommonModule } from '@angular/common';
  2. import { Component, OnInit } from '@angular/core';
  3. import { IonButton, IonContent, IonHeader, IonIcon, IonInput, IonItem, IonLabel,
  4. IonList, IonListHeader, IonSearchbar, IonTitle, IonToolbar } from '@ionic/angular/standalone';
  5. import { ExploreContainerComponent } from '../explore-container/explore-container.component';
  6. @Component({
  7. selector: 'app-topic-detail2',
  8. templateUrl: './topic-detail2.component.html',
  9. styleUrls: ['./topic-detail2.component.scss'],
  10. standalone: true,
  11. imports:[IonHeader,IonToolbar,IonTitle,IonContent,ExploreContainerComponent,
  12. IonList,IonListHeader,IonLabel,IonItem,IonIcon,
  13. IonButton,IonInput,IonSearchbar,
  14. CommonModule]
  15. })
  16. export class TopicDetail2Component implements OnInit {
  17. methods = [
  18. {
  19. title: '寻求专业帮助',
  20. description: '咨询心理医生或心理治疗师,获得专业的支持和指导',
  21. details: '专业的心理咨询可以帮助你更好地理解自己的情绪,并提供有效的应对策略',
  22. expanded: false,
  23. },
  24. {
  25. title: '建立健康的生活方式',
  26. description: '保持规律的作息、均衡的饮食和适量的运动',
  27. details: '健康的生活方式可以显著改善你的心理状态,增强抵抗抑郁的能力',
  28. expanded: false,
  29. },
  30. {
  31. title: '与他人交流',
  32. description: '与朋友和家人分享你的感受,建立支持网络',
  33. details: '交流可以减轻孤独感,增强社会支持,帮助你更好地应对抑郁',
  34. expanded: false,
  35. },
  36. ];
  37. tools = [
  38. {
  39. name: '抑郁管理APP',
  40. description: '帮助你记录情绪变化,提供自助练习',
  41. link: 'https://bbs.51766.com/soft/712244.html',
  42. buttonText: '下载APP',
  43. },
  44. {
  45. name: '在线支持小组',
  46. description: '与其他抑郁症患者交流,分享经验',
  47. link: 'https://www.douban.com/group/739850/',
  48. buttonText: '加入小组',
  49. },
  50. ];
  51. resources = [
  52. {
  53. title: '克服抑郁的十大技巧',
  54. link: 'https://m.baidu.com/bh/m/detail/ar_6218671750317725196',
  55. buttonText: '阅读更多',
  56. },
  57. {
  58. title: '如何面对抑郁',
  59. link: 'https://m.baidu.com/bh/m/detail/ar_12253741886669041142',
  60. buttonText: '查看更多',
  61. },
  62. ];
  63. discussions = [
  64. {
  65. title: '分享你的抑郁克服故事',
  66. link: 'https://example.com/community',
  67. },
  68. ];
  69. constructor() { }
  70. ngOnInit() {}
  71. }