tab3.page.ts 798 B

12345678910111213141516171819202122232425262728293031323334353637
  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. userInfo: any = {
  10. username: 'Faraday',
  11. nickname: '点击查看个人主页',
  12. avatarUrl: '/assets/avatar.png',
  13. followers: 10086,
  14. following: 129,
  15. favorites: 7,
  16. recentViews: 2917
  17. };
  18. constructor(private navCtrl: NavController) {}
  19. goToBookshelf() {
  20. this.navCtrl.navigateForward('/bookshelf');
  21. }
  22. goToWallet() {
  23. this.navCtrl.navigateForward('/wallet');
  24. }
  25. goToActivitySquare() {
  26. this.navCtrl.navigateForward('/activity-square');
  27. }
  28. goToHelpAndSupport() {
  29. this.navCtrl.navigateForward('/help-and-support');
  30. }
  31. }