|
@@ -2,7 +2,7 @@ import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
|
import {
|
|
import {
|
|
|
IonHeader, IonToolbar, IonTitle, IonContent,
|
|
IonHeader, IonToolbar, IonTitle, IonContent,
|
|
|
IonButton, IonButtons, IonIcon, IonCard, IonCardHeader, IonCardTitle, IonCardContent,
|
|
IonButton, IonButtons, IonIcon, IonCard, IonCardHeader, IonCardTitle, IonCardContent,
|
|
|
- IonItem, IonLabel, IonList, IonInput, IonTextarea, IonAvatar } from '@ionic/angular/standalone';
|
|
|
|
|
|
|
+ IonItem, IonLabel, IonList, IonInput, IonTextarea, IonAvatar, IonSearchbar} from '@ionic/angular/standalone';
|
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
import { CommonModule } from '@angular/common';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
|
|
@@ -18,11 +18,18 @@ import { CommonModule } from '@angular/common';
|
|
|
IonButton, IonButtons, IonIcon,
|
|
IonButton, IonButtons, IonIcon,
|
|
|
|
|
|
|
|
IonCard, IonCardHeader, IonCardTitle, IonCardContent,
|
|
IonCard, IonCardHeader, IonCardTitle, IonCardContent,
|
|
|
- IonList, IonItem, IonLabel, IonAvatar, IonInput, IonTextarea,
|
|
|
|
|
|
|
+ IonList, IonItem, IonLabel, IonAvatar, IonInput, IonTextarea,IonSearchbar
|
|
|
],
|
|
],
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
|
})
|
|
})
|
|
|
export class Tab1Page {
|
|
export class Tab1Page {
|
|
|
|
|
+
|
|
|
|
|
+ onSearch(event: any) {
|
|
|
|
|
+ const searchTerm = event.target.value; // 获取用户输入的搜索内容
|
|
|
|
|
+ console.log('搜索内容:', searchTerm);
|
|
|
|
|
+ // 在这里添加搜索逻辑,例如过滤列表或导航到搜索结果页面
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
topics = [
|
|
topics = [
|
|
|
{ title: '年度最佳剧集', participants: 120, popularity: '⭐⭐⭐⭐⭐' },
|
|
{ title: '年度最佳剧集', participants: 120, popularity: '⭐⭐⭐⭐⭐' },
|
|
|
{ title: '经典电影回顾', participants: 80, popularity: '⭐⭐⭐⭐' },
|
|
{ title: '经典电影回顾', participants: 80, popularity: '⭐⭐⭐⭐' },
|