Эх сурвалжийг харах

Merge branch 'master' of http://git.fmode.cn:3000/0225273/APPmy

0225236 4 сар өмнө
parent
commit
5e5fa4b1cc

+ 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