|
@@ -1,9 +1,13 @@
|
|
-import { Component } from '@angular/core';
|
|
|
|
|
|
+import { Component, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
-import { IonicModule } from '@ionic/angular';
|
|
|
|
|
|
+import { IonicModule} from '@ionic/angular';
|
|
import { addIcons } from 'ionicons';
|
|
import { addIcons } from 'ionicons';
|
|
import { notificationsOutline, locationOutline } from 'ionicons/icons';
|
|
import { notificationsOutline, locationOutline } from 'ionicons/icons';
|
|
import { Router } from '@angular/router';
|
|
import { Router } from '@angular/router';
|
|
|
|
+import { register } from 'swiper/element/bundle';
|
|
|
|
+
|
|
|
|
+register();
|
|
|
|
+
|
|
addIcons({ 'location-outline': locationOutline, 'notifications-outline': notificationsOutline })
|
|
addIcons({ 'location-outline': locationOutline, 'notifications-outline': notificationsOutline })
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-tab1',
|
|
selector: 'app-tab1',
|
|
@@ -11,12 +15,13 @@ addIcons({ 'location-outline': locationOutline, 'notifications-outline': notific
|
|
styleUrls: ['tab1.page.scss'],
|
|
styleUrls: ['tab1.page.scss'],
|
|
standalone: true,
|
|
standalone: true,
|
|
imports: [ExploreContainerComponent, IonicModule],
|
|
imports: [ExploreContainerComponent, IonicModule],
|
|
|
|
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
})
|
|
})
|
|
|
|
+
|
|
export class Tab1Page {
|
|
export class Tab1Page {
|
|
constructor(private router: Router) { }
|
|
constructor(private router: Router) { }
|
|
//转到GenerateOption页面
|
|
//转到GenerateOption页面
|
|
goGenerateOption() {
|
|
goGenerateOption() {
|
|
this.router.navigate(['generateOption']);
|
|
this.router.navigate(['generateOption']);
|
|
}
|
|
}
|
|
-}
|
|
|
|
-
|
|
|
|
|
|
+}
|