tab3.page.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>
  4. 健康计划(任务集执行展示)
  5. </ion-title>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content [fullscreen]="true">
  9. <ion-button (click)="doPoemTask()">执行诗文意境绘制任务集</ion-button>
  10. <ion-button (click)="doInqueryTask()">执行问诊任务集</ion-button>
  11. <!-- <ion-button (click)="testJSON()">测试JSON</ion-button> -->
  12. <ul>
  13. @for(step of taskList;track step.title;){
  14. <div>
  15. <!-- 待开始 -->
  16. @if(step.progress==0 && !step.error){
  17. <ion-icon name="radio-button-off-outline"></ion-icon>
  18. }
  19. <!-- 进行中 -->
  20. @if(step.progress!=0 && step.progress!=1){
  21. <ion-icon name="reload-outline"></ion-icon>
  22. }
  23. <!-- 已完成 -->
  24. @if(step.progress==1){
  25. <ion-icon name="checkmark-circle-outline"></ion-icon>
  26. }
  27. <!-- 已出错 -->
  28. @if(step.error){
  29. <ion-icon name="close-circle-outline"></ion-icon>
  30. }
  31. {{step.title}}{{step.progress}}</div>
  32. }
  33. </ul>
  34. <!-- 图片结果 -->
  35. @if(shareData.images) {
  36. @for(imageUrl of shareData.images;track imageUrl){
  37. <img [src]="imageUrl" alt="" srcset="">
  38. }
  39. }
  40. <!-- 诗词意境绘画生成结果 -->
  41. <!-- @if(shareData.images) {
  42. @for(imageUrl of shareData.images;track imageUrl){
  43. <img [src]="imageUrl" alt="" srcset="">
  44. }
  45. } -->
  46. <!-- 问诊报告生成结果 -->
  47. <!-- @if(shareData.diagResult){
  48. <h1>{{shareData.diagResult.title}}</h1>
  49. <h2>{{shareData.diagResult.desc}}</h2>
  50. <p>{{shareData.diagResult.content}}</p>
  51. } -->
  52. </ion-content>