<ion-header>

  <ion-navbar>
    <ion-title>问卷调查</ion-title>
  </ion-navbar>

</ion-header>


<ion-content class="bgc-e7e8ed">
  <ion-list>
    <ng-container *ngIf="list.length > 0">
      <ion-item class="item-list margin-bottom-10" *ngFor="let item of list">
        <div class="item" >
          <div class="item-header padding-15-0">
            <div class="item-header-style">
              <span class="item-title">{{item.title}}</span>
              <span   float-right  class="done" *ngIf="item.state==1 ">未发布</span>
              <span  float-right class="done" *ngIf="item.state==2 ">已发布</span>
              <span  float-right class="done" *ngIf="item.state==3 ">已过期</span>
            </div>
          </div>
          <div class="content-button padding-15-0">
            <span>参与人员:</span>
            <span *ngIf="item.groupName">{{item.groupName}}</span>
            <span *ngIf="!item.groupName">全体人员</span>
            <span *ngIf="item?.isAnsNum == 0" float-right class="join" (click)="geToWrite(item)">参与</span>
            <span *ngIf="item?.isAnsNum != 0" float-right class="look" (click)="goToResult(item)">查看</span>
          </div>
        </div>
      </ion-item>
    </ng-container>
    <ng-container *ngIf="list.length == 0">
      <div text-center style="margin-top: 10rem" *ngIf="list.length == 0">
        <img style="width: 20%;" src="./assets/imgs/no-info.png" alt="">
        <p text-center>
          暂无数据
        </p>
      </div>
    </ng-container>
  </ion-list>
</ion-content>
