short-generator.page.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <ion-header>
  2. <ion-toolbar>
  3. <ion-buttons slot="start">
  4. <ion-button (click)="goBack()">
  5. <ion-icon name="arrow-back"></ion-icon>
  6. </ion-button>
  7. </ion-buttons>
  8. <ion-title>短篇小说生成器</ion-title>
  9. </ion-toolbar>
  10. </ion-header>
  11. <ion-content>
  12. <ion-card>
  13. <ion-card-header>
  14. <ion-card-title>作品名称</ion-card-title>
  15. </ion-card-header>
  16. <ion-card-content>
  17. <ion-input [(ngModel)]="workTitle" placeholder="请输入作品名称"></ion-input>
  18. </ion-card-content>
  19. </ion-card>
  20. <ion-item>
  21. <ion-label>风格选择</ion-label>
  22. <ion-select [(ngModel)]="selectedStyle" (ionChange)="onStyleChange()">
  23. <ion-select-option value="爱情">爱情</ion-select-option>
  24. <ion-select-option value="冒险">冒险</ion-select-option>
  25. <ion-select-option value="科幻">科幻</ion-select-option>
  26. <ion-select-option value="悬疑">悬疑</ion-select-option>
  27. </ion-select>
  28. </ion-item>
  29. <ion-card>
  30. <ion-card-header>
  31. <ion-card-title>人物词条</ion-card-title>
  32. </ion-card-header>
  33. <ion-card-content>
  34. <ion-input [(ngModel)]="characterName" placeholder="人物名称"></ion-input>
  35. <ion-select [(ngModel)]="characterGender" placeholder="性别">
  36. <ion-select-option value="男">男</ion-select-option>
  37. <ion-select-option value="女">女</ion-select-option>
  38. </ion-select>
  39. <ion-textarea [(ngModel)]="characterDescription" placeholder="人物简介" autoGrow="true"></ion-textarea>
  40. <ion-button expand="full" (click)="addCharacter()">新建人物</ion-button>
  41. </ion-card-content>
  42. </ion-card>
  43. <ion-list>
  44. <ion-item *ngFor="let character of characters">
  45. <ion-label>
  46. <h2>{{ character.name }}</h2>
  47. <p>性别: {{ character.gender }}</p>
  48. <p>简介: {{ character.description }}</p>
  49. </ion-label>
  50. </ion-item>
  51. </ion-list>
  52. </ion-content>