guide.component.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { CommonModule } from '@angular/common';
  2. import { Component, OnInit } from '@angular/core';
  3. import { Router } from '@angular/router';
  4. import { IonButton, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonContent, IonHeader, IonTitle, IonToolbar, NavController } from '@ionic/angular/standalone';
  5. @Component({
  6. selector: 'app-guide',
  7. templateUrl: './guide.component.html',
  8. styleUrls: ['./guide.component.scss'],
  9. standalone: true,
  10. imports:[
  11. IonContent,
  12. IonCard,
  13. IonTitle,
  14. IonToolbar,
  15. IonHeader,
  16. IonCardContent,
  17. IonCardTitle,
  18. IonCardHeader,
  19. IonButton,
  20. IonCardSubtitle,
  21. CommonModule
  22. ]
  23. })
  24. export class GuideComponent implements OnInit {
  25. constructor(
  26. private router: Router,
  27. private navCtrl: NavController
  28. ) { }
  29. ngOnInit() {}
  30. features = [
  31. {
  32. title: '信息填写',
  33. description: '登入系统后,填写您的信息方能给您更完美的问诊服务',
  34. path:'tabs/tab4'
  35. },
  36. {
  37. title: 'AI问诊',
  38. description: '不同科室的ai医生能解决您日常生活绝大多数的不适病症,或者给您提供准确的建议',
  39. path:'tabs/inquiry/ai'
  40. },
  41. {
  42. title: '药品展示',
  43. description: '我们会向您展示日常生活中常用的非处方药品,展示其的作用、价格和成分信息等,方便您去药店购买',
  44. path:'tabs/tab3'
  45. },
  46. {
  47. title: '创建AI',
  48. description: '您可以通过需求描述创建一个更符合您意愿的ai医生,他的回复建议将更贴合您的需求,作为您的专属医生',
  49. path:'tabs/create-agent'
  50. },
  51. {
  52. title: '我的健康',
  53. description: '借此您能浏览您所有的问诊记录,来回顾您的健康历程',
  54. path:'tabs/my-health'
  55. },
  56. {
  57. title: '健康热点',
  58. description: '它为您找寻到了网上最受关注的健康知识并将其分类,以方便您的查看',
  59. path:'tabs/tab2'
  60. },
  61. // 可以继续添加更多功能
  62. ];
  63. goToPage(feature:any){
  64. this.router.navigate([feature.path])
  65. }
  66. backHome(){
  67. this.router.navigate(['tabs/tab4'])
  68. }
  69. }