|
@@ -25,58 +25,78 @@
|
|
<ion-card>
|
|
<ion-card>
|
|
<ion-card-content>
|
|
<ion-card-content>
|
|
<ion-row>
|
|
<ion-row>
|
|
- <ion-col size="3" (click)="filterByCategory($event)">全部</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">电影</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">电视</ion-col>
|
|
|
|
|
|
+ <ion-col size="3" (click)="fetchMovies()">全部</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '电影')">电影</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '电视')">电视</ion-col>
|
|
</ion-row>
|
|
</ion-row>
|
|
</ion-card-content>
|
|
</ion-card-content>
|
|
</ion-card>
|
|
</ion-card>
|
|
|
|
+
|
|
<ion-card>
|
|
<ion-card>
|
|
- <ion-card-content>
|
|
|
|
|
|
+ <ion-card-content>
|
|
<ion-row>
|
|
<ion-row>
|
|
- <ion-col size="3" (click)="filterByCategory($event)">全部</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">经典</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">新片</ion-col>
|
|
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '')">全部</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '经典')">经典</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '新片')">新片</ion-col>
|
|
</ion-row>
|
|
</ion-row>
|
|
</ion-card-content>
|
|
</ion-card-content>
|
|
</ion-card>
|
|
</ion-card>
|
|
|
|
+
|
|
<ion-card>
|
|
<ion-card>
|
|
- <ion-card-content>
|
|
|
|
|
|
+ <ion-card-content>
|
|
|
|
+ <ion-row>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '')">全部</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '中国')">中国</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '俄罗斯')">俄罗斯</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '美国')">美国</ion-col>
|
|
|
|
+ </ion-row>
|
|
|
|
+ <ion-row>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '巴西')">巴西</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '英国')">英国</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '法国')">法国</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '日本')">日本</ion-col>
|
|
|
|
+ </ion-row>
|
|
<ion-row>
|
|
<ion-row>
|
|
- <ion-col size="3" (click)="filterByCategory($event)">全部</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">中国</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">俄罗斯</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">美国</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">巴西</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">英国</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">法国</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">日本</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">西班牙</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">韩国</ion-col>
|
|
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '西班牙')">西班牙</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '韩国')">韩国</ion-col>
|
|
</ion-row>
|
|
</ion-row>
|
|
</ion-card-content>
|
|
</ion-card-content>
|
|
</ion-card>
|
|
</ion-card>
|
|
|
|
+
|
|
<ion-card>
|
|
<ion-card>
|
|
<ion-card-content>
|
|
<ion-card-content>
|
|
<ion-row>
|
|
<ion-row>
|
|
- <ion-col size="3" (click)="filterByCategory($event)">全部</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">爱情</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">喜剧</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">科幻</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">动作</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">悬疑</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">犯罪</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">青春</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">惊悚</ion-col>
|
|
|
|
- <ion-col size="3" (click)="filterByCategory($event)">文艺</ion-col>
|
|
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '')">全部</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '爱情')">爱情</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '喜剧')">喜剧</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '科幻')">科幻</ion-col>
|
|
|
|
+ </ion-row>
|
|
|
|
+ <ion-row>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '动作')">动作</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '悬疑')">悬疑</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '犯罪')">犯罪</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '青春')">青春</ion-col>
|
|
|
|
+ </ion-row>
|
|
|
|
+ <ion-row>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '惊悚')">惊悚</ion-col>
|
|
|
|
+ <ion-col size="3" (click)="filterByCategory($event, '文艺')">文艺</ion-col>
|
|
</ion-row>
|
|
</ion-row>
|
|
</ion-card-content>
|
|
</ion-card-content>
|
|
</ion-card>
|
|
</ion-card>
|
|
|
|
|
|
- <!-- <ion-card *ngFor="let movie of movies" routerLink="/movie-details/{{movie.id}}">
|
|
|
|
|
|
+
|
|
|
|
+ <!-- 电影列表展示部分 -->
|
|
|
|
+ <ion-card *ngFor="let movie of filteredMovies">
|
|
|
|
+ <ion-card-header>
|
|
|
|
+ <ion-card-title>{{ movie.get('name') }}</ion-card-title>
|
|
|
|
+ </ion-card-header>
|
|
<ion-card-content>
|
|
<ion-card-content>
|
|
- <ion-card-title>{{ movie.title }}</ion-card-title>
|
|
|
|
- <ion-card-subtitle>{{ movie.genre }}</ion-card-subtitle>
|
|
|
|
|
|
+ <p>{{ movie.get('type') }}</p>
|
|
|
|
+ <p>{{ movie.get('releaseDate') | date }}</p>
|
|
|
|
+ <p>{{ movie.get('duration') }}</p>
|
|
|
|
+ <p>{{ movie.get('language') }}</p>
|
|
|
|
+ <p>{{ movie.get('introduction') }}</p>
|
|
|
|
+ <p>{{ movie.get('rating') }}</p>
|
|
</ion-card-content>
|
|
</ion-card-content>
|
|
- </ion-card> -->
|
|
|
|
|
|
+ </ion-card>
|
|
</ion-content>
|
|
</ion-content>
|