<ion-header>

  <ion-navbar>
    <ion-title>联系人</ion-title>
    <ion-buttons start>
      <button  ion-button (click)="dismiss()">
        <span class="color-fff" ion-text>取消</span>
      </button>
    </ion-buttons>
    <ion-buttons end>
      <button class="color-fff" ion-button (click)="dismiss()">
        <span class="color-fff" ion-text>确定</span>
      </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-searchbar (ionInput)="getList($event)" [(ngModel)]="name" placeholder="姓名、手机号码"></ion-searchbar>
  <ion-list>
    <ion-item-sliding>
      <ion-item *ngFor="let item of perList">
        <div class="contact-box" (click)="sure(item)">
          <img src="./assets/imgs/man.png" class="contact-img" *ngIf="item.gender =='1'||item.gender==null">
          <img src="./assets/imgs/woman.png" class="contact-img" *ngIf="item.gender =='0'">

          <div class="contact-box-right">
            <div>
              <span class="contact-name">{{item.name}}</span>
              <!--<ion-icon name="male" class="contact-sex male" *ngIf="item.gender =='1'||item.gender==null"></ion-icon>-->
              <!--<ion-icon name="female" class="contact-sex female" *ngIf="item.gender =='0'"></ion-icon>-->
              <span class="contact-handphone">{{item.mobile}}</span>
            </div>
            <div class="contact-organization">{{item?.orgname}}</div>
          </div>
        </div>


      </ion-item>
    </ion-item-sliding>

  </ion-list>
</ion-content>
