<!--pages/invoiceInfo/index.wxml-->
<!-- <van-cell-group>
  <van-field
    value="{{ detail.name }}"
    label="公司名称"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.tin }}"
    label="税号"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.address }}"
    label="单位地址"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.phone }}"
    label="电话"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.bank }}"
    label="开户银行"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.account }}"
    label="开户账号"
    border="{{ false }}"
    readonly
  />
  <van-field
    value="{{ detail.email }}"
    label="邮箱"
    border="{{ false }}"
    readonly
  />
</van-cell-group>

<view class="wrapper operate">
  <van-button type="default" block style="flex: 1" bind:click="handleBack">返回</van-button>
  <van-button type="info" block style="margin-left: 30rpx;flex: 1;">编辑</van-button>
</view> -->

<navigator title="发票详细" canBack="{{true}}" bind:back="back" />
<view wx:if="{{detail.status === 2}}">
  <view class="wrapper">
    <view style="margin-top: 40rpx;"> 尊敬的客户，您好： </view>
    <view style="margin-top: 20rpx;"> 已经为您开具订单{{detail.id}}的发票，发票数量共计1张，如下： </view>
    <view style="margin-top: 20rpx;"> 发票类型：数电发票（电子发票），发票号码：{{detail.number}}，您可以点击“发票XML文件下载”获取该发票XML文件，或者点击“发票PDF文件下载”获取该发票PDF文件； </view>
    <view style="margin-top: 20rpx;"> 同时您也可以到预留的邮箱中查看下载发票。 </view>
  </view>

  <view class="operate">
    <van-button type="info" style="flex: 1;" block bind:click="download"> 下载 </van-button>
    <van-button type="info" style="flex: 1;margin-left: 40rpx;" block bind:click="jumpToDetail"> 发票明细 </van-button>
  </view>
</view>
<view wx:if="{{detail.status === 1}}">
  <view class="wrapper">
    <view style="margin-top: 40rpx;"> 尊敬的客户，您好： </view>
    <view style="margin-top: 20rpx;"> 开票申请已提交，系统正在开票中，请您稍后再查看。 </view>
  </view>
  <view class="operate">
    <van-button type="info" style="flex: 1;" block bind:click="jumpToDetail"> 发票明细 </van-button>
  </view>
</view>