tab3.page.ts 576 B

1234567891011121314151617181920212223242526
  1. import { Component } from '@angular/core';
  2. import { NavController } from '@ionic/angular';
  3. @Component({
  4.   selector: 'app-tab3',
  5.   templateUrl: 'tab3.page.html',
  6.   styleUrls: ['tab3.page.scss']
  7. })
  8. export class Tab3Page {
  9.  
  10.   constructor(private navCtrl: NavController) {}
  11.   goToEditPage() {
  12.     this.navCtrl.navigateForward('/profile-edit');
  13.   }
  14.   leftToEditPage()
  15.   {
  16.     this.navCtrl.navigateForward('/tabs');
  17.   }
  18.  
  19.   goToSecuritySettings() {
  20.     // 导航到安全设置页面的逻辑
  21.     this.navCtrl.navigateForward('/security-settings');
  22.   }
  23. }