1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <ion-header>
- <ion-toolbar>
- <ion-title>
- 诗词创作
- </ion-title>
- </ion-toolbar>
- </ion-header>
- <ion-content>
- <ion-item>
- <ion-input placeholder="关键词" [(ngModel)]="shigeOptions.keywords"></ion-input>
- </ion-item>
- <ion-item>
- <ion-input placeholder="创作灵感" [(ngModel)]="shigeOptions.content"></ion-input>
- </ion-item>
- <ion-item>
- <ion-select label="诗歌格律" placeholder="格律" [(ngModel)]="shigeOptions.type">
- <ion-select-option value="不限制">不限制</ion-select-option>
- <ion-select-option value="七言绝句">七言绝句</ion-select-option>
- <ion-select-option value="五言律诗">五言律诗</ion-select-option>
- <ion-select-option value="藏头诗">藏头诗</ion-select-option>
- <ion-select-option value="宋词">藏头诗</ion-select-option>
- </ion-select>
- </ion-item>
- <ion-item>
- <ion-select label="诗歌主题" placeholder="主题" [(ngModel)]="shigeOptions.theme">
- <ion-select-option value="不限制">不限制</ion-select-option>
- <ion-select-option [value]="item" *ngFor="let item of themeList">{{item}}</ion-select-option>
- </ion-select>
- </ion-item>
- <ion-button expand="block" (click)="sendMessage()">发送</ion-button>
- <ion-card *ngFor="let message of messageList">
- <ion-card-header>
- {{message?.role}}
- </ion-card-header>
- <ion-card-content>
- {{ message?.content }}
- </ion-card-content>
- </ion-card>
- </ion-content>
|