Newer
Older
<ion-header>
<ion-navbar>
<ion-title>积分记录</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content pullingText="下拉刷新"
refreshingSpinner="bubbles">
</ion-refresher-content>
</ion-refresher>
<div class="padding-15-30">
<ng-container *ngFor="let item of integraList;let i = index;">
<ng-container *ngIf="item.integral > 0 ">
<div class="inteItem">
<p class="inteTime">{{item.datetime | date:'yyyy-MM-dd HH:mm:ss'}}</p>
<ion-row>
<ion-col col-8 class="iterType">
<span *ngIf="item.type == 1">签到</span>
<span *ngIf="item.type == 2">阅读文章</span>
<span *ngIf="item.type == 3">评论</span>
<span *ngIf="item.type == 4">亮评</span>
<span *ngIf="item.type == 5">内容发布</span>
<span *ngIf="item.type == 6">高质量内容</span>
<span *ngIf="item.type == 7">学习测试</span>
<span *ngIf="item.type == 8">不良评论内容</span>
</ion-col>
<ion-col col-4 class="inteScore"> <span>+{{item.integral}}</span> <span>分</span></ion-col>
</ion-row>
</div>
</ng-container>
</ng-container>
</div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content
loadingSpinner="bubbles"
loadingText="加载中"></ion-infinite-scroll-content>
</ion-infinite-scroll>