import { Component } from '@angular/core'; import { NavController } from '@ionic/angular'; @Component({ selector: 'app-tab3', templateUrl: './tab3.page.html', styleUrls: ['./tab3.page.scss'], }) export class Tab3Page { userInfo: any = { username: 'Faraday', nickname: '点击查看个人主页', avatarUrl: '/assets/avatar.png', followers: 10086, following: 129, favorites: 7, recentViews: 2917 }; constructor(private navCtrl: NavController) {} goToBookshelf() { this.navCtrl.navigateForward('/bookshelf'); } goToWallet() { this.navCtrl.navigateForward('/wallet'); } goToActivitySquare() { this.navCtrl.navigateForward('/activity-square'); } goToHelpAndSupport() { this.navCtrl.navigateForward('/help-and-support'); } }