|
@@ -34,7 +34,7 @@
|
|
|
<ion-row>
|
|
|
<ng-container *ngFor="let role of recommendList">
|
|
|
<ion-col size="6">
|
|
|
- <ion-card class="roleCard" (click)="goAttentionDetail(role)">
|
|
|
+ <ion-card class="roleCard" (click)="goRecommendDetail(role)">
|
|
|
<img alt="推荐图" [src]="role?.get('img')" />
|
|
|
<ion-card-header>
|
|
|
<ion-card-title>
|
|
@@ -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 science of scienceList">
|
|
|
+ <ion-card (click)="goScienceDetail(science)">
|
|
|
+ <img alt="科普图" [src]="science?.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>{{science?.get('name')}}</ion-card-title>
|
|
|
+ <ion-card-subtitle>{{science?.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>{{science?.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>{{science?.get('like')}}</ion-note>
|
|
|
</ion-button>
|
|
|
</div>
|
|
|
</ion-card-header>
|
|
|
<ion-card-content>
|
|
|
- <p class="foodContent">{{food?.get('content')}}</p>
|
|
|
+ <p class="foodContent">{{science?.get('content')}}</p>
|
|
|
</ion-card-content>
|
|
|
</ion-card>
|
|
|
</ng-container>
|