tab4.page.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <ion-header [translucent]="true" class="ion-no-border">
  2. <ion-toolbar>
  3. <div class="header-container">
  4. <ion-title class="page-title">AI学习助手</ion-title>
  5. <ion-icon name="help-circle-outline" class="help-icon"></ion-icon>
  6. </div>
  7. </ion-toolbar>
  8. </ion-header>
  9. <ion-content [fullscreen]="true" class="ion-padding">
  10. <div class="content-container">
  11. <!-- 欢迎部分 -->
  12. <div class="welcome-section">
  13. <h1>个性化学习分析</h1>
  14. <p class="subtitle">让AI助手帮你分析兴趣,定制专属学习计划</p>
  15. </div>
  16. <!-- 操作按钮区 -->
  17. <div class="action-buttons">
  18. <ion-button expand="block" class="main-button" (click)="openInquiry()">
  19. <ion-icon name="chatbubbles-outline" slot="start"></ion-icon>
  20. 开始兴趣分析
  21. </ion-button>
  22. <ion-button expand="block" fill="outline" class="secondary-button" (click)="restoreChat('EpfDIz4WeE')">
  23. <ion-icon name="refresh-outline" slot="start"></ion-icon>
  24. 恢复上次分析
  25. </ion-button>
  26. </div>
  27. <!-- 思维导图展示区 -->
  28. <div class="markmap-container">
  29. @if(!planMessage?.complete){
  30. <div class="empty-state">
  31. <ion-icon name="bulb-outline"></ion-icon>
  32. <h3>等待分析结果</h3>
  33. <p>开始兴趣分析后,AI将为你生成个性化的学习计划思维导图</p>
  34. </div>
  35. }
  36. @if(planMessage?.complete){
  37. <div class="result-section">
  38. <h2>你的个性化学习计划</h2>
  39. <div class="markmap-wrapper">
  40. <comp-markmap [markdown]="markmapResult"></comp-markmap>
  41. </div>
  42. </div>
  43. }
  44. </div>
  45. </div>
  46. </ion-content>