|
@@ -32,22 +32,22 @@
|
|
|
<ng-container *ngIf="cate=='推荐'">
|
|
|
<ion-grid>
|
|
|
<ion-row>
|
|
|
- <ng-container *ngFor="let role of recommendList">
|
|
|
+ <ng-container *ngFor="let attention of recommendList">
|
|
|
<ion-col size="6">
|
|
|
<ion-card class="roleCard" (click)="goRecommendDetail(attention)">
|
|
|
<img alt="推荐图" [src]="attention?.get('img')" />
|
|
|
<ion-card-header>
|
|
|
<ion-card-title>
|
|
|
- {{role?.get('name')}}
|
|
|
+ {{attention?.get('name')}}
|
|
|
</ion-card-title>
|
|
|
<ion-card-subtitle style="font-size:0.7rem;">
|
|
|
- 作者:{{role?.get('user')?.get('name')||"无名"}}
|
|
|
+ 作者:{{attention?.get('user')?.get('name')||"无名"}}
|
|
|
</ion-card-subtitle>
|
|
|
</ion-card-header>
|
|
|
<div class="metadata-end-wrapper">
|
|
|
<ion-button shape="round" size="small" color="danger">
|
|
|
<ion-icon name="heart-outline" size="small"></ion-icon>
|
|
|
- {{role?.get('like')}}
|
|
|
+ {{attention?.get('like')}}
|
|
|
</ion-button>
|
|
|
</div>
|
|
|
</ion-card>
|
|
@@ -62,22 +62,22 @@
|
|
|
<ng-container *ngIf="cate=='关注'">
|
|
|
<ion-grid>
|
|
|
<ion-row>
|
|
|
- <ng-container *ngFor="let role of attentionList">
|
|
|
+ <ng-container *ngFor="let attention of attentionList">
|
|
|
<ion-col size="6">
|
|
|
- <ion-card class="roleCard" (click)="goAttentionDetail(role)">
|
|
|
- <img alt="关注图" [src]="role?.get('img')" />
|
|
|
+ <ion-card class="roleCard" (click)="goAttentionDetail(attention)">
|
|
|
+ <img alt="关注图" [src]="attention?.get('img')" />
|
|
|
<ion-card-header>
|
|
|
<ion-card-title>
|
|
|
- {{role?.get('name')}}
|
|
|
+ {{attention?.get('name')}}
|
|
|
</ion-card-title>
|
|
|
<ion-card-subtitle style="font-size:0.7rem;">
|
|
|
- 作者:{{role?.get('user')?.get('name')||"无名"}}
|
|
|
+ 作者:{{attention?.get('user')?.get('name')||"无名"}}
|
|
|
</ion-card-subtitle>
|
|
|
</ion-card-header>
|
|
|
<div class="metadata-end-wrapper">
|
|
|
<ion-button shape="round" size="small" color="danger">
|
|
|
<ion-icon name="heart-outline" size="small"></ion-icon>
|
|
|
- {{role?.get('like')}}
|
|
|
+ {{attention?.get('like')}}
|
|
|
</ion-button>
|
|
|
</div>
|
|
|
</ion-card>
|