|
@@ -15,6 +15,19 @@
|
|
|
</ion-toolbar>
|
|
|
</ion-header>
|
|
|
|
|
|
+<!-- <ion-card>
|
|
|
+ <img alt="" src="https://ionicframework.com/docs/img/demos/card-media.png" />
|
|
|
+ <ion-card-header>
|
|
|
+ <ion-card-title>{{user?.get("username") || '未登录'}}</ion-card-title>
|
|
|
+ <ion-card-subtitle *ngIf="!user?.id">请您登陆后继续使用</ion-card-subtitle>
|
|
|
+ <ion-card-subtitle *ngIf="user?.id">{{user?.get("name")}}-{{user?.get("gender")}}</ion-card-subtitle>
|
|
|
+ </ion-card-header> -->
|
|
|
+
|
|
|
+ <!-- 新增:根据用户状态,显示登录/登出按钮,执行跳转或登出函数 -->
|
|
|
+ <!-- <ion-button *ngIf="!user?.id" fill="clear" routerLink="../../modules/user/login">登录</ion-button>
|
|
|
+ <ion-button *ngIf="user?.id" fill="clear" routerLink="../../modules/user/edit/info">编辑资料</ion-button>
|
|
|
+ <ion-button *ngIf="user?.id" fill="clear" (click)="logout()">登出</ion-button>
|
|
|
+</ion-card> -->
|
|
|
|
|
|
<ion-content>
|
|
|
<ion-card-content>
|
|
@@ -27,12 +40,24 @@
|
|
|
</ion-card-content>
|
|
|
|
|
|
<ion-card>
|
|
|
+ <ion-grid>
|
|
|
+ <ion-row>
|
|
|
+ <ion-col size="4">
|
|
|
+ <p class="count">{{user.following}}</p>
|
|
|
+ <p class="label">关注</p>
|
|
|
+ </ion-col>
|
|
|
+ <ion-col size="4">
|
|
|
+ <p class="count">{{user.followers}}</p>
|
|
|
+ <p class="label">粉丝</p>
|
|
|
+ </ion-col>
|
|
|
+ <ion-col size="4">
|
|
|
+ <p class="count">{{user.likes}}</p>
|
|
|
+ <p class="label">获赞</p>
|
|
|
+ </ion-col>
|
|
|
+ </ion-row>
|
|
|
+</ion-grid>
|
|
|
<ion-card-content>
|
|
|
<ion-segment scrollable>
|
|
|
- <ion-segment-button value="followings">
|
|
|
- <ion-icon name="people-outline"></ion-icon>
|
|
|
- 关注的人
|
|
|
- </ion-segment-button>
|
|
|
<ion-segment-button value="creators">
|
|
|
<ion-icon name="brush-outline"></ion-icon>
|
|
|
创作者中心
|
|
@@ -49,10 +74,6 @@
|
|
|
<ion-icon name="chatbubbles-outline"></ion-icon>
|
|
|
我的圈子
|
|
|
</ion-segment-button>
|
|
|
- <ion-segment-button value="my-followings">
|
|
|
- <ion-icon name="heart-outline"></ion-icon>
|
|
|
- 我的关注
|
|
|
- </ion-segment-button>
|
|
|
<ion-segment-button value="my-orders">
|
|
|
<ion-icon name="receipt-outline"></ion-icon>
|
|
|
我的订单
|