<ion-header>
  <ion-navbar>
    <ion-navbar>
      <div class="search-header">
        <ion-input type="text" placeholder="按姓名搜索" [(ngModel)]="searchValue" (ionChange)="searchUser()"></ion-input>
        <ion-icon name="close" class="clear" (click)="clearValue()"></ion-icon>
      </div>
    </ion-navbar>
  </ion-navbar>
</ion-header>
<ion-content>
  <div class="common">
    联系人
  </div>
  <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 class="contact-organization">{{contactPerson.orgName}}</div>
          <div>
            <span class="contact-handphone">手机：{{contactPerson.mobile}}</span>
            <span class="contact-telphone">座机：{{contactPerson.telephone}}</span>
          </div>
        </div>
      </div>
    </ion-item>
  </ion-list>
</ion-content>