qna.page.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-buttons slot="start">
  4. <ion-back-button defaultHref="/tabs/tab1"></ion-back-button>
  5. </ion-buttons>
  6. <ion-title>
  7. 问答
  8. </ion-title>
  9. </ion-toolbar>
  10. </ion-header>
  11. <<<<<<< HEAD
  12. =======
  13. <<<<<<< HEAD
  14. >>>>>>> 12d2b49093d6f8ce7867d2e6ee12adc246927d73
  15. <ion-content>
  16. <!-- 文本域:生成提示词 -->
  17. <h1>输入问题</h1>
  18. <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="文本提示词" autoGrow="true"></ion-textarea>
  19. <!-- 按钮:执行消息生成函数 -->
  20. <ion-button (click)="sendMessage()" expand="block">提交问题</ion-button>
  21. <!-- 展示:返回消息内容 -->
  22. <div *ngIf="!isComplete">{{responseMsg}}</div>
  23. <!-- 消息传输完成后,实时预览Markdown格式 -->
  24. <fm-markdown-preview *ngIf="isComplete" class="content-style" [content]="responseMsg"></fm-markdown-preview>
  25. <<<<<<< HEAD
  26. =======
  27. =======
  28. <ion-content [fullscreen]="true">
  29. <ion-header collapse="condense">
  30. <ion-toolbar>
  31. <ion-title size="large">问答</ion-title>
  32. </ion-toolbar>
  33. </ion-header>
  34. >>>>>>> fd52ca36698bd0c3fe861eed14ed929d420a4aa7
  35. >>>>>>> 12d2b49093d6f8ce7867d2e6ee12adc246927d73
  36. </ion-content>