<ion-header>
  <ion-navbar>
      <ion-title text-center>
        <span *ngIf="orgid == null">常用联系人</span>
        <span *ngIf="orgid!=null && this.orgid != ''">{{orgName}}</span>
      </ion-title>
  </ion-navbar>
</ion-header>

<ion-content direction="y" scrollbar-y="true">
  <ion-list>
    <ion-item *ngFor="let contactPerson of contactPersons" (click)="contactPersonInfo(contactPerson)">
      <div class="contact-box">
        <img src="./assets/imgs/man.png" class="contact-img" *ngIf="contactPerson.gender =='1'||contactPerson.gender==null">
        <img src="./assets/imgs/woman.png" class="contact-img" *ngIf="contactPerson.gender =='0'">

        <div class="contact-box-right">
          <div>
            <span class="contact-name">{{contactPerson.name}}</span>
          </div>

          <div>
            <span class="contact-handphone">手机：{{contactPerson.mobile}}</span>
          </div>
        </div>
      </div>
    </ion-item>


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