|
@@ -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)="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>
|
|
@@ -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>
|
|
@@ -89,25 +89,25 @@
|
|
|
|
|
|
<!-- 科普 -->
|
|
|
<ng-container *ngIf="cate=='科普'">
|
|
|
- <ng-container *ngFor="let food of scienceList">
|
|
|
- <ion-card (click)="goScienceDetail(food)">
|
|
|
- <img alt="科普图" [src]="food?.get('img')" />
|
|
|
+ <ng-container *ngFor="let sciene of scienceList">
|
|
|
+ <ion-card (click)="goScienceDetail(sciene)">
|
|
|
+ <img alt="科普图" [src]="sciene?.get('img')" />
|
|
|
<ion-card-header>
|
|
|
- <ion-card-title>{{food?.get('name')}}</ion-card-title>
|
|
|
- <ion-card-subtitle>{{food?.get('createdAt')| date: 'YYYY/MM/dd'||"发布时间"}}</ion-card-subtitle>
|
|
|
+ <ion-card-title>{{sciene?.get('name')}}</ion-card-title>
|
|
|
+ <ion-card-subtitle>{{sciene?.get('createdAt')| date: 'YYYY/MM/dd'||"发布时间"}}</ion-card-subtitle>
|
|
|
<div class="metadata-end-wrapper">
|
|
|
<ion-button fill="clear" color="dark" size="small" class="see">
|
|
|
<ion-icon name="eye-outline" size="small"></ion-icon>
|
|
|
- <ion-note>{{food?.get('see')}}</ion-note>
|
|
|
+ <ion-note>{{sciene?.get('see')}}</ion-note>
|
|
|
</ion-button>
|
|
|
<ion-button fill="clear" color="dark" size="small" class="like">
|
|
|
<ion-icon name="heart-outline" size="small"></ion-icon>
|
|
|
- <ion-note>{{food?.get('like')}}</ion-note>
|
|
|
+ <ion-note>{{sciene?.get('like')}}</ion-note>
|
|
|
</ion-button>
|
|
|
</div>
|
|
|
</ion-card-header>
|
|
|
<ion-card-content>
|
|
|
- <p class="foodContent">{{food?.get('content')}}</p>
|
|
|
+ <p class="foodContent">{{sciene?.get('content')}}</p>
|
|
|
</ion-card-content>
|
|
|
</ion-card>
|
|
|
</ng-container>
|