edit-detail.component.ts 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import { CommonModule } from '@angular/common';
  2. import { Component, OnInit } from '@angular/core';
  3. import { IonHeader,IonButton, IonContent, IonIcon, IonItem, IonLabel, IonList,
  4. IonListHeader, IonTitle, IonToolbar,IonInput,IonSearchbar } from '@ionic/angular/standalone';
  5. import { ExploreContainerComponent } from '../explore-container/explore-container.component';
  6. @Component({
  7. selector: 'app-edit-detail',
  8. templateUrl: './edit-detail.component.html',
  9. styleUrls: ['./edit-detail.component.scss'],
  10. standalone: true,
  11. imports: [IonHeader,IonToolbar,IonTitle,IonContent,ExploreContainerComponent,
  12. IonList,IonListHeader,IonItem,IonInput,IonSearchbar,
  13. IonLabel,IonIcon,IonButton,CommonModule
  14. ]
  15. })
  16. export class EditDetailComponent implements OnInit {
  17. tips = [
  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://www.18183.com/down/2968763.html',
  42. buttonText: '下载APP',
  43. },
  44. {
  45. name: '在线冥想课程',
  46. description: '提供多种冥想练习,帮助你减轻焦虑。',
  47. link: 'https://www.bilibili.com/video/BV1gdUpYyEiw/',
  48. buttonText: '查看视频',
  49. },
  50. ];
  51. resources = [
  52. {
  53. title: '控制焦虑的方法',
  54. link: 'https://m.baidu.com/bh/m/detail/ar_13481633186713755563',
  55. buttonText: '查看更多',
  56. },
  57. {
  58. title: '克服焦虑的方法',
  59. link: 'https://m.baidu.com/bh/m/detail/ar_4824212419687234431',
  60. buttonText: '阅读更多',
  61. },
  62. {
  63. title: '焦虑管理技巧',
  64. link: 'https://www.bilibili.com/video/BV1Kj2KYJEYU/',
  65. buttonText: '观看视频',
  66. },
  67. ];
  68. discussions = [
  69. {
  70. title: '分享你的焦虑管理经验',
  71. link: 'https://example.com/community',
  72. },
  73. ];
  74. constructor() { }
  75. ngOnInit() {}
  76. }