<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">
        <ng-container *ngIf="contactPerson?.picUrl && contactPerson?.picUrl != ''">
          <img src="{{picture+contactPerson.picUrl}}" class="contact-img">
        </ng-container>
        <ng-container *ngIf="!contactPerson?.picUrl || contactPerson?.picUrl == ''">
          <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'">
        </ng-container>
        <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>