customization.page.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>customization</ion-title>
  4. </ion-toolbar>
  5. </ion-header>
  6. <ion-content [fullscreen]="true">
  7. <ion-list >
  8. <ion-item >
  9. <app-edit-tag (onTagChange)="setTags($event)"></app-edit-tag>
  10. </ion-item>
  11. <ion-item >
  12. <ion-textarea (ionInput)="onInputarea($event)" label="服装描述" placeholder="请尽可能描述衣服需要的功能" [autoGrow]="true"></ion-textarea>
  13. </ion-item>
  14. </ion-list>
  15. <!-- <h1>父级页面传参</h1>
  16. @for(tag of editTags;track tag;){
  17. <p>{{tag}}</p>
  18. } -->
  19. <!-- GPT组件 -->
  20. <!-- <h1>GPT组件</h1>
  21. <ion-input type="" [(ngModel)]="inputValue" ></ion-input> -->
  22. <ion-button (click)="printInputValue()">提交</ion-button>
  23. @if(!isComplete){
  24. <div>{{gptre}}</div>
  25. }
  26. @if(isComplete){
  27. <fm-markdown-preview class="content-style" [content]="gptre" ></fm-markdown-preview>
  28. }
  29. <ion-title>服装生成{{imagineWork?.progress || 0}}</ion-title>
  30. <!-- <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="服装填写" autoGrow="true"></ion-textarea> -->
  31. <ion-button (click)="createImage()" expand="block">生成图片</ion-button>
  32. <!-- 生成结果 -->
  33. @if(images.length) {
  34. @for(imageUrl of images;track imageUrl){
  35. <img [src]="imageUrl" alt="" srcset="">
  36. }
  37. }
  38. <!-- 生成状态 -->
  39. @if(!images.length){
  40. @if(imagineWork){
  41. <h1>生成中</h1>
  42. }
  43. @if(!imagineWork){
  44. <h1>未开始</h1>
  45. }
  46. }
  47. {{ picdetail}}
  48. </ion-content>