|
@@ -1,18 +1,27 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
import { IonHeader, IonToolbar, IonTitle, IonContent, IonImg, IonCard, IonCardHeader, IonCardTitle, IonCardContent, IonButton, IonApp, IonText, IonLabel, IonItem, IonList, IonSegment, IonSegmentButton, IonTabButton, IonIcon, IonFooter, IonTabs, IonCol, IonGrid, IonRow } from '@ionic/angular/standalone';
|
|
|
-import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
-import {EditTagComponent} from '../edit-tag/edit-tag.component'
|
|
|
+
|
|
|
+import { Router } from '@angular/router';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-tab1',
|
|
|
templateUrl: 'tab1.page.html',
|
|
|
styleUrls: ['tab1.page.scss'],
|
|
|
standalone: true,
|
|
|
- imports: [IonIcon, IonTabButton, IonSegmentButton, IonSegment, IonList, IonItem, IonLabel, IonText, IonApp, IonButton, IonCardContent, IonCardTitle, IonCardHeader, IonCard, IonImg, IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,EditTagComponent],
|
|
|
+ imports: [IonIcon,IonButton, IonHeader, IonToolbar, IonTitle, IonContent],
|
|
|
})
|
|
|
export class Tab1Page {
|
|
|
+
|
|
|
toRecordLearn(){
|
|
|
alert("记录学习情况,双击666")
|
|
|
}
|
|
|
- constructor() {}
|
|
|
+ constructor(private router:Router) {}
|
|
|
+ goTestPage() {
|
|
|
+ this.router.navigate(['/tabs/test']);
|
|
|
+ }
|
|
|
+ goanalysePage(){
|
|
|
+ this.router.navigate(['/tabs/poem/analyse']);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|