<ion-header>

  <ion-navbar>
    <ion-title>联系人</ion-title>
    <ion-buttons start>
      <button ion-button (click)="dismiss()">
        <span ion-text color="primary">取消</span>
      </button>
    </ion-buttons>
    <ion-buttons end>
      <button ion-button (click)="dismiss()">
        <span ion-text color="primary" >确定</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/head.png" class="contact-img" >

          <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>
