|
@@ -1,6 +1,10 @@
|
|
|
import { Component } from '@angular/core';
|
|
|
-import { IonHeader, IonToolbar, IonTitle, IonContent, IonList, IonItem, IonLabel, IonAvatar, NavController, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonNote, IonThumbnail, IonGrid, IonRow, IonCol } from '@ionic/angular/standalone';
|
|
|
+import { IonHeader, IonToolbar, IonTitle, IonContent, IonList, IonItem, IonLabel, IonAvatar, NavController, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonIcon, IonNote, IonThumbnail, IonGrid, IonRow, IonCol, IonButton } from '@ionic/angular/standalone';
|
|
|
import { ExploreContainerComponent } from '../explore-container/explore-container.component';
|
|
|
+import { addIcons } from 'ionicons';
|
|
|
+import { documentText,calendar,chatboxEllipses,informationCircle,settings,create,
|
|
|
+ gift,walk,notifications,document,call,shareSocial
|
|
|
+} from 'ionicons/icons';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-tab4',
|
|
@@ -9,33 +13,20 @@ import { ExploreContainerComponent } from '../explore-container/explore-containe
|
|
|
standalone: true,
|
|
|
imports: [IonHeader,IonContent,IonToolbar, IonTitle, ExploreContainerComponent,IonCard,
|
|
|
IonCardContent,IonCardHeader,IonCardSubtitle,IonCardTitle,
|
|
|
- IonIcon,IonNote,IonThumbnail,IonGrid,IonRow,IonCol,
|
|
|
+ IonIcon,IonNote,IonThumbnail,IonGrid,IonRow,IonCol,IonButton,
|
|
|
IonList, IonItem, IonLabel, IonAvatar],
|
|
|
})
|
|
|
-export class Tab4Page {
|
|
|
-
|
|
|
|
|
|
- user: any = {
|
|
|
- name: '张三',
|
|
|
- email: 'zhangsan@example.com'
|
|
|
- };
|
|
|
|
|
|
- constructor(private navCtrl: NavController) {}
|
|
|
|
|
|
- editProfile() {
|
|
|
- // Navigate to the edit profile page
|
|
|
- this.navCtrl.navigateForward('/edit-profile');
|
|
|
- }
|
|
|
+export class Tab4Page {
|
|
|
|
|
|
- viewSettings() {
|
|
|
- // Navigate to the settings page
|
|
|
- this.navCtrl.navigateForward('/settings');
|
|
|
+ constructor() {
|
|
|
+ addIcons({ documentText,calendar,chatboxEllipses,informationCircle,settings,create,
|
|
|
+ gift,walk,notifications,document,call,shareSocial
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
- logout() {
|
|
|
- // Perform logout actions
|
|
|
- // For example, clear user data and navigate to the login page
|
|
|
- // localStorage.removeItem('user');
|
|
|
- this.navCtrl.navigateRoot('/login');
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
}
|