0225263 4 ay önce
ebeveyn
işleme
0626b67aca
2 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 1 1
      src/app/tab4/tab4.page.html
  2. 5 0
      src/app/tab4/tab4.page.ts

+ 1 - 1
src/app/tab4/tab4.page.html

@@ -44,7 +44,7 @@
   <ion-row>
     <ion-col size="4">
       <p class="count" style="color:black" (click)="openFollowingPage()">{{user.following}}</p>
-      <p class="label">关注</p>
+      <p class="label" (click)="openFollowerPage()">关注</p>
     </ion-col>
     <ion-col size="4">
       <p class="count" style="color:black">{{user.followers}}</p>

+ 5 - 0
src/app/tab4/tab4.page.ts

@@ -82,6 +82,11 @@ export class Tab4Page implements OnInit {
     this.router.navigate(['/following']);
   }
 
+  openFollowerPage(){
+    //打开粉丝页面
+    this.router.navigate(['/follower']);
+  }
+
   // 由于Parse.User.current()是随着localStorage变化的属性
   // 为了避免首次复制后用户状态变化,页面不同步,通过get方法实现实时获取
   // user:Parse.User|undefined