<nav title="通话详情"></nav>
<ion-content class="content">
  <div class="status-view">
    <img
      [src]="
        withdrawLog?.get('status') == '200' ? 'img/call.png' : 'img/warn.png'
      "
      alt=""
      class=""
    />
    @if (withdrawLog?.get('status') == '200') {
    <div class="text">提现成功</div>
    <div class="desc">已转账提现成功</div>
    }@else {
    <div class="text">{{ getType(withdrawLog?.get("status"))?.title }}</div>
    }
  </div>
  <div class="h3">提现详情</div>
  <div class="card-container">
    <div class="row">
      <div class="label">提现金额：</div>
      <div class="val">￥{{ withdrawLog?.get("count") }}</div>
    </div>
    <div class="row">
      <div class="label">持卡人：</div>
      <div class="val">{{ withdrawLog?.get("bank")?.name }}</div>
    </div>
    <div class="row">
      <div class="label">提现银行卡：</div>
      <div class="val">{{ withdrawLog?.get("bank")?.bankcard }}</div>
    </div>
    <div class="row">
      <div class="label">申请时间：</div>
      <div class="val">
        {{ withdrawLog?.get("createdAt") | date : "yyyy-MM-dd HH:mm" }}
      </div>
    </div>
    <div class="row">
      <div class="label">转账凭证：</div>
      <div class="val imgs">
        @for (item of withdrawLog?.get("images"); track $index) {
        <img (click)="onShowImg(item)" [src]="item" alt="" />
        }
      </div>
    </div>
  </div>
</ion-content>
<app-image-preview [image]="currentImg" #preview></app-image-preview>
