|
@@ -1,14 +1,35 @@
|
|
|
-import { Component } from '@angular/core';
|
|
|
-import { IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/angular/standalone';
|
|
|
+import { Component,CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
|
+import { IonHeader, IonToolbar, IonTitle, IonContent, IonSearchbar, IonicSlides, IonGrid, IonRow, IonCol, IonCard, IonCardHeader, IonCardTitle, IonCardContent, IonFooter, IonTabs, IonTabBar, IonTabButton, IonIcon, IonLabel, IonInput } from '@ionic/angular/standalone';
|
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
+import { CommonModule } from '@angular/common';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-tab1',
|
|
|
templateUrl: 'tab1.page.html',
|
|
|
styleUrls: ['tab1.page.scss'],
|
|
|
standalone: true,
|
|
|
- imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent],
|
|
|
+ imports: [IonHeader, IonToolbar, IonTitle, IonSearchbar,IonGrid,
|
|
|
+ IonRow,IonCol,IonCard,IonCardHeader,IonCardTitle,IonCardContent,
|
|
|
+ IonFooter,IonTabs,IonTabBar,IonTabButton,IonIcon,IonLabel,
|
|
|
+ IonContent, ExploreContainerComponent,CommonModule,IonInput],
|
|
|
+ schemas:[CUSTOM_ELEMENTS_SCHEMA],
|
|
|
})
|
|
|
export class Tab1Page {
|
|
|
constructor() {}
|
|
|
+
|
|
|
+ // 示例数据
|
|
|
+ recommendedRoutes = [
|
|
|
+ { id: 1, name: '庐山经典路线生成', difficulty: '中等', time: '5小时', image: 'assets/img/1.png' },
|
|
|
+ { id: 2, name: '三清山挑战路线', difficulty: '困难', time: '8小时', image: 'assets/img/1.png' }
|
|
|
+ ];
|
|
|
+
|
|
|
+ trainingPlans = [
|
|
|
+ { id: 1, name: '初级体能训练', description: '适合初级登山者', image: 'assets/img/1.png' },
|
|
|
+ { id: 2, name: '高级耐力提升', description: '为长期登山者设计', image: 'assets/img/1.png' }
|
|
|
+ ];
|
|
|
+
|
|
|
+ educationalContent = [
|
|
|
+ { id: 1, title: '江西山川文化', summary: '探索江西名山的历史与文化', image: 'assets/img/1.png' },
|
|
|
+ { id: 2, title: '山地生态保护', summary: '了解山地生态的重要性', image: 'assets/img/1.png' }
|
|
|
+ ];
|
|
|
}
|