annual-checkup.page.ts 976 B

1234567891011121314151617181920212223242526272829
  1. import { Component, OnInit } from '@angular/core';
  2. import { ActivatedRoute } from '@angular/router';
  3. @Component({
  4. selector: 'app-annual-checkup',
  5. templateUrl: './annual-checkup.page.html',
  6. styleUrls: ['./annual-checkup.page.scss'],
  7. })
  8. export class AnnualCheckupPage implements OnInit {
  9. checkupData: any;
  10. constructor(private route: ActivatedRoute) {}
  11. ngOnInit() {
  12. // 假设从服务中获取数据
  13. this.checkupData = {
  14. title: '年度体检',
  15. date: new Date(),
  16. results: [
  17. { name: '血压', value: '120/80 mmHg', status: '正常' },
  18. { name: '血糖', value: '5.6 mmol/L', status: '正常' },
  19. { name: '胆固醇', value: '4.5 mmol/L', status: '正常' },
  20. { name: '体重', value: '70 kg', status: '正常' },
  21. { name: '身高', value: '175 cm', status: '正常' }
  22. ],
  23. notes: '总体健康状况良好,建议继续保持良好的生活习惯。'
  24. };
  25. }
  26. }