page-ai-knowledge.component.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <ion-header [translucent]="true">
  2. <ion-toolbar class="toolbar">
  3. <div>
  4. <ion-button (click)="backHome()" color="primary">{{back}}</ion-button>
  5. </div>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content [fullscreen]="true">
  9. <div>
  10. <ion-list>
  11. <ion-item>
  12. <!-- <ion-input label="输入你想了解的科普信息" placeholder="Enter text"></ion-input> -->
  13. <ion-input [value]="kepu" placeholder="请输入科普" (ionInput)="kepuInput($event)"></ion-input>
  14. </ion-item>
  15. </ion-list>
  16. </div>
  17. <ion-button (click)="doInqueryTask()">执行问诊任务集</ion-button>
  18. <!-- 意境画面提示词 -->
  19. <div class="desc">
  20. {{PictureDescResult}}
  21. </div>
  22. <!-- 生成结果 -->
  23. @if(images.length) {
  24. @for(imageUrl of images;track imageUrl){
  25. <img [src]="imageUrl" alt="图片" srcset="">
  26. }
  27. <h3>图片地址:
  28. <span class="copyable">{{images.join(', ')}}</span>
  29. </h3>
  30. }
  31. <!-- 生成状态 -->
  32. @if(!images.length){
  33. <!-- <h2 style="display: grid; place-items: center;">欢迎使用头像生成器</h2> -->
  34. @if(imagineWork.progress!=0){
  35. <h1 style="display: grid; place-items: center;">生成中:{{imagineWork.progress}}</h1>
  36. }
  37. <!-- <div style="display: grid; place-items: center;">
  38. <img src="../../assets/image/头像生成器.png">
  39. </div> -->
  40. }
  41. </ion-content>