<ion-header>
  <ion-navbar>
    <ion-title text-center>
      <span>{{orgName}}</span>
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content direction="y" scrollbar-y="true">
  <div class="additem" (click)="showPersonModal()">
      <span class="icon-span">
        <ion-icon ios="ios-add" class="add-icon-contact" md="md-add"></ion-icon>
      </span>
    <span class="contact-title color-999">添加联系人</span>
  </div>
  <ion-list>
    <ion-item-sliding *ngFor="let contactPerson of contactPersons">
        <ion-item >
          <div class="contact-box">
            <img src="./assets/imgs/head.png" class="contact-img" >
            <div class="contact-box-right">
              <div>
                <span class="contact-name">{{contactPerson.name}}</span>
                <ion-icon name="male" class="contact-sex male" *ngIf="contactPerson.gender =='1'||contactPerson.gender==null"></ion-icon>
                <ion-icon name="female" class="contact-sex female" *ngIf="contactPerson.gender =='0'"></ion-icon>
              </div>
              <div class="contact-organization">{{contactPerson.orgName}}</div>
              <div>
                <span class="contact-telphone">座机：{{contactPerson.telephone}}</span>
                <span class="contact-handphone">手机：{{contactPerson.mobile}}</span>
              </div>
            </div>
          </div>
        </ion-item>
        <ion-item-options>
          <button ion-button color="danger" (click)="removeItem(contactPerson)">删除</button>
        </ion-item-options>
    </ion-item-sliding>

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