|
@@ -1,38 +1,30 @@
|
|
import { Component, CUSTOM_ELEMENTS_SCHEMA } 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 { addIcons } from 'ionicons';
|
|
import { addIcons } from 'ionicons';
|
|
-import { notificationsOutline, locationOutline, caretDownOutline } from 'ionicons/icons';
|
|
|
|
|
|
+import { caretDownOutline, chevronForwardOutline } from 'ionicons/icons';
|
|
import { Router } from '@angular/router';
|
|
import { Router } from '@angular/router';
|
|
import { register } from 'swiper/element/bundle';
|
|
import { register } from 'swiper/element/bundle';
|
|
import { CloudObject, CloudQuery } from 'src/lib/ncloud';
|
|
import { CloudObject, CloudQuery } from 'src/lib/ncloud';
|
|
import { CommonModule } from '@angular/common';
|
|
import { CommonModule } from '@angular/common';
|
|
-addIcons({ caretDownOutline});
|
|
|
|
|
|
+import { IonButton, IonCard, IonContent, IonImg, IonLabel, IonSearchbar, IonSegment, IonSegmentButton, IonSegmentContent, IonSegmentView, IonText } from '@ionic/angular/standalone';
|
|
|
|
+addIcons({ caretDownOutline,chevronForwardOutline});
|
|
register();
|
|
register();
|
|
-
|
|
|
|
-addIcons({ 'location-outline': locationOutline, 'notifications-outline': notificationsOutline })
|
|
|
|
@Component({
|
|
@Component({
|
|
selector: 'app-tab1',
|
|
selector: 'app-tab1',
|
|
templateUrl: 'tab1.page.html',
|
|
templateUrl: 'tab1.page.html',
|
|
styleUrls: ['tab1.page.scss'],
|
|
styleUrls: ['tab1.page.scss'],
|
|
standalone: true,
|
|
standalone: true,
|
|
- imports: [ExploreContainerComponent, IonicModule, CommonModule],
|
|
|
|
|
|
+ imports: [ExploreContainerComponent, CommonModule,IonButton,IonImg,IonContent,IonCard,
|
|
|
|
+ IonSegment,IonSegmentButton,IonSegmentContent,IonLabel,IonSegmentView,IonText,IonSearchbar
|
|
|
|
+ ],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
})
|
|
})
|
|
|
|
|
|
export class Tab1Page {
|
|
export class Tab1Page {
|
|
constructor(private router: Router) { }
|
|
constructor(private router: Router) { }
|
|
- ngOnInit() {
|
|
|
|
- this.loadUserInfoList();
|
|
|
|
- }
|
|
|
|
|
|
+ ngOnInit() {}
|
|
//转到GenerateOption页面
|
|
//转到GenerateOption页面
|
|
goGenerateOption() {
|
|
goGenerateOption() {
|
|
this.router.navigate(['generateOption']);
|
|
this.router.navigate(['generateOption']);
|
|
}
|
|
}
|
|
-
|
|
|
|
- userInfoList: Array<CloudObject> = [];
|
|
|
|
- async loadUserInfoList() {
|
|
|
|
- let query = new CloudQuery("_User");
|
|
|
|
- this.userInfoList = await query.find();
|
|
|
|
- }
|
|
|
|
}
|
|
}
|