<ion-header>
  <ion-toolbar>
      <div class="searchToolBar">
          <button ion-button clear small navPop style="padding: 0;">
              <img class="back-btn" src="./assets/imgs/back.png" />
            </button>
            <ion-title text-center>外出报备</ion-title>
      </div>
     
    </ion-toolbar>
</ion-header>

<ion-content class="content">
  <div class="item1">
    <div class="img-box">
      <!-- <img class="item1-image" src="./assets/imgs/logo.png"> -->

      <img class="item1-image" src="{{picture}}">
     

    </div>
    <div class="item1-content">
      <div class="item1-content-header">
        <div class="item1-title">{{premanager.title}}</div>
      </div>
      <div class="item1-introduction">
       {{introduce}}
        <button class="btn-introduce" (click)="show()">详细说明</button>
      </div>
    </div>
  </div>
  <ion-list>
    <ion-item>
      <div class="report-info">
        报备信息
      </div>
    </ion-item>
    <ion-item>
      <!-- <div class="report-item">
        <div class="report-item-title">离沪</div>
        <img class="right-icon" src="./assets/imgs/right.png" *ngIf="isLeave" (click)="chooseLeave(1)">
        <img class="right-icon" src="./assets/imgs/right-grey.png" *ngIf="!isLeave" (click)="chooseLeave(0)">
      </div> -->

      <div class="report-item">
        <div class="report-item-title">不离沪</div>
        <img class="right-icon" src="./assets/imgs/right.png" *ngIf="!isLeave" (click)="chooseLeave(0)">
        <img class="right-icon" src="./assets/imgs/right-grey.png" *ngIf="isLeave" (click)="chooseLeave(1)">
       
        <div class="report-item-title">离沪</div>
        
        <img class="right-icon" src="./assets/imgs/right.png" *ngIf="isLeave" (click)="chooseLeave(1)">
        <img class="right-icon" src="./assets/imgs/right-grey.png" *ngIf="!isLeave" (click)="chooseLeave(0)">
        
      </div>

    </ion-item>
    <ion-item *ngIf="isLeave" (click)="editReport()">
      <div class="report-item">
        <div class="report-item-title">离沪详情信息</div>
        <div class="report-item-content">
          <span>{{dategap}}</span>
          <img class="right-icon" src="./assets/imgs/right-arrow.png" >
        </div>
      </div>
    </ion-item>

    <ion-item *ngIf="isLeave">
      <div class="report-item">
        <div class="report-item-title">离沪地点信息</div>
        <div class="report-item-content">
          <span>{{locations}}</span>
        </div>
      </div>
    </ion-item>

  </ion-list>
  <button ion-button block class="report-btn" (click)="savePremanager()" *ngIf="!premanager.reported">提交报备</button>
  <button ion-button block class="report-btn" (click)="editPremanager()" *ngIf="premanager.reported">修改报备</button>
</ion-content>


<div class="cover" *ngIf="isCover">
	<div class="cover-content">
		<div class="cover-content-box">
			<h4 class="cover-content-title">具体介绍</h4>
			<div class="cover-content-info">
				<p>
          {{premanager.managerDesc}}
				</p>
			</div>
			<button ion-button block (click)="hidden()">
				关闭
			</button>
		</div>
	</div>
</div>