Skip to content
integral.html 1.56 KiB
Newer Older
wangqinghua's avatar
wangqinghua committed
<ion-header>

  <ion-navbar>
    <ion-title>积分记录</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
wangqinghua's avatar
wangqinghua committed
  <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;">
wangqinghua's avatar
wangqinghua committed
      <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>
wangqinghua's avatar
wangqinghua committed
    </ng-container>
  </div>
  <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
    <ion-infinite-scroll-content
            loadingSpinner="bubbles"
            loadingText="加载中"></ion-infinite-scroll-content>
  </ion-infinite-scroll>
wangqinghua's avatar
wangqinghua committed
</ion-content>