|
@@ -34,8 +34,8 @@
|
|
|
<ion-row>
|
|
|
<ng-container *ngFor="let attention of recommendList">
|
|
|
<ion-col size="6">
|
|
|
- <ion-card class="roleCard" (click)="goAttentionDetail(attention)">
|
|
|
- <img alt="推荐图" [src]="attention?.get('img')" />
|
|
|
+ <ion-card class="roleCard" (click)="goRecommendDetail(role)">
|
|
|
+ <img alt="推荐图" [src]="role?.get('img')" />
|
|
|
<ion-card-header>
|
|
|
<ion-card-title>
|
|
|
{{attention?.get('name')}}
|
|
@@ -89,6 +89,7 @@
|
|
|
|
|
|
<!-- 科普 -->
|
|
|
<ng-container *ngIf="cate=='科普'">
|
|
|
+<<<<<<< HEAD
|
|
|
<ng-container *ngFor="let sciene of scienceList">
|
|
|
<ion-card (click)="goScienceDetail(sciene)">
|
|
|
<img alt="科普图" [src]="sciene?.get('img')" />
|
|
@@ -103,11 +104,31 @@
|
|
|
<ion-button fill="clear" color="dark" size="small" class="like">
|
|
|
<ion-icon name="heart-outline" size="small"></ion-icon>
|
|
|
<ion-note>{{sciene?.get('like')}}</ion-note>
|
|
|
+=======
|
|
|
+ <ng-container *ngFor="let science of scienceList">
|
|
|
+ <ion-card (click)="goScienceDetail(science)">
|
|
|
+ <img alt="科普图" [src]="science?.get('img')" />
|
|
|
+ <ion-card-header>
|
|
|
+ <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>{{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>{{science?.get('like')}}</ion-note>
|
|
|
+>>>>>>> 8055be6d18ac165452aa094fb923b58460946ed3
|
|
|
</ion-button>
|
|
|
</div>
|
|
|
</ion-card-header>
|
|
|
<ion-card-content>
|
|
|
+<<<<<<< HEAD
|
|
|
<p class="foodContent">{{sciene?.get('content')}}</p>
|
|
|
+=======
|
|
|
+ <p class="foodContent">{{science?.get('content')}}</p>
|
|
|
+>>>>>>> 8055be6d18ac165452aa094fb923b58460946ed3
|
|
|
</ion-card-content>
|
|
|
</ion-card>
|
|
|
</ng-container>
|