<nav title="我的钱包"></nav>
<ion-content class="content">
  <div class="top">
    <div class="box">
      <div class="account_info">
        <div class="balance">
          <div class="count">{{ account?.balance?.toFixed(2) || 0 }}</div>
          <div class="title">钻石余额</div>
        </div>
        <!-- @if (isAnthor) { -->
        <div class="balance">
          <div class="count">￥{{ anthorWallet?.balance || 0 }}</div>
          <div class="title">可提现</div>
        </div>
        <!-- } -->
      </div>
      <div class="figure">
        <div class="recharge" (click)="recharge()">充值</div>
        <!-- @if (isAnthor) { -->
        <div class="recharges" (click)="withdrawal()">提现</div>
        <!-- } -->
      </div>
    </div>
    <!-- @if (isAnthor) { -->
    <div class="install" (click)="toBank()">
      <div class="install-to">
        <div class="name"><ion-icon style="color:#c22d41" name="folder-open"></ion-icon>我的银行卡</div>
      </div>
      <ion-icon class="img" name="chevron-forward-outline"></ion-icon>
    </div>
    <div class="install" (click)="records()">
      <div class="install-to">
        <div class="name"><ion-icon style="color:#1091d3" name="document-text"></ion-icon>提现记录</div>
      </div>
      <ion-icon class="img" name="chevron-forward-outline"></ion-icon>
    </div>
    <!-- } -->
    <div class="install" (click)="record()">
      <div class="install-to">
        <div class="name"><ion-icon style="color:#b5841c" name="folder-open"></ion-icon>动账记录</div>
      </div>
      <ion-icon class="img" name="chevron-forward-outline"></ion-icon>
    </div>
  </div>
</ion-content>
