|
@@ -1,14 +1,24 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
-import { IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/angular/standalone';
|
|
|
+import { IonHeader, IonToolbar, IonTitle, IonContent ,IonButton} from '@ionic/angular/standalone';
|
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
+import { Router } from '@angular/router';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-tab1',
|
|
|
templateUrl: 'tab1.page.html',
|
|
|
styleUrls: ['tab1.page.scss'],
|
|
|
standalone: true,
|
|
|
- imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent],
|
|
|
+ imports: [IonHeader, IonToolbar, IonTitle, IonContent, ExploreContainerComponent,IonButton],
|
|
|
})
|
|
|
export class Tab1Page {
|
|
|
- constructor() {}
|
|
|
-}
|
|
|
+
|
|
|
+ //页面跳转
|
|
|
+ constructor(private router: Router) {}
|
|
|
+ goTestPage(){
|
|
|
+ this.router.navigate(['/tabs/test']);
|
|
|
+ }
|
|
|
+
|
|
|
+ navigeteTo(){
|
|
|
+ this.router.navigate(['/tabs/dream-analysis'])
|
|
|
+ }
|
|
|
+}
|