|
@@ -0,0 +1,36 @@
|
|
|
+import { NgForOf } from '@angular/common';
|
|
|
+import { Component } from '@angular/core';
|
|
|
+import { IonButton, IonCard, IonCardContent, IonCardHeader, IonCardTitle, IonCol, IonContent, IonGrid, IonHeader, IonRow, IonTitle, IonToolbar } from '@ionic/angular/standalone';
|
|
|
+import { IonIcon } from '@ionic/angular/standalone';
|
|
|
+
|
|
|
+@Component({
|
|
|
+ selector: 'app-show-novel',
|
|
|
+ standalone: true,
|
|
|
+ templateUrl: './show-novel.component.html',
|
|
|
+ styleUrls: ['./show-novel.component.scss'],
|
|
|
+ imports: [
|
|
|
+ IonHeader,IonToolbar,IonTitle,IonContent,IonGrid,IonRow,IonCol,IonCard,IonCardHeader,IonCardTitle,IonCardContent,IonButton,IonIcon,NgForOf
|
|
|
+ ]
|
|
|
+
|
|
|
+
|
|
|
+})
|
|
|
+export class ShowNovelComponent {
|
|
|
+ novels = [
|
|
|
+ {
|
|
|
+ title: '我在精神病院学斩神',
|
|
|
+ description: '若黯夜降临,吾必立于万万人前,横刀向渊,血染苍穹',
|
|
|
+ image: 'assets/img/1.png' // 请替换为实际图片路径
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '诡舍',
|
|
|
+ description: '日子无聊没活力?看看诡舍刺激刺激',
|
|
|
+ image: 'assets/img/2.png' // 请替换为实际图片路径
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // title: '小说3',
|
|
|
+ // description: '这是小说3的简短描述。',
|
|
|
+ // image: 'assets/img/1.png' // 请替换为实际图片路径
|
|
|
+ // },
|
|
|
+ // 可以继续添加更多小说
|
|
|
+ ];
|
|
|
+}
|